Commit graph

5 commits

Author SHA1 Message Date
bdb7127d27 ldap.Connection.walk(): Support decode & unroll
The entry instance passed to the walk callback contains raw results
of LDAP search operations, i.e. all attribute values are lists, and
all attribute values are bytes. Add the boolean parameters decode and
unroll to walk() as a convenience method to get decoded values. They
default to False, representing current behaviour.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-03 18:01:02 +02:00
988d420e44 ldap.Connection: Support uri config option
Currently the configuration passed to the Connection constructor
needs to contain an ldap_uri entry. Add "uri" as alias, because
ldap_uri for the LDAP config in many contexts represents a tautology
and is left out.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-03 18:00:24 +02:00
bfd0544ff8 Fix errors reported by mypy
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-10-13 12:45:51 +02:00
c941ef307c jwutils.ldap: Introduce 'password' alias for 'bind_pw'
jw-client-devops configures its databases with a set of config keys
which are identical - except for the 'bind_pw' key, which is called
'password'. Allow that, too.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-09-11 22:33:47 +02:00
1e43cdc715 jwutils.ldap: Add module
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-07-26 13:51:42 +02:00