Hi All,
I am trying to build a system authentication system using openldap.
What I have done:?
1. Configured Ldap Server .
2. Added /etc/passwd data to ldap. ( of the server machine)
3. Ldap is running.
4. Configured client, nsswitch.conf and pam etc.
5. On server I have two users userA and UserB
6. On client I have userA with different password than the UserA on server.
7. I don't have userB in client.
8. On client machine /home/userA and /home/UserB are created.
9. /home/userA is owned by userA
10./home/UserB is owned by root.
Current status:
1. I am able to login as userA with both passwords 1 in server and other in client.
2. I am able to login to client with UserB as failsafe mode.
Problem:
I want to login in normal mode for UserB. For that I need ownership of /home/UserB in the name of UserB.
I am not able to do it with chown command.
Its complaining UserB not found.
I have tried following step already:
# cp /etc/skel/.* /home/UserB/
cp: omitting directory `/etc/skel/.'
cp: omitting directory `/etc/skel/..'
cp: omitting directory `/etc/skel/.kde'
This does not solve my problem.
Note: getent passwd shows only local users
kindly help me.
Thanks & Regards
JP
I am trying to build a system authentication system using openldap.
What I have done:?
1. Configured Ldap Server .
2. Added /etc/passwd data to ldap. ( of the server machine)
3. Ldap is running.
4. Configured client, nsswitch.conf and pam etc.
5. On server I have two users userA and UserB
6. On client I have userA with different password than the UserA on server.
7. I don't have userB in client.
8. On client machine /home/userA and /home/UserB are created.
9. /home/userA is owned by userA
10./home/UserB is owned by root.
Current status:
1. I am able to login as userA with both passwords 1 in server and other in client.
2. I am able to login to client with UserB as failsafe mode.
Problem:
I want to login in normal mode for UserB. For that I need ownership of /home/UserB in the name of UserB.
I am not able to do it with chown command.
Its complaining UserB not found.
I have tried following step already:
# cp /etc/skel/.* /home/UserB/
cp: omitting directory `/etc/skel/.'
cp: omitting directory `/etc/skel/..'
cp: omitting directory `/etc/skel/.kde'
This does not solve my problem.
Note: getent passwd shows only local users
kindly help me.
Thanks & Regards
JP