in "Example 2.9. LDAP backend smb.conf for PDC" you can see:
| add user to group script = /usr/local/sbin/ \
| smbldap-groupmod.pl -m '%g' '%u'
| delete user from group script = /usr/local/sbin/ \
| smbldap-groupmod.pl -x '%g' '%u'
(search for 'smbldap-groupmod.pl' in this document)
I assume, that the options '%g' and '%u' are not in the correct order.
Handing off to jht since it's docs related.
Fixed. Thanks for the heads up.
- John T.