public boolean isLDAP(){
  String host=getLDAPHost();
  if (host == null || host.length() == 0)   return false;
  String domain=getLDAPDomain();
  return domain != null && domain.length() > 0;
}

public boolean isLDAP ( ) { String host = getLDAPHost ( ) ; if ( host == null || host . length ( ) == 0 ) return false ; String domain = getLDAPDomain ( ) ; return domain != null && domain . length ( ) > 0 ; }
is ldap authentification defined
