add ldapsearch parameter '-o ldif-wrap=no' to prevent line breaks

master
root@zabbix.znil.net 2020-05-05 17:33:18 +02:00
parent 43504b383b
commit e7a29cd6dd
2 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ This is a pure bash-script for syncing a Actice-Directory Group via LDAP with a
**Changelog:**<br> **Changelog:**<br>
- 2020-04-14 V1.1 => first public version - 2020-04-14 V1.1 => first public version
- 2020-04-17 V1.1a => Replace hard coded $2 with push-solution - 2020-04-17 V1.1a => Replace hard coded $2 with push-solution
- 2020-05-05 V1.1b => add ldapsearch parameter '-o ldif-wrap=no' to prevent line breaks after 79 chars
<br> <br>
## Features: ## Features:

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
############################################################################################################# #############################################################################################################
# Script Name ...: zabbix-ldap-sync.sh # Script Name ...: zabbix-ldap-sync.sh
# Version .......: V1.1a # Version .......: V1.1b
# Date ..........: 17.04.2020 # Date ..........: 05.05.2020
# Description....: Synchronise Members of a Actice Directory Group with Zabbix via API # Description....: Synchronise Members of a Actice Directory Group with Zabbix via API
# User wich are removed will be deactivated # User wich are removed will be deactivated
# Args ..........: # Args ..........:
@ -11,7 +11,7 @@
# Email Private : Bernhard@znil.de # Email Private : Bernhard@znil.de
############################################################################################################# #############################################################################################################
# Variables # Variables
Script_Version="V1.1a (2020-04-17)" Script_Version="V1.1b (2020-05-05)"
# Colors for printf and echo # Colors for printf and echo
DEFAULT_FOREGROUND=39 DEFAULT_FOREGROUND=39
RED=31 RED=31