From d6aac65bbacd063cf21c343f86229d9b779ad42c Mon Sep 17 00:00:00 2001 From: Blallo Date: Wed, 26 Jan 2022 16:20:30 +0100 Subject: [PATCH] fixup! Minor fixes --- integration_tests/test_model.py | 1 - src/phi/async_ldap/model.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/integration_tests/test_model.py b/integration_tests/test_model.py index 131751a..04ca9e3 100644 --- a/integration_tests/test_model.py +++ b/integration_tests/test_model.py @@ -137,7 +137,6 @@ async def test_User_describe(): res = await u.describe() assert res == { - "ou": "Hackers", "uid": "achilles", "cn": "Achilles", "sn": "achilles", diff --git a/src/phi/async_ldap/model.py b/src/phi/async_ldap/model.py index dec8656..acf26e6 100644 --- a/src/phi/async_ldap/model.py +++ b/src/phi/async_ldap/model.py @@ -35,7 +35,7 @@ class User(mixins.Member, mixins.Entry, mixins.Singleton): _instances = dict() # type: ignore id_tag = "uid" ou = "Hackers" - ldap_attributes = ["uid", "ou", "cn", "sn", "mail", "userPassword"] + ldap_attributes = ["uid", "cn", "sn", "mail", "userPassword"] async def iter_groups(self): # To be monkeypatched later pass # pragma: no cover