Fix group deletion.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-13 19:50:58 +05:30
1 parent 0eb3d35b5b
commit d65d2c4725
1 file changed
+2 -1
+2 -1
View File
@@ -42,6 +42,7 @@ EOF
if [ $? -eq 65 ]; then
# Cannot have empty group, so just delete the group.
ldapdelete -Y EXTERNAL -H ldapi:/// "$line"
dn=$(echo "$line" | cut -d' ' -f2)
ldapdelete -Y EXTERNAL -H ldapi:/// "$dn"
fi
done <<< "$results"