views:

52

answers:

1

How to validate an LDIF?

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

Thanks, Chenz

+1  A: 

ldap-servers like openldap or opends usually check the ldif against the current schema on insertion. So if you need to check your ldif without using your productive ldap server, you could use a small java-based ldap server like openDS that uses the same ldap-schema.

Nikolaus Gradwohl