As for the other config files this is what I have for /etc/nssswitch.conf:
passwd: files ldap shadow: files ldap group: files ldap
#hosts: db files nisplus nis dns hosts: files dns
I'm currently not using hosts file so I do not need it to look up in ldap. Thus the nss_base_hosts line is commented out in /etc/ldap.conf. The others are as follows:
#nss_base_passwd ou=People,dc=firerun,dc=net?one nss_base_shadow ou=People,dc=firerun,dc=net?one nss_base_group ou=Groups,dc=firerun,dc=net?one #nss_base_hosts ou=Hosts,dc=example,dc=com?one
one thing to note is I had this configuration working before setting up samba. Thus I had user accounts on the system and could login on the console or using ssh. For that to work pam must be setup to check ldap for the services. On RedHat 9 it was a simple matter of running authconfig-gtk and supplying the ldap information. Once that was done I could login to the system with an account stored in ldap.
Patrick
Christoph Rudorff wrote:
Am Mittwoch, 19. November 2003 18:38 schrieb Patrick:
Christoph,
I'm not actually using the PADL scripts to setup the posixAccount
information. I created my own shell scripts to add accounts to LDAP.
The script I'm using will just add the posixAccount information to
LDAP. Then Samba will find the entry and add the sambaSamAccount
attributes.
My script does the same.
There may be one other reason it is working that I did not mention
before. I edited by /etc/ldap.conf file and commented out this line:
#nss_base_passwd ou=People,dc=firerun,dc=net?one
Argh! How about the 'nss_base_hosts' line ?!?! And the content of the '/etc/nsswitch.conf' file? passwd, shadow, hosts ?!?
The pieces comes together
chris
-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba