From dadfcaba7ec904aaf2448c84c2480b8574bc4413 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 30 Jul 2024 11:40:55 +0200 Subject: [PATCH] Fix LDAP dn splitting issue in remove-user script --- server/usr/local/bin/remove-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/usr/local/bin/remove-user b/server/usr/local/bin/remove-user index 2dfe87b..bf17466 100755 --- a/server/usr/local/bin/remove-user +++ b/server/usr/local/bin/remove-user @@ -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