dhcp: Sort results by cn when doing query from LDAP.
This commit is contained in:
parent
8227dd7810
commit
5a04363e46
1 changed files with 1 additions and 1 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue