Skip to content

Commit

Permalink
Update minConns for PasswdUserDBAuthentication
Browse files Browse the repository at this point in the history
The PasswdUserDBAuthentication has been updated such that it
creates a DS connection only if needed. The LdapAnonConnFactory
has been updated to allow no minimum connections.
  • Loading branch information
edewata committed Jul 18, 2023
1 parent 5da3c59 commit 372fd6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void init(
DBSubsystem dbSubsystem = engine.getDBSubsystem();
LdapConnInfo ldapinfo = dbSubsystem.getLdapConnInfo();

mAnonConnFactory = new LdapAnonConnFactory("PasswdUserDBAuthentication", 3, 20, ldapinfo);
mAnonConnFactory = new LdapAnonConnFactory("PasswdUserDBAuthentication", 0, 20, ldapinfo);
mAnonConnFactory.setCMSEngine(engine);
mAnonConnFactory.init(socketConfig);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected void init() throws ELdapException {
if (mInited)
return; // XXX should throw exception here ?

if (mMinConns <= 0)
if (mMinConns < 0)
throw new ELdapException("Invalid minimum number of connections: " + mMinConns);

if (mMaxConns <= 0)
Expand Down

0 comments on commit 372fd6e

Please sign in to comment.