Project

General

Profile

« Previous | Next » 

Revision 8649

Added by Jing Tao about 10 years ago

Change the password.

View differences:

test/edu/ucsb/nceas/metacattest/AuthLdapTest.java
109 109
    public void testAliasedAccount() throws Exception {
110 110
        String alias = "uid=test2,o=unaffiliated,dc=ecoinformatics,dc=org";
111 111
        AuthLdap ldap = new AuthLdap();
112
        assertTrue("We should authenticate the alias dn "+alias,ldap.authenticate(alias, "test"));
112
        assertTrue("We should authenticate the alias dn "+alias,ldap.authenticate(alias, "kepler"));
113 113
        String[] info =ldap.getUserInfo(alias, null);
114 114
        assertTrue("The email address should be tao@nceas.ucsb.edu and should be "+info[2], info[2].equals("tao@nceas.ucsb.edu"));
115 115
    }

Also available in: Unified diff