Ldap issues
please can someone help.
I configured ldap server (RHEL 6.4) and client (RHEL 6.4) and then mounted it with autofs but each time i login as an ldapuser i get this error [root@examserver ~]# su - ldapuser2 su: warning: cannot change directory to /home/guests/ldapuser2: No such file or directory. -bash-4.1$ id uid=502(ldapuser2) gid=502(ldapuser2) groups=502(ldapuser2) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 -bash-4.1$ pwd /root -bash-4.1$ my autofs file looks like this: * -fstype=ext3,rw,hard,intri ldap.example.com:/home/guests/& service autofs reload. please tell me where i can be getting it all missed up. Thank you. |
well it says the directory doesn't exist. Is that true or not? is the mount happening? Not seeing anything LDAP related at all here yet, this would be autofs related.
|
Thanks for your response,
The directory does exit...... check it out. [root@examserver ~]# getent passwd ldapuser2 ldapuser2:*:502:502:ldapuser2:/home/guests/ldapuser2:/bin/bash [root@examserver ~]# su - ldapuser2 Creating home directory for ldapuser2. su: warning: cannot change directory to /home/guests/ldapuser2: No such file or directory -bash-4.1$ And my autofs file looks like this ..... vi /etc/auto.guests * -fstype=ext3,rw,hard,intri ldap.example.com:/home/guests/& service autofs reload. Do i need to edit any other file than the /etc/auto.master where i have the auto.guests specified? |
as above, does the directory exist? Your updates there don't prove it at all. And is the mount happening?
|
The directory does exit at the server side and the mount too I believe is happening which is why I can have the home directory sometimes when I login but why I don't have home directory sometimes too after logging in is what am trying to resolve.
|
You can't *believe* it's happening, it either is or it isn't. run "mount" at the point of login and check.
|
All times are GMT -5. The time now is 12:50 AM. |