Reading LDAP(OpenLDAP) Schema from c# -


i want available objectclass names , attributes of every objectclass openldap (not active directory) using c#.

i able activedirectoryschema class when dealing ad, don't know how other ldap server.

can please help?

you need query rootdse , retrieve value "subschemasubentry" attribute. (cn=schema openldap).

then query value subschemasubentry base , (objectclass=*)

example shows here.

if want objectclasses (which include attributes within objectclasses) use like:

ldapsearch -h yourldapdns  -b "cn=schema" -s base -d cn=admin,ou=...,dc=yourdomain,dc=com -w secretpassword "(objectclass=*)"  objectclasses 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -