Example #1
0
 public LdapUserEntity(SearchResultEntry ldapUser)
 {
     if (ldapUser != null)
     {
         DistinguishedName = GetDistinguishedName(ldapUser);
         SFqdnLdapUser     = GetFullyQualifiedDomainName(DistinguishedName.Replace(',', '.'));
         SamaccountName    = GetSamaccountName(ldapUser);
         LdapUid           = GetLdapUid(ldapUser);
         LdapCommonName    = GetCommonName(ldapUser);
     }
 }