Add --all to LDAPCreate and make LDAP commands always display default attributes.

This commit is contained in:
Pavel Zuna
2009-12-10 16:39:24 +01:00
committed by Rob Crittenden
parent b8016807eb
commit 74a5384169
7 changed files with 30 additions and 14 deletions

View File

@@ -96,7 +96,7 @@ class netgroup_add(LDAPCreate):
"""
Create new netgroup.
"""
def pre_callback(self, ldap, dn, entry_attrs, *keys, **options):
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):
if not dn.startswith('cn='):
msg = 'netgroup with name "%s" already exists' % keys[-1]
raise errors.DuplicateEntry(message=msg)