Ejemplo n.º 1
0
 public LdapConnection GetLDAPConnection()
 {
     currentDomain =
         ((System.DirectoryServices.ActiveDirectory.ActiveDirectoryPartition)(Domain.GetCurrentDomain())).Name;
     //string str = GetNetbiosDomainName(currentDomain);
     // GetNetBiosName();
     currentDomain = "ad001.siemens.net";
     return(LdapHelper.GetLDAPConnection(currentDomain, defaultPort));
 }