fixed bug when search pattern only contains dc
* bin/ldapuserdir-ctl: improved documentation * ldapuserdir/ldapuserdir.py: fixed error when search ldap base contained only 'dc=d,dc=psi,dc=ch'
This commit is contained in:
@@ -80,10 +80,15 @@ usage = """%prog [options] groupname [usernames]
|
||||
and a lookup)
|
||||
|
||||
The configuration is read from a configuration file. Default
|
||||
locations:
|
||||
locations for the file:
|
||||
"""
|
||||
usage += "\n\t* " + "\n\t* ".join(cfgfile_loc) + '\n'
|
||||
|
||||
usage += """
|
||||
Accessing the user information in AD requires an account with
|
||||
limited permissions that needs to be set in the configuration file's
|
||||
default_user_dn and default_user_pw options."""
|
||||
|
||||
usage_epilog = """
|
||||
Examples:
|
||||
List group members
|
||||
@@ -92,7 +97,7 @@ usage_epilog = """
|
||||
|
||||
Get group memberships for user mueller (optionally with a group filter)
|
||||
%prog -g mueller
|
||||
%prog -g mueller 'svc_ra_*'
|
||||
%prog -g mueller 'svc-ra*'
|
||||
|
||||
Add/delete users to/from a group (requires access rights!)
|
||||
%prog -a svc_ra_x06sa user1 user2 user3
|
||||
@@ -101,6 +106,9 @@ usage_epilog = """
|
||||
List users matching a pattern
|
||||
%prog -u 'mueller*'
|
||||
|
||||
List users matching a mail address pattern
|
||||
%prog -m '*mueller@psi*
|
||||
|
||||
"""
|
||||
|
||||
examplecfg = """# Configuration file example:
|
||||
|
||||
Reference in New Issue
Block a user