DirectorySearcher dSearch = new DirectorySearcher("LDAP ConnString"); dSearch.Filter = "(sAMAccountName=" + txtUsername.Text + ")"; SearchResult sResult = dSearch.FindOne(); DirectoryEntry dResult = sResult.GetDirectoryEntry(); string strRawManager = dResult.Properties["manager"][0].ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)