Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,20 @@ public boolean validateUser(String username, String password,
securityAuthentication = (String) params.get("security_authentication");
securityAuthentication = securityAuthentication.toUpperCase();
setSSL = (String) params.get("ssl");
// dn = (String) params.get("distinguished_name");
dn = (String) params.get("distinguished_name");

// mhorvath CORE-417
if (searchBase.startsWith("@"))
{
principalName = username + searchBase;
} else {
dn = (String) params.get("distinguished_name");
}
// cover cases where CN != sAMAccountName, here uses entire DN value for authentication.
else if (searchBase.startsWith("+")) {
principalName = dn;
}
else {
principalName = dn + username + "," + searchBase;
}
//principalName = dn + username + "," + searchBase;
}

// DIGEST-MD5 configuration from the parameters
securityLayer = (String) params.get("security_layer");
Expand Down