@Override
  public int hashCode() {
    int result = userName != null ? userName.hashCode() : 0;
    return result;
  }
Set the DN.

@param dn the DN
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/LdapUserDto.java