diff options
Diffstat (limited to 'base/server/cmscore/src/com/netscape/cmscore/ldapconn/LdapAuthInfo.java')
-rw-r--r-- | base/server/cmscore/src/com/netscape/cmscore/ldapconn/LdapAuthInfo.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/server/cmscore/src/com/netscape/cmscore/ldapconn/LdapAuthInfo.java b/base/server/cmscore/src/com/netscape/cmscore/ldapconn/LdapAuthInfo.java index eb3fde26c..4fd09a711 100644 --- a/base/server/cmscore/src/com/netscape/cmscore/ldapconn/LdapAuthInfo.java +++ b/base/server/cmscore/src/com/netscape/cmscore/ldapconn/LdapAuthInfo.java @@ -62,7 +62,7 @@ public class LdapAuthInfo implements ILdapAuthInfo { init(config, host, port, secure); } - public String getPasswordFromStore(String prompt) { + public String getPasswordFromStore(String prompt) throws EBaseException { String pwd = null; CMS.debug("LdapAuthInfo: getPasswordFromStore: try to get it from password store"); @@ -82,7 +82,7 @@ public class LdapAuthInfo implements ILdapAuthInfo { // Finally, interactively obtain the password from the user if (pwdStore != null) { CMS.debug("LdapAuthInfo: getPasswordFromStore: password store available"); - pwd = pwdStore.getPassword(prompt); + pwd = pwdStore.getPassword(prompt, 0); // pwd = pstore.getString(prompt); if (pwd == null) { CMS.debug("LdapAuthInfo: getPasswordFromStore: password for " + prompt + @@ -90,7 +90,7 @@ public class LdapAuthInfo implements ILdapAuthInfo { // pwd = pstore.getString("internaldb"); - pwd = pwdStore.getPassword("internaldb"); // last resort + pwd = pwdStore.getPassword("internaldb", 0); // last resort } else CMS.debug("LdapAuthInfo: getPasswordFromStore: password found for prompt in password store"); } else |