Skip to content

Commit

Permalink
Merge pull request #42 from NethServer/sdl-6981
Browse files Browse the repository at this point in the history
Fix LDAP dn splitting issue in remove-user script NethServer/dev#6981
  • Loading branch information
stephdl authored Jul 31, 2024
2 parents b368608 + dadfcab commit 1568383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/usr/local/bin/remove-user
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fi
printf 'changetype: delete\n'

# Delete user group membership attributes
ldapsearch -Q -LLL "(memberUid=${user})" dn | awk -v "user=${user}" -e '
ldapsearch -Q -LLL -o ldif-wrap=no "(memberUid=${user})" dn | awk -v "user=${user}" -e '
/^dn: / {
print ""
print $0
Expand Down

0 comments on commit 1568383

Please sign in to comment.