public static boolean isDn(String name) {
    return name.contains("=");
  }
Detects DN names.
<br>
<b>Example:</b>
<br>
<pre>
LdapUtils.isDn("cn=UserName,dc=mycompany,dc=com") = true
LdapUtils.isDn("user1")                           = false
</pre>
@param name name to be checked
@return true if the provided name is a distinguished name
service/src/java/org/apache/hive/service/auth/ldap/LdapUtils.java