43 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
feichtinger 99f33e55f9 version bump 2019-01-31 15:06:11 +01:00
feichtinger 8b42d2e70f made _is_group() generic 2019-01-31 14:56:41 +01:00
feichtinger 33e83502b8 fixed recursive behavior for -g option and DNs without unix mappings 2019-01-31 14:54:53 +01: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 76e74c146b Merge branch 'pep8' into 'master'
Fix pep8 violations

The only exceptions are lines that are too long and the fact that
__version__ is undefined in setup.py. Fixing the former makes the code
harder to read in some cases, and fixing the latter is slightly more
complicated.

See merge request !4
2016-06-01 14:19:26 +02:00
kaminski_k 33893875ce Fix pep8 violations
The only exceptions are lines that are too long and the fact that
__version__ is undefined in setup.py. Fixing the former makes the code
harder to read in some cases, and fixing the latter is slightly more
complicated.
2016-05-24 15:31:35 +02:00
feichtinger 4b93177346 fixed problem with AD entries having unset fields 2016-03-10 15:52:54 +01:00
feichtinger 182d4e3c99 version 2.1.2 2016-03-10 14:38:16 +01:00
feichtinger 4f935d100e Merge branch 'master' into 'master'
Add support for paged results

LdapUserDir now accepts a new parameter 'page_size', which specifies how
many results should be retrieved at a time (default: 500). A page size
of 0 disables paged results.

See merge request !1
2016-03-03 14:57:35 +01:00
feichtinger 65865ca2d1 added default paging size = 500 entries
small fix to default setup for paging the results.
2016-03-03 14:54:22 +01:00
feichtinger c0fa2b0bbb Merge branch 'kaminski_k/ldapuserdir-master' 2016-03-03 11:59:01 +01:00
kaminski_k b8a7e6d275 Replace simplistic check in has_dn_format
Use python-ldap's explode_dn, which (hopefully) rejects invalid DNs.
2016-03-02 17:59:07 +01:00
kaminski_k 13c6566c7f Add support for paged results
LdapUserDir now accepts a new parameter 'page_size', which specifies how
many results should be retrieved at a time (default: 500). A page size
of 0 disables paged results.
2016-03-02 16:19:37 +01:00
feichtinger 567884f5f0 conda recipe to build from source 2016-02-16 20:27:11 +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 8898b03ad5 small fix to release utility 2013-05-03 14:20:37 +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 94c20aedd6 small change for how to load version number 2012-12-21 16:25:51 +01:00
feichtinger 208d6add00 Fixed error about ignoring of "-D user" option 2012-12-11 15:12:17 +01:00
feichtinger fe36431f4e version bump to 1.20 2012-12-11 11:53:42 +01:00
feichtinger 3c0140dbbd fixed ldap rebind issue 2012-12-10 17:53:09 +01:00
feichtinger 40ed2cebe9 testing ldap reconnect with deleting old object first 2012-12-10 15:27:22 +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 65d13458be implemented own ldap reconnection routine
The ReconnectLDAPObject class led to strange results in tests with the PSI
AD. After some time I would get no results at all, but no error or exception.
This routine contains logging statements.
2012-12-07 15:33:48 +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 e54316c060 clean build dir before generating release 2012-10-03 16:22:07 +02:00
feichtinger e0d77c2d69 minor fix for release tool 2012-10-03 16:14:29 +02:00
feichtinger a221576f6e default config for setup.py 2012-10-03 16:10:32 +02:00
feichtinger e954988167 added a minimal release helper script 2012-10-03 16:08:25 +02:00
feichtinger 3778ea18ac improved help text with flexibel helper class and added cfgfile docu 2012-10-03 15:21:47 +02:00
feichtinger 8323a3faa9 raised version number for release 1.1 2012-10-01 17:22:34 +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