public UserPrincipalEx FindUserByCn(string userName, string ldapPath)
 {
     _ldapPath = ldapPath;
     return(UserPrincipalEx.FindByIdentity(LdapContext, userName));
 }
 public UserPrincipalEx FindUserByCn(string userName)
 {
     return(UserPrincipalEx.FindByIdentity(RootContext, userName));
 }