#!/bin/bash

# initialisation du fichier des fournisseurs ldap
touch $(CreoleGet container_path_annuaire)/etc/ldap/replication.conf

if [ $(CreoleGet activer_client_ldap) = "local" ];then
    echo -e "\n## Gestion du mot de passe LDAP ##"
    if [ ! -f /root/.reader ];then
	pwgen -cn1 56 > /root/.reader
        chmod 600 /root/.reader
    fi
    /usr/share/eole/sbin/ldap_pwd.py `/usr/bin/pwgen -cn1 12` > /dev/null
fi
exit 0
