I want to get all the available objectclass names and attributes of every objectclass from OpenLDAP (not Active Directory) using c#.
I am able to do this with the ActiveDirectorySchema class when dealing with AD, But i don't know how to do it with other LDAP server.
Can anyone please help?
You need to query the rootDSE and retrieve the value for the "subschemaSubentry" attribute. (cn=schema for openLDAP).
Then query the value from the subschemaSubentry as base and (objectClass=*)
Example shows here.
If you want ONLY objectClasses (which will include the attributes within the objectClasses) use something like: