fix support for trusted domains, see #28

This commit is contained in:
Sebastian Sdorra
2011-06-24 09:24:48 +02:00
parent cc161e7fd3
commit 983d362eca
3 changed files with 6 additions and 3 deletions

View File

@@ -278,10 +278,10 @@ public class ActiveDirectoryAuthenticationHandler
if (index > 0)
{
String domain = username.substring(0, index);
String domain = username.substring(0, index).toUpperCase();
username = username.substring(index + 1);
add = domainMap.get(domain.toUpperCase());
add = domainMap.get(domain);
if (add != null)
{
@@ -456,6 +456,8 @@ public class ActiveDirectoryAuthenticationHandler
if (Util.isNotEmpty(cn) && Util.isNotEmpty(dn))
{
cn = cn.toUpperCase();
if (logger.isInfoEnabled())
{
logger.info("found domain: {}, {}, {}", new Object[] { cn, dn,

View File

@@ -48,6 +48,7 @@
<os>
<name>windows</name>
</os>
<min-version>1.5</min-version>
</conditions>
</plugin>

View File

@@ -125,7 +125,7 @@ public class BasicSecurityContext implements WebSecurityContext
try
{
User dbUser = userManager.get(username);
User dbUser = userManager.get(user.getName());
if ((dbUser != null) && user.copyProperties(dbUser, false))
{