Fix bug in group plugin. Was using wrong variable for attributes.

Fix bug #527537.
This commit is contained in:
Pavel Zuna 2009-10-08 12:55:14 +02:00 committed by Rob Crittenden
parent 5be9721292
commit 0dd92f10cc

View File

@ -85,7 +85,7 @@ class group_add(LDAPCreate):
def pre_callback(self, ldap, dn, entry_attrs, *keys, **options):
if options['posix'] or 'gidnumber' in options:
options['objectclass'].append('posixgroup')
entry_attrs['objectclass'].append('posixgroup')
return dn
api.register(group_add)