1
0
Fork 0
mirror of https://github.com/kakwa/ldapcherry synced 2025-07-03 03:47:35 +02:00

fix search display

* fix attritues handling, not using backend attribute name but key given
  in attributes.yml
This commit is contained in:
kakwa 2015-06-15 23:03:47 +02:00
parent 47e51d2451
commit 322aba33e8
3 changed files with 8 additions and 6 deletions

View file

@ -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):