Continuation of fix to identity id problem when a startSearchContext is

not configured.
This commit is contained in:
Juan Carlos Luciani 2006-05-31 22:21:50 +00:00
parent 040895e677
commit a6c1f3eac0

View File

@ -182,7 +182,14 @@ public class PwdAuthenticate implements AuthMechanism, Serializable
if ((new InitialDirContext(env2)) != null) if ((new InitialDirContext(env2)) != null)
{ {
// The password must be valid, set the identity Id. // 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; break;
} }
} }