Project

General

Profile

« Previous | Next » 

Revision 8704

Added by Jing Tao almost 11 years ago

Remove the code to lookup alias dn in the getGroups method.

View differences:

src/edu/ucsb/nceas/metacat/AuthLdap.java
833 833
		env.put(Context.REFERRAL, "throw");
834 834
		env.put(Context.PROVIDER_URL, ldapUrl);
835 835
		env.put("com.sun.jndi.ldap.connect.timeout", ldapConnectTimeLimit);
836
		String realName = null;
836
		/*String realName = null;
837 837
		try {
838 838
            realName = getAliasedDnNonTLS(foruser,env);
839 839
        } catch(Exception e) {
......
843 843
        if(realName != null) {
844 844
            //the the user is an alias name. we need to use the the real name
845 845
            foruser = realName;
846
        }
846
        }*/
847 847
		// Iterate through the referrals, handling NamingExceptions in the
848 848
		// outer catch statement, ReferralExceptions in the inner catch
849 849
		// statement

Also available in: Unified diff