*** then i modified the files in /etc/pam.d/ starting with common- as in a site I found

From here I successfully authenticate with a client on the server.
It used to work from a remote client (where I modifed /etc/ldap.conf, /etc/nsswitch.conf, /etc/pam.d/common- files as before). But now eventhough I authenticate, I get these messages
-bash /home/<client>/.profile : permission denied (at login)
-bash /home/<client>/.bash_logout : permission denied (at logout)

But the worst part is when I try to use TLS encryption.
(the certificates are auto-signed, created by certtool)
I just added those lines:
*** in /etc/ldap.confssl start_tls
tls_cacert /etc/ssl/certs/cacert.pem
tls_cert /etc/ssl/certs/ldap_cert.pem
tls_key /etc/ssl/private/ldap_key.pem