19 Commits

Author SHA1 Message Date
viessm_h e9a45941af fully compliant with python3.6+ 2026-02-12 16:17:23 +01:00
viessm_h 148d9a19af protext against agent [UNDO] 2026-02-12 14:39:50 +01:00
feichtinger 75a0ae077d Higher verbosity can be used to get raw user LDAP attribute fields
- verbosity is now an integer that can be successively increased
- added printing of department number for simple verbosity user output
2019-05-13 14:02:50 +02:00
feichtinger 6da52b2950 Version for python 3.6
- basic syntax fixes
- bytestring to utf8 conversions
- __init__.py import problem fix
2019-05-11 12:34:44 +02:00
Spencer Bliven 6e405c71d8 Default to recursive mode.
Switch flag to -R to disable recursive (if you want to see subgroups)

Examples:
```
ldapuserdir-ctl -n -v -R org-4800

ldapuserdir-ctl -n -R -g bliven_s
```
2019-01-31 14:21:35 +01:00
Spencer Bliven 0ffd91aa96 Add -r option for recursive resolution of groups 2019-01-31 10:58:02 +01:00
feichtinger fbb9078e2a removed os.getlogin() invocations
os.getlogin() fails if there is no controlling terminal (as in
a cron job)
2018-01-03 12:13:08 +01:00
feichtinger f952fd4979 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'
2016-02-16 17:32:44 +01:00
feichtinger 0ebee76384 added listing users by mail address 2013-08-30 11:34:12 +02:00
feichtinger 597478879e group listings can deal with nomssfu entries. Added todo file 2013-07-22 17:18:40 +02:00
feichtinger f7756cbfa9 rewrote some functions to have consistent use of DN and mssfu
Also improved CLI options usage
2013-05-02 18:06:33 +02:00
feichtinger a3e4694971 Added sphinx documentation and did some cleanup
Converted all docstrings from doxygen to numpydoc formats
2013-05-02 10:10:08 +02:00
feichtinger d722c32000 implemented discovery of a user's groups by recursive memberOf search
in the course of this I also decided to change some of the general
structure, especially concerning the handling of the MSsfu option.
This required a change in the API, regrettably, and to a major version
bump.
Also I adopted semantiv versioning.
2013-04-30 17:21:12 +02:00
feichtinger 208d6add00 Fixed error about ignoring of "-D user" option 2012-12-11 15:12:17 +01:00
feichtinger c74b73594c introduced LdapUserDirError exception
instead of returning an empty string for a systemuser2dn lookup, now a
LdapUserDirError is returned.
2012-12-07 23:02:11 +01:00
feichtinger 1a81d9ec1d using ldap.ReconnectLDAPObject
The ldap.ReconnectLDAPObject will reconnect to the ldap server if the
connection is dropped.
Small fix that caused wrong config to be read when multiple locations
were available.
2012-12-07 14:04:18 +01:00
feichtinger 3778ea18ac improved help text with flexibel helper class and added cfgfile docu 2012-10-03 15:21:47 +02:00
feichtinger 7f357e7a59 added some functionality for versioned release process 2012-10-01 15:49:24 +02:00
feichtinger d5311440f2 refactored ldapuserdir code after splitting from sigateway project 2012-09-28 12:12:03 +02:00