Fix bugs (thanks to integration tests)
This commit is contained in:
parent
6bd1beba9e
commit
b400127cc6
|
@ -233,6 +233,8 @@ class Member(object):
|
||||||
self.base_dn = client.base_dn
|
self.base_dn = client.base_dn
|
||||||
self.name = name
|
self.name = name
|
||||||
self._entry = LDAPEntry(self.dn)
|
self._entry = LDAPEntry(self.dn)
|
||||||
|
self[self.id_tag] = name
|
||||||
|
self._entry["ou"] = self.ou
|
||||||
if kwargs:
|
if kwargs:
|
||||||
_hydrate(self, kwargs)
|
_hydrate(self, kwargs)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class Group(mixins.Singleton, mixins.Entry, mixins.Member):
|
||||||
_instances = dict() # type: ignore
|
_instances = dict() # type: ignore
|
||||||
id_tag = "cn"
|
id_tag = "cn"
|
||||||
ou = "Congregations"
|
ou = "Congregations"
|
||||||
ldap_attributes = ["uid", "ou", "member"]
|
ldap_attributes = ["cn", "ou", "member"]
|
||||||
memeber_classes = {"Hackers": User, "Robots": Service}
|
memeber_classes = {"Hackers": User, "Robots": Service}
|
||||||
|
|
||||||
async def add_member(self, member):
|
async def add_member(self, member):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user