Opened 14 years ago

#133 new feature request

ldap sync check

Reported by: Edwin Eefting Owned by:
Priority: high Milestone:
Component: Syn-3 package Keywords:
Cc:

Description

dit ldap sync check script inbouwen:

#!/bin/bash

if ls -l /etc/openldap/slapd.conf | grep mirror >/dev/null; then
    if diff <(ldapsearch -h ldap-master -D cn=Manager,dc=syn-3 -w `cat /etc/webint/LDAP_MASTER_PASSWD`|sort) <(ldapsearch -h ldap-slave -D cn=Manager,dc=syn-3 -w `cat /etc/webint/LDAP_SLAVE_PASSWD`|sort); then
        syn3-state ldap-sync OK "data between ldap-master and ldap-slave is syncronsised"
    else
        syn3-state ldap-sync CAUTION "syncronisation error between ldap-master and ldap-slave. Please run $0 for more info."
    fi
else
    syn3-state ldap-sync DELETE
fi

Change History (0)

Note: See TracTickets for help on using tickets.