Continuation of fix to identity id problem when a startSearchContext is
not configured.
This commit is contained in:
parent
040895e677
commit
a6c1f3eac0
@ -182,7 +182,14 @@ public class PwdAuthenticate implements AuthMechanism, Serializable
|
||||
if ((new InitialDirContext(env2)) != null)
|
||||
{
|
||||
// The password must be valid, set the identity Id.
|
||||
identId = sr.getName() + "," + m_svcConfig.getSetting(SvcConfig.StartSearchContext);
|
||||
if (searchContext.equals(""))
|
||||
{
|
||||
identId = sr.getName();
|
||||
}
|
||||
else
|
||||
{
|
||||
identId = sr.getName() + "," + searchContext;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user