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