code: public Principal authenicate(String uid, char[] password)
     throws  SecurityException
     {
  
        String rootDN = Config.getProperty(ROOT_DN_PROP);
        
        int timeout = Config.getPropertyInteger(TIMEOUT_SECS_PROP).intValue();
        Debugger.println(LDAP.class,"timeout="+timeout);
        
        String uidAttributeName = Config.getProperty(UID_ATTRIB_NM_PROP);
        String groupAttributeName = Config.getProperty(GROUP_ATTRIB_NM_PROP,"");
        String memberOfAttributeName = Config.getProperty(MEMBEROF_ATTRIB_NM_PROP,"");
        
        return authenicate(uid,  password,rootDN,uidAttributeName,memberOfAttributeName,groupAttributeName,timeout);
     }
docs: Authenticate user ID and password against the LDAP server
  @param uid i.e. greeng
  @param password the user password
  @return the user principal details
  @throws SecurityException when security error occurs