fixed bug in auth group_exists

it was using the name instead of the dn
This commit is contained in:
Vishvananda Ishaya
2010-07-12 15:11:41 -05:00
parent c0154ede33
commit 894088754c

View File

@@ -710,7 +710,7 @@ class LDAPWrapper(object):
def __create_group(self, group_dn, name, uid,
description, member_uids = None):
if self.group_exists(name):
if self.group_exists(group_dn):
raise exception.Duplicate("Group can't be created because "
"group %s already exists" % name)
members = []