summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/usrgrp
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-04-30 10:55:30 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-05-05 14:59:05 -0400
commitf79297ea22cbe880863cfa77dafc99a09eb923ef (patch)
treeb37faa1b0ef4631e23dab6d358fb395a43de3f9e /base/common/src/com/netscape/certsrv/usrgrp
parentb381c23ea5f3233adbd2e5a16ec124115d1cd936 (diff)
downloadpki-f79297ea22cbe880863cfa77dafc99a09eb923ef.tar.gz
pki-f79297ea22cbe880863cfa77dafc99a09eb923ef.tar.xz
pki-f79297ea22cbe880863cfa77dafc99a09eb923ef.zip
Fixed UGSubsystem.getUser().
Previously the getUser() method in UGSubsystem was using findUsers() which uses a subtree search to find users. It has been replaced with a base search which is more accurate since the user DN is known. The code has also been simplified to merge the two cases where the input parameter could be a user ID or a DN. Ticket #920
Diffstat (limited to 'base/common/src/com/netscape/certsrv/usrgrp')
-rw-r--r--base/common/src/com/netscape/certsrv/usrgrp/IUGSubsystem.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/common/src/com/netscape/certsrv/usrgrp/IUGSubsystem.java b/base/common/src/com/netscape/certsrv/usrgrp/IUGSubsystem.java
index 66914feec..cee882a65 100644
--- a/base/common/src/com/netscape/certsrv/usrgrp/IUGSubsystem.java
+++ b/base/common/src/com/netscape/certsrv/usrgrp/IUGSubsystem.java
@@ -46,10 +46,10 @@ public interface IUGSubsystem extends ISubsystem, IUsrGrp {
/**
* Retrieves a user from LDAP
*
- * @param userid the given user id
- * @exception EUsrGrpException thrown when failed to find the user
+ * @param userID the given user ID
+ * @return the user object or null if user not found
*/
- public IUser getUser(String userid) throws EUsrGrpException;
+ public IUser getUser(String userID) throws EUsrGrpException;
/**
* Searches for users that matches the filter.