0
我使用下面的代碼,以找到在Active DirectoryldapUser對應於在Active Directory中提交的哪些內容?
DirectoryEntry dirEntry = null;
using (dirEntry = new DirectoryEntry(ldapPath, ldapUser, ldapPassword))
{
try
{
Object adsiObject = dirEntry.NativeObject;
result = true;
}
catch (Exception exception)
{
errorInfo.ErrorCode = -1;
errorInfo.ErrorMessage = exception.Message;
}
}
我有一個關於「ldapUser」無疑是用戶。
它在Active Directory中對應哪個字段? 它是「用戶登錄名」還是「2000以前的用戶登錄名」?
而且我需要知道可以在「ldapUser」字段中給出的字符數。