EITHER can't access ldap server OR client isn't configured correctly
I seem to be in a complete stall as to how or why I can't seem to get a client pc to connect to an LDAP server....
ubuntu version is 11.10.
I started off using this tutorial
which helped in setting up the LDAP server on a server machine.
I also added TLS support (chapter "TLS") but i didn't follow chapters "replication" or "replication and TLS".
Then I went on to configure the client (chapter "LDAP Authentication").
I followed the steps again and again , reconfigured the package ldap-auth-config but had no luck..
since yesterday I have read/tried countless tutorials, (for different versions of ubuntu, different distros).. but I haven't managed to get the command
The thing is I don't know if there is a problem with the client config of some problem with the LDAP server (btw -firewalls are down on both the ldap server and client), and I can't find a single tutorial to help me give me some sort of command that does ldap queries from the client side, just to see if the server responds to it!!
what's more, I am extremely confused at this point at the differences between libnss-ldap, libpam-ldap, libpam-ldapd, libnss-ldapd (if that thing even exists - i can't remember all the different options for authentication I came across) and the list can go on.
where should files be located in the client? /etc/ or /etc/ldap/ ?
how should they be called? libnss-ldap.conf? libpam-ldap.conf? something else? what else is needed?
Can someone help with checking the contents of my client config files? As I have very ZERO experience with pam, nss, and ldap ...
Thank you for your help
here are some of the relevant files (ask for it if I forgot something)
the relevant .secret files are the same too (contain only the plain text LDAP root user password (why should that exist on a client pc, i don't know - but the ncurses dpkg-reconfigure ldap-auth-config asked for it)
If you need something else, let me know,
If there is any command that I can use on the client side to check connectivity to LDAP server, please let me know!!!!
Thank you very much for your help.
You can try using ldapsearch (if installed) from the client to make sure the DS is setup properly.
Use "man ldapsearch" to get the exact parameters, but I use something like this:
ldapsearch -b <dc=example,dc=com> -h <hostname> objectclass=*
If you get values returned from this that means your client made a successful anonymous bind (assuming that's allowed on your DS) to the ldap server and your configuration on the client side is wrong (since getent passwd isn't working).
If ldapsearch isn't installed on the client I think you can do the same basic test directly from the DS. It won't test communication problems between the client/server though obviously.
When I was setting up it was useful to tackle this in stages:
1. Get ldapsearch working
2. Get lookup ("getent passwd" or "id <ldap_user>") working
3. Get pam authentication working with ldap
unfortunately ldapsearch tool is part of the ldap server suite.
as such i don't have it in the clients - i am going to install the server again in another machine just to be able to connect to the other system while i'm trying to set ldap up.
ldapsearch does work fine when im querying the ldap server locally.. i guess the server runs fine..
sane ACLs have also been setup through the tutorial .. so i believe that's ok,too
i am fuzzy about TLS and how I should connect to the server though.
in the ubuntu guide i referenced, it says that ldap:// & ldapi:// connections should be favored instead of ldaps:// ones...
considering the step by step check you propose, thaats exactly what i'm doing...
2.getent ---- not ok ....
so i needs tests in between to find out what has gone wrong...
should i start fresh without TLS to make sure its ok before i add encrypted transmission??
|All times are GMT -5. The time now is 08:27 PM.|