Commit graph

51 commits

Author SHA1 Message Date
057ddf2a0b Switch from Woodpecker CI to Forgejo Actions
All checks were successful
Run tests / test-precommit (push) Successful in 1m15s
2024-03-14 00:08:08 +01:00
022c8fe7f6 Introduce pre-commit hooks 2024-03-14 00:02:33 +01:00
f3f8ae9f1a Fix NRPE command example
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-26 11:32:45 +02:00
Benjamin Renard
67aaf9852c Update git repo URL
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-26 11:25:07 +02:00
Benjamin Renard
f1a1cc3193 Fix encoding of the TOUCH value (python3)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2022-08-29 09:44:36 +02:00
Benjamin Renard
cdf35ecd5a CI: use brenard/aptly-publish image for publish-apt job
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2022-08-01 23:28:55 +02:00
Benjamin Renard
f24ce7f266 CI: add release notes 2022-08-01 23:28:55 +02:00
4dc2425387 Improve install doc
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-06-29 18:51:27 +02:00
Benjamin Renard
d8a6267d7a Fix CI
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2022-05-01 03:15:17 +02:00
Benjamin Renard
b1953a5b51 Add CI for testing and publishing (gitea version & debian package)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-05-01 03:12:04 +02:00
Benjamin Renard
d33df5c23d Fix pylint/flake8 warnings 2022-05-01 02:39:51 +02:00
a3d6c8cfb0 Add some info about dependencies and installation method 2021-03-23 18:05:39 +01:00
Björn Zettergren
2f6d97f761 fix byte-array / str
python3 returns byte-arrays instead of strings for ldap-data in
ContextCSNs, which makes the listcomprehension fail with a TypeError
when using the --serverID flag like so:

    CSN = [s for s in contextCSNs if sub in s]
TypeError: a bytes-like object is required, not 'str'

explicitly encoding 'sub' to byte-array, not sure if this is best way,
but seems to work well enough.
2021-03-23 17:48:34 +01:00
Benjamin Renard
5ce72df6dc Switch the script shebang to python3 2021-03-23 17:47:10 +01:00
Björn Zettergren
09722e94af linting long-lines
reorganized some low hanging fruit for fixing line-too-long reports from
pylint
2021-03-23 17:43:55 +01:00
Björn Zettergren
0b51046476 removed unused variables/constants
suspect these modules were added in initial commit after copying the
demo/example from python-ldap repository, possibly from
https://github.com/python-ldap/python-ldap/blob/master/Demo/initialize.py

These are seemingly never used, and pylint complains about them
2021-03-23 17:43:06 +01:00
Benjamin Renard
7153dfea86 Linting
Removed some redundant code that pylint-complaints about like `else` and
`elif` cases as suggest by Björn Zettergren <bjorn.zettergren@deltaprojects.com>
2021-03-23 17:40:04 +01:00
Benjamin Renard
36f9a09a34 Add --only-check-contextCSN parameter 2021-02-02 14:11:58 +01:00
Benjamin Renard
9e6de5077f Fix python3 compatibility 2021-02-02 11:38:29 +01:00
Benjamin Renard
3c39ff7488 Fix search scope on loading servers ContextCSN 2021-02-02 11:16:51 +01:00
Benjamin Renard
d9ac73473d Update README and comments 2020-12-18 14:19:02 +01:00
Benjamin Renard
d19d121843 Code cleaning 2020-12-18 11:24:09 +01:00
Benjamin Renard
99aa93a497 Fix touch mode when touch value is already in touch attibute and add --remove-touch-value parameter 2019-12-20 10:46:50 +01:00
Benjamin Renard
5b462ecc8a Add long output in nagios mode 2019-12-12 15:56:04 +01:00
Benjamin Renard
72d64029fd Update usage message in README.md file 2019-01-04 16:27:55 +01:00
Benjamin Renard
3507201ea4 Add paging support (thanks to Jurgen Brand - CGI) 2019-01-04 16:25:08 +01:00
Benjamin Renard
d07c61cf1e Make password prompt automatic 2018-12-06 18:39:18 +01:00
f3771a77c7 Update usage message in README.md file 2017-09-12 13:20:51 +02:00
4c2a31cf49 Release v2017.09.12 2017-09-12 13:12:32 +02:00
43df1e8de3 Improve ContextCSN error messages 2017-09-12 13:09:35 +02:00
2ece7b0cab Add -i/--serverID parameter to specify on which ContextCSN to check 2017-09-12 13:01:52 +02:00
531a0a0861 Improve parameter errors handling in Nagios mode 2017-09-12 12:58:43 +02:00
6efc8f404f Add icingaexchange.yml file 2017-09-11 13:55:07 +02:00
e56bbc4eb9 Migrate README as Markdown file 2017-09-11 12:28:10 +02:00
Benjamin Renard
5dfd755885 Add -T/--starttls parameters to permit to STARTTLS on LDAP connections 2016-11-04 19:00:42 +01:00
49337ceeed Add possibility to enter password with a prompt 2016-06-28 23:54:44 +02:00
Benjamin Renard
07048d3e26 Leave possibilty to not provide bind DN and Password to connect to LDAP servers 2014-08-07 10:27:02 +02:00
Benjamin Renard
259e3268c6 Fixed error in replace touch feature 2013-12-20 10:07:17 +01:00
Benjamin Renard
78538bc48b Add informations about --replace-touch parameter in README file and help message 2013-12-19 18:42:57 +01:00
Benjamin Renard
e9b1f0f26f Add --replace-touch parameter 2013-12-19 18:38:47 +01:00
Benjamin Renard
b4004e2a0f Added README file on provide more explanation in top of script 2013-12-18 18:54:51 +01:00
618a5d7fff Remove incompatible warning between touch and nagios mode 2013-11-05 11:07:31 +01:00
f7801450b4 Added touch on not found objects 2013-05-26 13:54:46 +02:00
Benjamin Renard
b777a82a83 Added "Touch attribute" feature 2013-05-15 17:32:27 +02:00
Benjamin Renard
b685053626 Added --exclude-attributes parameter 2013-05-15 17:31:41 +02:00
Benjamin Renard
0c32a0d67d Fixed indent 2013-05-15 17:30:15 +02:00
Benjamin Renard
ec08775469 Added .gitignore file 2013-05-15 16:30:05 +02:00
Benjamin Renard
27a62825f2 Fixed attributes check : added sort of values before comparing 2013-02-26 13:45:36 +01:00
Benjamin Renard
bd98262e54 Specify sync problem during LDAP attributes check 2013-02-20 10:40:01 +01:00
04a4919ddd Fixed ContextCSN check during standart check 2013-02-11 23:09:08 +01:00