You might consider forwarding this patch to the upstream project which I found via apt-cache show ldapscripts:
Homepage: http://ldapscripts.sourceforge.net/ ** Changed in: ldapscripts (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1292143 Title: 'ldapdeleteuser' does not remove user from additional LDAP groups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ldapscripts/+bug/1292143/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs