mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 11:57:41 +02:00
fix search display
* fix attritues handling, not using backend attribute name but key given in attributes.yml
This commit is contained in:
parent
47e51d2451
commit
322aba33e8
3 changed files with 8 additions and 6 deletions
|
@ -39,7 +39,7 @@ class TestError(object):
|
|||
def testGetBackendAttributes(self):
|
||||
inv = Attributes('./tests/cfg/attributes.yml')
|
||||
ret = inv.get_backend_attributes('ldap')
|
||||
expected = ['shell', 'cn', 'uid', 'uidNumber', 'gidNumber', 'home', 'userPassword', 'givenName', 'email', 'sn']
|
||||
expected = ['shell', 'cn', 'userPassword', 'uidNumber', 'gidNumber', 'sn', 'home', 'givenName', 'email', 'uid']
|
||||
assert ret == expected
|
||||
|
||||
def testGetKey(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue