public static Name getFullDn(String dn, Context context) throws NamingException {
    return getFullDn(LdapUtils.newLdapName(dn), context);
  }
Ensures the given distinguished name is an absolute value rather than a name relative to the context.

@param dn      a distinguished name
@param context the context containing the base distinguished name
@return the absolute distinguished name
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java