Skip to content

Commit

Permalink
[NEW] Accept variable #{userdn} on LDAP group filter (#16273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrissW-R1 authored May 30, 2020
1 parent ae95908 commit e4aebd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ldap/server/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function isUserInLDAPGroup(ldap, ldapUser, user, ldapGroup) {
return false;
}
const searchOptions = {
filter: syncUserRolesFilter.replace(/#{username}/g, user.username).replace(/#{groupName}/g, ldapGroup),
filter: syncUserRolesFilter.replace(/#{username}/g, user.username).replace(/#{groupName}/g, ldapGroup).replace(/#{userdn}/g, ldapUser.dn),
scope: 'sub',
};

Expand Down

0 comments on commit e4aebd2

Please sign in to comment.