smbldap-groupmod fails to remove a non-ldap user from an ldap group

Bug #270580 reported by Zach
Affects Status Importance Assigned to Milestone
smbldap-tools (Ubuntu)

Bug Description

Binary package hint: smbldap-tools

smbldap-tools fails to remove a local user from an ldap group. This is because it does a check that the group isn't the user's primary group. Since the user is local, not ldap, the $user_entry object is not defined, and the script fails.

I've attached a patch to that makes the script verify that user_entry is defined and that sambaPrimaryGroupSID is defined before doing the check. If these aren't defined, it proceeds.

smbldap-tools 0.9.4-1

Revision history for this message
Zach (uid000) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers