Skip to content
Snippets Groups Projects
Commit 89e0f4e8 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Sort printed users and groups

parent 7b8e327d
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ def main(): ...@@ -63,7 +63,7 @@ def main():
users = dphysldap.Users(ldap, attrs) users = dphysldap.Users(ldap, attrs)
users.search(';'.join(members)) users.search(';'.join(members))
#users.sort('uid') users.sort('uid')
print(users) print(users)
......
...@@ -32,7 +32,7 @@ def main(): ...@@ -32,7 +32,7 @@ def main():
users = dphysldap.Users(ldap, attrs) users = dphysldap.Users(ldap, attrs)
users.search(args['user']) users.search(args['user'])
#users.sort('uid') users.sort('uid')
if not users: if not users:
sys.exit('No users found.') sys.exit('No users found.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment