[Samba] smbldap-groupmod problem

Björn Jacke bj at SerNet.DE
Wed Jul 14 08:42:57 MDT 2010

On 2010-07-12 at 11:29 -0300 Leonardo Carneiro - Veltrac sent off:
> Hi, i'm having a problem with the smbldap-groupmod. I tried to
> change the users of some groups, i get an error message. The action
> indeed execute, as the users was removed or added from the group,
> but an error is throwed in the output:
>    server:~# smbldap-groupmod -x user1 -m user2 testgroup
>    Can't call method "get_value" on an undefined value at
>    /usr/sbin/smbldap-groupmod line 146.
> The line in question is:
>    if ($group_entry->get_value('sambaSID') eq
>    $user_entry->get_value('sambaPrimaryGroupSID')) {

the attribute sambaPrimaryGroupSID is no longer in use. The gidnumber (the
posix primary group) is the group that is always used as windows primary group,
too. Your smbldap-groupmod script seems to be not aware of that.

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

More information about the samba mailing list