Compare commits
18 Commits
ldaptool-0.7
...
debian
| Author | SHA1 | Date | |
|---|---|---|---|
| 9df24ad4b0 | |||
| 0ab89e75b8 | |||
| 5e3d9d8618 | |||
| e7dcb39efb | |||
| 41e34976fc | |||
| a99c9e848c | |||
| 7979fa7cc7 | |||
| ba6cc242f1 | |||
| ca0aa23c27 | |||
| 8928973ee7 | |||
| 18a27b195e | |||
| 6856c452e1 | |||
| d9803c226e | |||
| cbcdb36579 | |||
| 54a23e8060 | |||
| d51d714352 | |||
| 474ee9383f | |||
| 71ab3043f4 |
Vendored
+81
@@ -0,0 +1,81 @@
|
|||||||
|
ldaptool (0.8-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* keyringer backend: handle 'Nothing matches' output, keyringer
|
||||||
|
doesn't fail properly
|
||||||
|
* use only first line from multi-line password entries (and strip
|
||||||
|
whitespace)
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Wed, 21 Jan 2026 14:25:02 +0100
|
||||||
|
|
||||||
|
ldaptool (0.7-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* decode groupType
|
||||||
|
* fix table outputs (join multiple values with separator again), use separate method for (simple) json
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Fri, 12 May 2023 11:17:24 +0200
|
||||||
|
|
||||||
|
ldaptool (0.6-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* move --json to --full_json; remove --human JSON output, replace with --json, but don't merge multiple values - use list instead
|
||||||
|
* run ./fmt.sh to fix lint
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Thu, 11 May 2023 17:30:04 +0200
|
||||||
|
|
||||||
|
ldaptool (0.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Daniel Dizdarevic ]
|
||||||
|
* :Fix version requirement for python3.10
|
||||||
|
|
||||||
|
[ Stefan Bühler ]
|
||||||
|
* handle missing KeePass entry
|
||||||
|
|
||||||
|
[ Daniel Dizdarevic ]
|
||||||
|
* Catch invalid passwords in keepass
|
||||||
|
* Catch CTRL+C and CTRL+D in password prompts
|
||||||
|
|
||||||
|
[ Stefan Bühler ]
|
||||||
|
* improve some error messages
|
||||||
|
* improve config loading: don't modify dicts to allow yaml repeated nodes
|
||||||
|
* add argument to postprocess steps and support index/slicing in DN-related hooks; document them
|
||||||
|
* decode securityIdentifier attribute as SID
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Wed, 10 May 2023 19:53:51 +0200
|
||||||
|
|
||||||
|
ldaptool (0.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* move argument/column handling to decoder (prepare for more post-processing in decoder)
|
||||||
|
* move json output format handling to main tool from decoder
|
||||||
|
* support attribute post-processing; :<len>, and DN :domain, :path, :fullpath
|
||||||
|
* use Enum instead of StrEnum for python3.10
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Tue, 02 May 2023 16:54:00 +0200
|
||||||
|
|
||||||
|
ldaptool (0.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* ldaptool: move output arguments from search to main
|
||||||
|
* run sort internally, refactor table output into separate method
|
||||||
|
* refactor table variant handling
|
||||||
|
* add html output format
|
||||||
|
* README.md: document csvkit dependency
|
||||||
|
* debian: require csvkit (markdown table is an essential feature)
|
||||||
|
|
||||||
|
-- Stefan Bühler <stefan.buehler@tik.uni-stuttgart.de> Fri, 28 Apr 2023 19:31:37 +0200
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
* 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
|
||||||
Vendored
+43
@@ -0,0 +1,43 @@
|
|||||||
|
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},
|
||||||
|
csvkit,
|
||||||
|
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.
|
||||||
Vendored
+27
@@ -0,0 +1,27 @@
|
|||||||
|
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.
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
pristine-tar = False
|
||||||
|
upstream-branch = main
|
||||||
|
debian-branch = debian
|
||||||
|
upstream-tag = ldaptool-%(version)s
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/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/
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
extend-diff-ignore = "^[^/]*[.]egg-info/|^[.]vscode|/__pycache__/|^venv/|^.mypy_cache/"
|
||||||
@@ -26,7 +26,10 @@ def search(*, config: Config, arguments: Arguments) -> typing.Iterable[Result]:
|
|||||||
if arguments.krb:
|
if arguments.krb:
|
||||||
ldap_con.sasl_gssapi_bind_s()
|
ldap_con.sasl_gssapi_bind_s()
|
||||||
else:
|
else:
|
||||||
ldap_con.simple_bind_s(realm.account, config.get_password(realm))
|
password = config.get_password(realm)
|
||||||
|
# use only first line (and without whitespace); assume remaining lines are comments/...
|
||||||
|
password = password.splitlines()[0].strip()
|
||||||
|
ldap_con.simple_bind_s(realm.account, password)
|
||||||
|
|
||||||
assert arguments.base
|
assert arguments.base
|
||||||
assert arguments.filter
|
assert arguments.filter
|
||||||
|
|||||||
@@ -121,7 +121,10 @@ class Keyringer(PasswordManager):
|
|||||||
check=True,
|
check=True,
|
||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
)
|
)
|
||||||
return result.stdout.strip()
|
password = result.stdout.strip()
|
||||||
|
if "Nothing matches , try again." in password:
|
||||||
|
raise SystemExit(f"No password stored for {secretname}")
|
||||||
|
return password
|
||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass
|
@dataclasses.dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user