Compare commits
2 Commits
debian/0.1
...
ldaptool-0
Author | SHA1 | Date | |
---|---|---|---|
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
|
||||||
|
|
||||||
|
11
debian/changelog
vendored
11
debian/changelog
vendored
@ -1,11 +0,0 @@
|
|||||||
ldaptool (0.1-1) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Initial release.
|
|
||||||
|
|
||||||
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Fri, 28 Apr 2023 12:09:30 +0200
|
|
||||||
|
|
||||||
ldaptool (0.1-0) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Stub ITP lintian.
|
|
||||||
|
|
||||||
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Fri, 28 Apr 2023 12:09:29 +0200
|
|
42
debian/control
vendored
42
debian/control
vendored
@ -1,42 +0,0 @@
|
|||||||
Source: ldaptool
|
|
||||||
Section: net
|
|
||||||
Priority: optional
|
|
||||||
Maintainer: Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de>
|
|
||||||
Rules-Requires-Root: no
|
|
||||||
Build-Depends:
|
|
||||||
debhelper-compat (= 13),
|
|
||||||
pybuild-plugin-pyproject,
|
|
||||||
flit,
|
|
||||||
dh-sequence-python3,
|
|
||||||
python3,
|
|
||||||
python3-ldap,
|
|
||||||
python3-yaml,
|
|
||||||
python3-pykeepass,
|
|
||||||
#Testsuite: autopkgtest-pkg-python
|
|
||||||
Standards-Version: 4.6.2
|
|
||||||
Homepage: https://git-nks-public.tik.uni-stuttgart.de/net/ldaptool
|
|
||||||
|
|
||||||
Package: python3-ldaptool
|
|
||||||
Architecture: all
|
|
||||||
Depends:
|
|
||||||
${python3:Depends},
|
|
||||||
${misc:Depends},
|
|
||||||
Recommends:
|
|
||||||
python3-pykeepass,
|
|
||||||
Description: CLI tool to run ldap queries
|
|
||||||
CLI tool to query LDAP/AD servers, featuring various output formats
|
|
||||||
and a configuration for different realms.
|
|
||||||
.
|
|
||||||
This package installs the library for Python 3.
|
|
||||||
|
|
||||||
Package: ldaptool
|
|
||||||
Architecture: all
|
|
||||||
Depends:
|
|
||||||
python3-ldaptool (=${binary:Version}),
|
|
||||||
${python3:Depends},
|
|
||||||
${misc:Depends},
|
|
||||||
Description: CLI tool to run ldap queries
|
|
||||||
CLI tool to query LDAP/AD servers, featuring various output formats
|
|
||||||
and a configuration for different realms.
|
|
||||||
.
|
|
||||||
This package installs the script.
|
|
27
debian/copyright
vendored
27
debian/copyright
vendored
@ -1,27 +0,0 @@
|
|||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
||||||
Source: <https://git-nks-public.tik.uni-stuttgart.de/net/ldaptool>
|
|
||||||
Upstream-Name: ldaptool
|
|
||||||
|
|
||||||
Files:
|
|
||||||
*
|
|
||||||
Copyright:
|
|
||||||
2023 Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de>
|
|
||||||
2023 Daniel Dizdarevic <daniel.dizdarevic@tik.uni-stuttgart.de>
|
|
||||||
License: MIT
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
.
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
.
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
5
debian/gbp.conf
vendored
5
debian/gbp.conf
vendored
@ -1,5 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
pristine-tar = False
|
|
||||||
upstream-branch = main
|
|
||||||
debian-branch = debian
|
|
||||||
upstream-tag = ldaptool-%(version)s
|
|
13
debian/rules
vendored
13
debian/rules
vendored
@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
|
|
||||||
export PYBUILD_NAME=ldaptool
|
|
||||||
|
|
||||||
%:
|
|
||||||
dh $@ --buildsystem=pybuild
|
|
||||||
|
|
||||||
# we want /usr/bin/ldaptool in a separate package
|
|
||||||
override_dh_auto_install:
|
|
||||||
dh_auto_install
|
|
||||||
|
|
||||||
mkdir -p debian/ldaptool/usr
|
|
||||||
mv debian/python3-ldaptool/usr/bin debian/ldaptool/usr/
|
|
1
debian/source/format
vendored
1
debian/source/format
vendored
@ -1 +0,0 @@
|
|||||||
3.0 (quilt)
|
|
1
debian/source/options
vendored
1
debian/source/options
vendored
@ -1 +0,0 @@
|
|||||||
extend-diff-ignore = "^[^/]*[.]egg-info/|^[.]vscode|/__pycache__/|^venv/|^.mypy_cache/"
|
|
@ -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()
|
||||||
|
Reference in New Issue
Block a user