Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to validate an LDIF?

How to validate an LDIF?

Similar to XML, XMLSchema and Schematron are there any libraries to validate an LDIF with an LDAP schema?

like image 664
Crazy Chenz Avatar asked Aug 09 '10 12:08

Crazy Chenz


1 Answers

A better way to solve this is to run the ldap commands with flags that dont actually commit results to the server an example would be ldapadd -H ldap:/// -D "cn=admin,dc=nodomain" -w '<secretThatNobodyKnows>' -n -f here with -n flag you are telling it to only show you what might happen. The advantage that this method holds over running query against a fake server is that you will actually validating against the same rules where you want to eventually commit to.

like image 128
Rahul Dimri Avatar answered Sep 22 '22 15:09

Rahul Dimri