Directoryservices encountered several problems accessing OpenLDAP (selected recommendation logs, with 10 coins). They slept at about 2 o'clock last night and finally solved all the problems of accessing OpenLDAP using directoryservices, it seems that there are not many materials in China in this regard. If you encounter many problems, you may find them on your own or on a foreign forum. 1. the authenticationtypes of directoryentry must be set to serverbind 2. LDAP Direct authentication. You can use directoryentry. nativeobject, as long as no error is returned, it can be considered as successful 3. you can use directorysearcher to search and call mysearchresult. getdirectoryentry can be used to modify search items. 4. attribute types isOCTET STRINGMust be converted between the string and ASC byte array types (this type is generally used on password) 5. newly Added users use directoryentry. children. add method, which has two parameters: DN and objectclass of the added schema. (do not forget all the required items defined in the schema, otherwise, the ldap_naming_violation error is returned.) 6. of course, any modification is required. commitchanges () has another minor problem. ADSI edit cannot access OpenLDAP and does not know whether the configuration is correct.