if [ ! -f /etc/ldap/ldap.conf ]; then
		echo "[ ok ] Creating initial Configuration"
        cp -r /tmp/ldap/* /etc/ldap/;
        rm -r /tmp/ldap/
fi

#apt-get update && apt-get install -y \
#    fusiondirectory \
#    fusiondirectory-schema  \
#    fusiondirectory-plugin-ssh

service rsyslog restart
chown -R openldap:openldap /etc/ldap/slapd.d
chown -R openldap:openldap /var/lib/ldap
service slapd restart
cp -r /tmp/ldap/schema/fusiondirectory /etc/ldap/schema/

fusiondirectory-insert-schema
fusiondirectory-insert-schema -i /etc/ldap/schema/fusiondirectory/openssh-lpk.schema
service apache2 restart
bash

