Re: LDAP without home

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Oct 22, 2009, at 7:38 AM, Stefan Kuhne wrote:

i authenticate against an externel LDAP-Server.
This server have no home entry, so i get

getent passwd
...
root:x:0:0:root::/bin/bash
...
for example.
Which source should i motify to add a home entry or can i write a pam
module?

This is probably due to an nss_ldap configuration problem. Figure out which LDAP attribute has the user's home directory. If it's called "myLocalHomeDirAttribute" then add the following to your /etc/ ldap.conf or /etc/nss-ldap.conf (whichever your distribution uses for nss-ldap)

nss_map_attribute homeDirectory myLocalHomeDirAttribute

If you aren't storing the home directory in LDAP, then you are out of luck unless you want everyone to have the same home directory.

Cheers,
Tim Nowaczyk

--
Timothy Nowaczyk
Network Systems Engineer
University of Virginia - ITC
tan7f@xxxxxxxxxxxx



_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux