OpenLDAP tool to check CRC32 of LDIF files of slapd.d directory
Go to file
Benjamin Renard 32ced674a4
Run tests / test-precommit (push) Successful in 1m3s Details
Switch from Woodpecker CI to Forgejo Actions
2024-03-13 23:42:34 +01:00
.forgejo/workflows Switch from Woodpecker CI to Forgejo Actions 2024-03-13 23:42:34 +01:00
debian debian package: put script in /usr/bin 2022-05-01 21:29:22 +02:00
.gitignore Add CI for testing and publishing (gitea version & debian package) 2022-05-01 20:51:15 +02:00
.pre-commit-config.yaml Introduce pre-commit hooks 2024-03-13 23:37:29 +01:00
.pylintrc Add CI for testing and publishing (gitea version & debian package) 2022-05-01 20:51:15 +02:00
README.md Introduce pre-commit hooks 2024-03-13 23:37:29 +01:00
build.sh Introduce pre-commit hooks 2024-03-13 23:37:29 +01:00
check_slapdd_crc32 Introduce pre-commit hooks 2024-03-13 23:37:29 +01:00

README.md

OpenLDAP tool to check CRC32 of LDIF files of slapd.d directory

This script permit to check (and eventually fix) CRC32 value of the LDIF files of OpenLDAP slapd.d configuration directory.

Requirements

This script only used common python3 modules (no additional package to install on Debian based systems).

Installation

git clone https://gogs.zionetrix.net/bn8/check_slapdd_crc32.git /usr/local/src/check_slapdd_crc32
ln -s /usr/local/src/check_slapdd_crc32/check_slapdd_crc32 /usr/local/sbin/check_slapdd_crc32

Usage

usage: check_slapdd_crc32 [-h] [-d] [-v] [-l LOGFILE] [-C] [-f]
                          [-p SLAPDD_PATH]

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Show debug messages
  -v, --verbose         Show verbose messages
  -l LOGFILE, --log-file LOGFILE
                        Log file path
  -C, --console         Also log on console (even if log file is provided)
  -f, --fix             Fix CRC32 value in LDIF files
  -p SLAPDD_PATH, --path SLAPDD_PATH
                        Default slapd.d directory path (default:
                        /etc/ldap/slapd.d)

Copyright (c) 2014-2019 Benjamin Renard

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.