mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
activeDirectoryRealm.principalSuffix isn't honoured
This commit is contained in:
parent
293853e874
commit
188ac170c7
1 changed files with 5 additions and 1 deletions
|
|
@ -108,8 +108,12 @@ public class ActiveDirectoryGroupRealm extends AbstractLdapRealm {
|
|||
LdapContext ctx = null;
|
||||
|
||||
try {
|
||||
String userPrincipalName = upToken.getUsername();
|
||||
if (this.principalSuffix != null) {
|
||||
userPrincipalName = upToken.getUsername() + this.principalSuffix;
|
||||
}
|
||||
ctx = ldapContextFactory.getLdapContext(
|
||||
upToken.getUsername(), upToken.getPassword());
|
||||
userPrincipalName, upToken.getPassword());
|
||||
} finally {
|
||||
LdapUtils.closeContext(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue