Authentication on ldap server for ssh users?
Hi,
here's the problem:
There is a ldap server, which works. I'm not managing it, but I have users accounts on it.
What I'd like to do is using ldap to ask for a password for my users, so that they can sftp in *my* server.
To sum it up, I'd like my users (who are also using ldap on this other server) to sftp to my server, then they would be asked for their password, wich would be validated by the ldap server and, if it is correct, they would be allowed to enter my server.
Is this possible?
I have tried modifying /etc/nsswitch (passwd and group set to "files ldap"), /etc/ldap.conf (with the correct URI), and ssh_config (UsePam yes) but it seems ssh just doesn't try and connect the ldap server. I mean, it gives messages saying that the user has no password in my box (of course, I want it to authenticate against the ldap server not my box).
Well, hope it makes sense :-)
Thx for your help.
|