LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ldap issues (https://www.linuxquestions.org/questions/linux-newbie-8/ldap-issues-4175496588/)

zinny 02-28-2014 03:05 PM

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.

acid_kewpie 03-01-2014 09:18 AM

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.

zinny 03-01-2014 04:10 PM

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?

acid_kewpie 03-03-2014 02:32 AM

as above, does the directory exist? Your updates there don't prove it at all. And is the mount happening?

zinny 03-03-2014 08:38 AM

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.

acid_kewpie 03-03-2014 12:25 PM

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.