/** * Returns true if the string conforms to distinguished name syntax. * * @see <a href="../../../../api/com/novell/ldap/LDAPDN.html#isValid(java.lang.String)"> com.novell.ldap.LDAPDN.isValid(String)</a> */ public static boolean isValid(String dn){ return com.novell.ldap.LDAPDN.isValid(dn); }
if (LDAPDN.isValid(userOrGroup)) { LOGGER.debug("[{}] is a valid DN, lets try to get corresponding entry.", userOrGroup);