Merged in oherrala/puppet (pull request #32)
dhcp: Sort results by cn when doing query from LDAP.
This commit is contained in:
commit
8b73f1e9cc
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
def ldapsearch(filter):
|
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)
|
bufsize=1024, stdout=PIPE, close_fds=True)
|
||||||
ret = []
|
ret = []
|
||||||
cur = {}
|
cur = {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue