Compare commits
4 Commits
71ab3043f4
...
d51d714352
Author | SHA1 | Date | |
---|---|---|---|
d51d714352 | |||
474ee9383f | |||
a08154cff8 | |||
46f54cb918 |
@ -15,7 +15,7 @@ CLI tool to query LDAP/AD servers
|
|||||||
* Decodes certain well-known attributes (UUIDs, Timestamps, SID, userAccountControl)
|
* Decodes certain well-known attributes (UUIDs, Timestamps, SID, userAccountControl)
|
||||||
* Requires server to support [RFC 2696: Simple Paged Results](https://www.rfc-editor.org/rfc/rfc2696) for proper pagination
|
* Requires server to support [RFC 2696: Simple Paged Results](https://www.rfc-editor.org/rfc/rfc2696) for proper pagination
|
||||||
* By default the first 1000 entries are shown, and it errors if there are more results
|
* By default the first 1000 entries are shown, and it errors if there are more results
|
||||||
* Use `-all` to show all results
|
* Use `--all` to show all results
|
||||||
|
|
||||||
## Authentication, Protocol, Ports
|
## Authentication, Protocol, Ports
|
||||||
|
|
||||||
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
ldaptool (0.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* README.md: fix typo
|
||||||
|
* enable tls unless kerberos is used (SASL GSS-API doesn't seem to work over TLS)
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Fri, 28 Apr 2023 17:21:35 +0200
|
||||||
|
|
||||||
ldaptool (0.1-1) unstable; urgency=medium
|
ldaptool (0.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Initial release.
|
* Initial release.
|
||||||
|
@ -21,7 +21,7 @@ def search(*, config: Config, arguments: Arguments) -> typing.Iterable[Result]:
|
|||||||
if not arguments.base:
|
if not arguments.base:
|
||||||
arguments.base = realm.default_base(gc=arguments.gc)
|
arguments.base = realm.default_base(gc=arguments.gc)
|
||||||
|
|
||||||
ldap_con = ldap.initialize(realm.ldap_uri(gc=arguments.gc, tls=False, server=arguments.server))
|
ldap_con = ldap.initialize(realm.ldap_uri(gc=arguments.gc, tls=not arguments.krb, server=arguments.server))
|
||||||
ldap_con.set_option(ldap.OPT_REFERRALS, 0)
|
ldap_con.set_option(ldap.OPT_REFERRALS, 0)
|
||||||
if arguments.krb:
|
if arguments.krb:
|
||||||
ldap_con.sasl_gssapi_bind_s()
|
ldap_con.sasl_gssapi_bind_s()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user