dhcp: Sort results by cn when doing query from LDAP.

This commit is contained in:
Ossi Herrala 2013-07-22 12:22:27 +00:00
parent 8227dd7810
commit 5a04363e46

View file

@ -24,7 +24,7 @@ def main():
def ldapsearch(filter):
p = Popen(['ldapsearch', '-x', '-z', '0', '-LLL', filter, 'cn', 'macAddress', 'ipHostNumber'],
p = Popen(['ldapsearch', '-x', '-z', '0', '-S', 'cn', '-LLL', filter, 'cn', 'macAddress', 'ipHostNumber'],
bufsize=1024, stdout=PIPE, close_fds=True)
ret = []
cur = {}