mistica-df
(usa Debian)
Enviado em 13/11/2011 - 23:21h
Tive um problema parecido este ano com o Debian 6 e o OpenLdap slapd_2.4.23-7.2
resolvi da seguinte forma :
root@debian:/home/debian/ArquivoDefault_OpenLdap# slaptest <teste da configuração>
config file testing succeeded
root@debian:/home/debian/ArquivoDefault_OpenLdap# /etc/init.d/slapd stop <parando o slapd>
Stopping OpenLDAP: slapd.
root@debian:/home/debian/ArquivoDefault_OpenLdap# rm -rf /etc/ldap/slapd.d/*
root@debian:/etc/ldap/slapd.d# slaptest
config file testing succeeded
root@debian:/etc/ldap/slapd.d# slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/
config file testing succeeded
root@debian:/etc/ldap/slapd.d# chmod -R 777 /etc/ldap/slapd.conf
root@debian:/etc/ldap# slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/
config file testing succeeded
root@debian:/etc/ldap# chown -R openldap:openldap /etc/ldap/slapd.d/
root@debian:/etc/ldap# chmod -R 000 /etc/ldap/slapd.d/
root@debian:/etc/ldap# chmod -R u+rwX /etc/ldap/slapd.d/
root@debian:/etc/ldap# /etc/init.d/slapd start
Starting OpenLDAP: slapd.
root@debian:/etc/ldap# /etc/init.d/slapd status
slapd is running.
root@debian:/home/debian# ldapadd -x -D "cn=admin,o=caixa" -W -f caixa.ldif
Enter LDAP Password:
adding new entry "o=caixa"
adding new entry "ou=Groups,o=caixa"
adding new entry "cn=SICTD,ou=Groups,o=caixa"
.......