From 36627bf3c66720a40761f247d7b8a3da3da2c554 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Fri, 31 Aug 2012 16:17:48 -0400 Subject: Fixed anon connection factory to make no anonymous binds This allow server to come up with DS where anon binds are turned off. --- .../src/com/netscape/cmscore/ldapconn/LdapAnonConnFactory.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/common/src/com/netscape/cmscore/ldapconn/LdapAnonConnFactory.java') diff --git a/base/common/src/com/netscape/cmscore/ldapconn/LdapAnonConnFactory.java b/base/common/src/com/netscape/cmscore/ldapconn/LdapAnonConnFactory.java index 79f2e91c4..dfc974e0b 100644 --- a/base/common/src/com/netscape/cmscore/ldapconn/LdapAnonConnFactory.java +++ b/base/common/src/com/netscape/cmscore/ldapconn/LdapAnonConnFactory.java @@ -365,9 +365,10 @@ public class LdapAnonConnFactory implements ILdapConnFactory { // this returned connection might authenticate as someone other than // anonymonus. Reset it to anonymous first before it returns - // to the pool. + // to the pool. Do this by calling connect() again on this connection + // to avoid doing an explicit anonymous bind try { - anon.authenticate(null, null); + anon.connect(mConnInfo.getHost(), mConnInfo.getPort()); // return conn. CMS.debug("returnConn: mNumConns now " + mNumConns); -- cgit