updateMemberOf/README.md

56 lines
2.1 KiB
Markdown
Raw Normal View History

2021-07-12 12:43:11 +02:00
# Update memberOf
Tool to force update memberOf attributes of users on OpenLDAP directory using memberOf overlay.
## Requirements
* [python-mylib](https://gogs.zionetrix.net/bn8/python-mylib)
2021-07-12 12:43:11 +02:00
## Installation
```
git clone https://gogs.zionetrix.net/bn8/updateMemberOf.git /usr/local/src/updateMemberOf
2021-07-12 12:43:11 +02:00
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]
2021-07-12 12:43:11 +02:00
Update memberOf attributes
optional arguments:
-h, --help show this help message and exit
-v, --verbose Enable verbose mode
2021-07-12 12:43:11 +02:00
-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:
2021-07-12 12:43:11 +02:00
-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
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.