LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2014, 04:05 PM   #1
zinny
Member
 
Registered: Aug 2013
Posts: 35
Blog Entries: 1

Rep: Reputation: Disabled
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.

Last edited by zinny; 02-28-2014 at 05:45 PM.
 
Old 03-01-2014, 10:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 03-01-2014, 05:10 PM   #3
zinny
Member
 
Registered: Aug 2013
Posts: 35
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
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?

Last edited by zinny; 03-03-2014 at 09:40 AM.
 
Old 03-03-2014, 03:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
as above, does the directory exist? Your updates there don't prove it at all. And is the mount happening?
 
Old 03-03-2014, 09:38 AM   #5
zinny
Member
 
Registered: Aug 2013
Posts: 35
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-03-2014, 01:25 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You can't *believe* it's happening, it either is or it isn't. run "mount" at the point of login and check.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP server and NFS issues malak33 Linux - Newbie 1 11-14-2012 06:06 AM
Openfiler, LDAP and NAS issues decenter Linux - Server 0 11-08-2012 02:42 AM
SiTracker LDAP authentication issues. linuxlover.chaitanya Linux - Newbie 0 12-03-2011 03:28 AM
LDAP authentication issues ciphyre Linux - Server 0 11-20-2008 05:41 PM
webmin/ldap issues labratmatt Linux - Software 0 01-17-2005 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration