protext against agent [UNDO]

This commit is contained in:
2026-02-12 14:39:50 +01:00
parent 75a0ae077d
commit 148d9a19af
9 changed files with 28 additions and 503 deletions
+8 -9
View File
@@ -47,9 +47,9 @@ cfgfile_loc = [os.path.expanduser('~/.ldapuserdir-ctl.cfg'),
'/etc/ldapuserdir-ctl.cfg']
config = {
'serverurl' : 'ldaps://xyzdir.example.com:636',
'user_ou' : 'OU=Users,DC=example.com,DC=ch',
'group_ou' : 'OU=Groups,DC=example.com,DC=ch',
'default_user_dn' : 'CN=minpriv_user,OU=Services,DC=example.com,DC=ch',
'user_ou' : 'OU=Users,DC=example.com,DC=org',
'group_ou' : 'OU=Groups,DC=example.com,DC=org',
'default_user_dn' : 'CN=minpriv_user,OU=Services,DC=example.com,DC=org',
'default_user_pw' : 'dummypwd',
'default_group_filter' : 'svc-cluster_merlin*'
}
@@ -110,26 +110,25 @@ usage_epilog = """
%prog -u 'mueller*'
List users matching a mail address pattern
%prog -m '*mueller@psi*'
%prog -m '*mueller@example*'
Author: 2013-19 D. Feichtinger <derek.feichtinger@psi.ch>
"""
examplecfg = """# Configuration file example:
[Ldap]
# URL for contacting the LDAP server
serverurl = ldaps://d.psi.ch:636
serverurl = ldaps://d.example.org:636
# base ldap path under which all users are found
user_ou = OU=Users,OU=PSI,DC=d,DC=psi,DC=ch
user_ou = OU=Users,OU=ExampleOrg,DC=d,DC=example,DC=org
# base ldap path under which groups are found
group_ou = ou=Groups,ou=PSI,dc=d,dc=psi,dc=ch
group_ou = ou=Groups,ou=ExampleOrg,dc=d,dc=example,dc=org
# minimally privileged Ldap user and password for running normal
# lookup queries
default_user_dn = CN=linux_ldap,OU=Services,OU=IT,DC=d,DC=psi,DC=ch
default_user_dn = CN=linux_ldap,OU=Services,OU=IT,DC=d,DC=example,DC=org
default_user_pw = DEFaultPassword
# Optional: