LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-04-2014, 12:52 AM   #1
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Rep: Reputation: 1
How to login through LDAP as a roaming user in all servers??


HI,

I have created ldap server in cento6.5 final. I have created a user account testuser in ldap server. As I have nearly 10 different servers in in the same network, I want to create a roaming profile for this testuser. For example, the testuser has a home directory /home/testuser which is generated while creating account in ldap server and this testuser log in from server1 and created a test1 file in his home directory /home/testuser. Now if this testuser log out from server1 and log in from server2 (or) log in from server3 (or) log in from server4, then his /home/testuser directory should be seen in the newly login server and also the test1 file which he has created in the previous server1 should be seen under /home/testuser directory on this server2 (or) server3 (or) server4 respectively. That means it should be roaming user, then only his complete profile will be roaming and can be accessed from any of these servers. Please help me how should I do this configuration???? Should I need an NIS server (or) NFS server for this???


Regards
Rahul
 
Old 07-04-2014, 08:35 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,812

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by rahul.buragohain View Post
HI,
I have created ldap server in cento6.5 final. I have created a user account testuser in ldap server. As I have nearly 10 different servers in in the same network, I want to create a roaming profile for this testuser. For example, the testuser has a home directory /home/testuser which is generated while creating account in ldap server and this testuser log in from server1 and created a test1 file in his home directory /home/testuser. Now if this testuser log out from server1 and log in from server2 (or) log in from server3 (or) log in from server4, then his /home/testuser directory should be seen in the newly login server and also the test1 file which he has created in the previous server1 should be seen under /home/testuser directory on this server2 (or) server3 (or) server4 respectively. That means it should be roaming user, then only his complete profile will be roaming and can be accessed from any of these servers. Please help me how should I do this configuration???? Should I need an NIS server (or) NFS server for this???
Have you tried looking up ANY of the easily-found documentation/how-to guides on openLDAP and roaming profiles??? A few of what Google turns up:

http://www.linuxdocs.org/HOWTOs/LDAP-HOWTO-6.html
https://www.samba.org/samba/docs/man...ide/happy.html
http://samba.2283325.n4.nabble.com/S...td3681299.html

Unless you have some shared network resources for storage (like NFS or Samba), the users files will remain on one server.
 
Old 07-07-2014, 12:19 AM   #3
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi,
Thanks for your reply. Well let me go through the links which u gave me and if I find any issues, den I will let you know...


Regards,
Rahul
 
Old 07-07-2014, 08:44 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,812

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by rahul.buragohain View Post
Hi,
Thanks for your reply. Well let me go through the links which u gave me and if I find any issues, den I will let you know...
Yes, if you have specific questions, please post them...but do try to do some basic research on your own first. And please see the LQ Rules about text-speak...don't use it, and spell out your words.
 
Old 07-07-2014, 08:54 AM   #5
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi,

I have done the configuration in ldap client and also the samba configuration on the server side. But still I am getting this error as:

[root@ldap2 ~]# su - test12
su: warning: cannot change directory to /home/test12: No such file or directory
-sh-4.1$


Regards,
Rahul
 
Old 07-07-2014, 10:36 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,812

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by rahul.buragohain View Post
Hi,
I have done the configuration in ldap client and also the samba configuration on the server side. But still I am getting this error as:

[root@ldap2 ~]# su - test12
su: warning: cannot change directory to /home/test12: No such file or directory
-sh-4.1$
Ok, and since we don't know ANYTHING about how you set your system up, what do you think we'll be able to tell you? We can't see your configuration files, your log files, or see ANYTHING that you don't post here. Would help if you told us what guide you followed as well. Again, unless ALL your LDAP servers share the ONE network resource (and again, that's EITHER shared through NFS or Samba), you'll have this error.

Short answer is: you made a mistake in the configuration.
Longer answer: check your LDAP and Samba log files, and see what's going on; you're not getting the shared resource
 
Old 07-09-2014, 05:43 AM   #7
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi,
I have configured ldapserver and created user rahulbgn and group idc. This rahulbgn user is under idc group. When I log in from client system, it enters into shell as sh-4.1$. But I want the rahulbgn user's login shell to appear as [rahulbgn@ldapclient ~]$ How can i do this??? And also the owner-name and group-name is showing nfsnobody nfsnobody. The /users directory is mounted on ldapclient side through nfs from nfs server. I have set up the nfs server on ldap server. I made a directory /users on nfs server and exported it. Also I cannot make any files or directory under /users/rahulbgn folder on ldapclient side as it is showing error that I don't have permission. I want the ownername and groupname to be appeared as rahulbgn idc Please advice how I can solve it....

[root@ldapclient ~]# cd /users/
[root@ldapclient users]# ll
total 8
drwxr-xr-x. 2 nfsnobody nfsnobody 4096 Jul 9 13:47 rahulbgn
[root@ldapclient users]# su rahulbgn
sh-4.1$ pwd
/users
sh-4.1$



Regards,
Rahul

Last edited by rahul.buragohain; 07-09-2014 at 06:03 AM.
 
  


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
Ubuntu/AD/KRB5/LDAP/NIS able to use domain user login with putty, unable in gui login Nitroglycerine Linux - Server 0 06-28-2012 04:17 AM
How to configure LDAP user with roaming profile jitenderana Linux - Server 0 05-17-2012 02:44 AM
one LDAP user can't login naerey Linux - Software 1 09-06-2011 06:14 AM
[SOLVED] LDAP user login, uidNumber restricting, how to luvshines Linux - Security 2 11-28-2010 02:05 AM
ldap user can't login with xsession pazzport Linux - Server 3 09-16-2008 04:33 AM


All times are GMT -5. The time now is 09:35 AM.

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