+
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,14 @@ public void testMultipleLDAPProviders() {
testRealm.addComponentModel(ldapModel);
LDAPStorageProvider ldapProvider = LDAPTestUtils.getLdapProvider(session, ldapModel);

// if AD, create new OU in a base DN because users.ldif is ignored for AD
if (LDAPConstants.VENDOR_ACTIVE_DIRECTORY.equals(ldapModel.getConfig().getFirst(LDAPConstants.VENDOR))) {
// if AD or RHDS, create new OU in a base DN because users.ldif is ignored for AD/RHDS
String vendor = ldapModel.getConfig().getFirst(LDAPConstants.VENDOR);
if (LDAPConstants.VENDOR_ACTIVE_DIRECTORY.equals(vendor)) {
LDAPTestUtils.addLdapOUinBaseDn(ldapProvider, "OtherPeople2");
LDAPTestUtils.removeAllLDAPUsers(ldapProvider, testRealm);
} else if (LDAPConstants.VENDOR_RHDS.equals(vendor)) {
LDAPTestUtils.addLdapOUinBaseDn(ldapProvider, "OtherPeople");
LDAPTestUtils.removeAllLDAPUsers(ldapProvider, testRealm);
}
LDAPObject john = LDAPTestUtils.addLDAPUser(ldapProvider, testRealm, "anotherjohn", "AnotherJohn", "AnotherDoe", "anotherjohn@email.org", null, "1234");
LDAPTestUtils.updateLDAPPassword(ldapProvider, john, "Password1");
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载