2017-04-13 35 views

回答

0
DirectoryEntry de = new DirectoryEntry(LDAP://127.0.0.1/CN=Users,dc=test,dc=com", UserName, Password, AuthenticationTypes.Secure); 
     DirectorySearcher ds = new DirectorySearcher(de); 
     ds.FindOne(); 

1.用您的IP替換「127.0.0.1」。 2.用戶名= LDAP用戶名 3. Passwoed = LDAP用戶密碼。 4. DC(域組件)=您的域組件 5. CN(通用名稱)=您的通用名稱 此代碼適用於我連接LDAP服務器。

What are CN, OU, DC in an LDAP search?

相關問題