diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-28 12:01:34 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-30 12:29:22 -0500 |
commit | 92ccc4c36ce840650f28f4b8edb3cbb5bb1d265c (patch) | |
tree | e7433a080c96c4e890374651e286ef1d48608644 | |
parent | 11c7985988eb1bf2fc979cc38094b794a814e2a4 (diff) | |
download | pki-92ccc4c36ce840650f28f4b8edb3cbb5bb1d265c.tar.gz pki-92ccc4c36ce840650f28f4b8edb3cbb5bb1d265c.tar.xz pki-92ccc4c36ce840650f28f4b8edb3cbb5bb1d265c.zip |
Replaced deprecated LDAPConnection.authenticate().
The deprecated authenticate() method in LDAPConnection has been
replaced with another authenticate() method with different signature.
Ticket #3
-rw-r--r-- | base/common/src/com/netscape/cmscore/ldapconn/LdapBoundConnection.java | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/base/common/src/com/netscape/cmscore/ldapconn/LdapBoundConnection.java b/base/common/src/com/netscape/cmscore/ldapconn/LdapBoundConnection.java index fc97ab48c..ca4bb440c 100644 --- a/base/common/src/com/netscape/cmscore/ldapconn/LdapBoundConnection.java +++ b/base/common/src/com/netscape/cmscore/ldapconn/LdapBoundConnection.java @@ -41,7 +41,7 @@ public class LdapBoundConnection extends LDAPConnection { * */ private static final long serialVersionUID = -2242077674357271559L; - // LDAPConnection calls authenticate so must set this for first + // LDAPConnection calls authenticate so must set this for first // authenticate call. private boolean mAuthenticated = false; @@ -58,9 +58,9 @@ public class LdapBoundConnection extends LDAPConnection { new LdapJssSSLSocketFactory(authInfo.getParms()[0]) : (connInfo.getSecure() ? new LdapJssSSLSocketFactory() : null)); - // Set option to automatically follow referrals. - // Use the same credentials to follow referrals; this is the easiest - // thing to do without any complicated configuration using + // Set option to automatically follow referrals. + // Use the same credentials to follow referrals; this is the easiest + // thing to do without any complicated configuration using // different hosts. // If client auth is used don't have dn and pw to follow referrals. @@ -158,24 +158,7 @@ public class LdapBoundConnection extends LDAPConnection { /** * Overrides same method in LDAPConnection to do prevent re-authentication. */ - public void authenticate(String dn, String mech, String packageName, - Properties props, Object getter) - throws LDAPException { - - /** - * if (mAuthenticated) { - * throw new RuntimeException( - * "this LdapBoundConnection already authenticated: auth(mech)"); - * } - **/ - super.authenticate(dn, mech, packageName, props, getter); - mAuthenticated = true; - } - - /** - * Overrides same method in LDAPConnection to do prevent re-authentication. - */ - public void authenticate(String dn, String mechs[], String packageName, + public void authenticate(String dn, String mechs[], Properties props, Object getter) throws LDAPException { @@ -185,7 +168,7 @@ public class LdapBoundConnection extends LDAPConnection { * "this LdapBoundConnection is already authenticated: auth(mechs)"); * } **/ - super.authenticate(dn, mechs, packageName, props, getter); + super.authenticate(dn, mechs, props, getter); mAuthenticated = true; } |