[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can I read the schema using LDAP?



That worked.  Thanks.  Now to analyze the output to see what it just did.

Out of curiosity, will that command work with other non-OpenLDAP directories?

David Smith wrote:

<snip>

To see OpenLDAP schema in the raw, try this command (all one line):

ldapsearch -h localhost -x -b cn=subschema -s base objectClass=subschema matchingRules ldapSyntaxes objectClasses attributeTypes

There are plenty of implementations of LDAP schema parsers out there in nearly every language. Here's one in PHP (from phpLDAPadmin):

<http://cvs.sourceforge.net/viewcvs.py/phpldapadmin/phpldapadmin/schema_functions.php?rev=1.57&view=auto>