Tool to force update memberOf attributes of users on OpenLDAP directory using memberOf overlay.
Find a file
Benjamin Renard a2673fc605
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Try again to fix CI
2022-12-17 00:45:42 +01:00
.gitignore Initial legacy version 2021-07-12 12:43:11 +02:00
.pylintrc Clone cleaning and configure CI to run tests 2022-12-17 00:33:34 +01:00
.woodpecker.yml Try again to fix CI 2022-12-17 00:45:42 +01:00
README.md First version using packaged mylib version 2021-07-12 13:45:25 +02:00
updateMemberOf Clone cleaning and configure CI to run tests 2022-12-17 00:33:34 +01:00

Update memberOf

Tool to force update memberOf attributes of users on OpenLDAP directory using memberOf overlay.

Requirements

Installation

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

Usage

usage: updateMemberOf [-h] [-v] [-d] [-l LOGFILE] [-C] [-j] [-p] [-H HOST] [-D DN] [-P PWD] [-f FILTER] [-b BASE] [--v2] [-a ATTR]

Update memberOf attributes

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Enable verbose mode
  -d, --debug           Enable debug mode
  -l LOGFILE, --log-file LOGFILE
                        Log file path (default: None)
  -C, --console         Always log on console (even if log file is configured)
  -j, --just-try        Enable just-try mode
  -p, --progress        Enable progress bar

LDAP options:
  -H HOST, --host HOST  LDAP server URI (default: ldapi:///)
  -D DN, --dn DN        LDAP bind DN
  -P PWD, --password PWD
                        LDAP bind password
  -f FILTER, --filter FILTER
                        LDAP groups filter (default: (objectClass=posixGroup))
  -b BASE, --base BASE  LDAP group base DN
  --v2                  Utiliser le protocole LDAP v2.
  -a ATTR, --attr ATTR  Group members attribute (default: uniqueMember)

Copyright (c) 2013-2021 Benjamin Renard brenard@zionetrix.net

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 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.