ldaptool-0.2

-----BEGIN PGP SIGNATURE-----
 
 iQJYBAABCgBCFiEEcdms641aWv8vJSXMIcx4mUG+20gFAmRL5FokHHN0ZWZhbi5i
 dWVobGVyQHRpay51bmktc3R1dHRnYXJ0LmRlAAoJECHMeJlBvttI0uwP/1q6+LvU
 4Mepd6+0OdKYMe51x3G8HqsWG61CPJoeTEAgSq4MNc6krTFTmIkDxMWX5CoCzPbw
 4x4HnSDXAp9CL0FsqlLI9iTMCTt3LnR5GdIc5VZg9rvc/IwS04pnzT8tplVZ7ohN
 /0Evl9/LXreo4AEzm6V2AC1MEyrSeMrgM4TAmwH5aHpuniaz+SDjOrD5mpt305LE
 CdzLcpymT04vsLjI8l+AWxGXdKZy+JmAMEn4Ez+PJd5dZRfszaJxQ/2ybAnJTMJc
 1VaLtAd13gmzBvzEKt1mhCbS84nmG3H7ZV6OSFVnEitIw8h9xpSV0oP6/BrU5tpW
 wy05xUObeLABJLu4W+FEb1ilZDkaJ0utt0X1WdmDjFisl1TXZa9Zg5nSLVMdnrWn
 ENG2xPVvJzIV6wIc0o3xix0Krs67he3ANAZXhse46/z5ldQU9qMc8YaBuUm82Aci
 RMYOM74SxlJYGvNNUAFReR4x+ONwhIyWeT58tDsamgjlZZSjULlDXElgE2Si2429
 dVe2l7zrbGbgjW81QTg+Yv1CI99jvPTAmwbj+pgpHM531MUFfzsBW+KdTgO98rYC
 Rnw7ET09ehhHMfKJgiWxMYRbjIKdYOEtfMg15H7x8wUBypEd0n7hK16nVo9IMl4q
 okSJSj6Jrl8qZcXRWV1HkeSy0nr9P+iI1Ivr
 =fz/A
 -----END PGP SIGNATURE-----

Merge tag 'ldaptool-0.2' into debian

ldaptool-0.2
This commit is contained in:
Stefan Bühler 2023-04-28 17:21:18 +02:00
commit 474ee9383f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()