Improve User sync.

This commit is contained in:
sfigato 2019-07-06 21:16:06 +02:00
parent fe3450b886
commit 79d7dcc653
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -269,7 +269,8 @@ class User(Hackers):
if len(res) == 0:
raise PhiUserDoesNotExist(self.dn)
for k, v in res[0].items():
self._entry[k] = v
if not k == "dn":
self._entry[k] = v
async def modify(self, key, value):
async with self.client.connect(is_async=True) as conn: