LDAP 101: Server / Client setup with automount user home directories
The goal: A simple Openldap server that a client can connect to and mount user home directories on a test domain (example.com). The goal is to start out with simple bind and then eventually get TLS working.
I have started with this process as an initial guide
Continued troubleshooting from r/linuxadmin: http://www.reddit.com/r/linuxadmin/comments/1xfvu9/ldap_serverclient_with_automount_user_home/
Posted Feb 10, 2014, 12:08 PM UTC
424
Simple bind from the server:
Simple bind from the client:
Ok, problem #1. On the client system, you haven't specified an LDAP server. On most systems, if you install LDAP client packages, /etc/ldap.conf (or /etc/openldap/ldap.conf, depending on system) will either contain no host or point to localhost -- which obviously isn't correct in this instance.
On the client system, try adding "-H ldap://(server name/address here)/" between the "-x" and "-b" options of your ldapsearch line.
I got the original command working it was a networking issue. (Firewall). Now the output from the command on the client matches what I get on the server side.
Ok, it looks like you have an object at "uid=test,dc=example,dc=com", but it doesn't appear to have any attributes.
Any chance you could post your slapcat(8) output? Just in case, remember to grep out '^userPassword'. No need to show your hashes in public. :-)
The output is huge because the script in that guide imports every user on the system. Here is the relevant part I think: