Wednesday, February 6, 2013

recovering openldap & samba 3.4

recovering openldap & samba 3.4

ldif the db
copy it over
slapadd

rm -rf /var/lib/ldap

touch DB_,..


smbpasswd -W
Enter your root dn or Manager password of OpenLDAP which was specified in /etc/openldap/slapd.conf in rootpw 


#TLSCertificateFile /etc/ssl/servercerts/server_cert.pem
#TLSCertificateKeyFile /etc/ssl/servercerts/server_key.pem

certtool --generate-privkey --outfile server.key
certtool --generate-request --load-privkey server.key --outfile server.csr
certtool --generate-certificate --load-ca-certificate ca.crt --load-ca-privkey ca.key.insecure --load-request server.csr --outfile signed-server.crt

main: TLS init def ctx failed: -34 

No comments: