Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NIS, LDAP Which one is best?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Mon Dec 27, 2004 11:49 pm    Post subject: NIS, LDAP Which one is best? Reply with quote

note** It has come to my attention that NIS+ is a pipedream and should be ignored, however now the concept of using LDAP has arisen. See the bottom of the forum to see the current status.

I have a small home network (8 boxes) and currently, I have to create separate users on each machine, now I would like to have something similar to the Windows Domain Controller where users are managed centrally on the server, and those changes carry through across the network intantly. Now from what I can tell, the proper tool for such a task is either NIS, or NIS+... now the thing is that I know absolutely nothing regarding this in the world of linux... I do however have a great deal of experience working with Windows NT domains via Samba as well as using a Naitive Domain Controller. I have taken a look at the howto regarding this, but for some reason I havent been able to make things work, and honestly, the howto really made the differences between the two fuzzier... Now i'm all confused as to which would suit me best so I'm looking for some experienced opinions. All of these machines are running gentoo so that should make the setup slightly easier. If there is a better way to achieve this, please let me know!

In the end, I would like to be able to share out the /home dir on the server and thus create the linux equivalent to roaming profiles. What would be the best settings for this in the /etc/exports file?

Thanks for your help!


Last edited by bravo911 on Fri Dec 31, 2004 10:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Tazok
Guru
Guru


Joined: 25 Oct 2003
Posts: 310

PostPosted: Tue Dec 28, 2004 12:32 am    Post subject: Re: NIS, NIS+ Which one is best? Reply with quote

bravo911 wrote:
I have a small home network (8 boxes) and currently, I have to create separate users on each machine, now I would like to have something similar to the Windows Domain Controller where users are managed centrally on the server, and those changes carry through across the network intantly. Now from what I can tell, the proper tool for such a task is either NIS, or NIS+


AFAIK NIS+ does not even work on Linux. There are other alternatives, however, like LDAP. As I don't have enough experience with this topic, I can only point you to the Gentoo-Guide for LDAP. I also suggest searching the forums for HOWTOs.

bravo911 wrote:
In the end, I would like to be able to share out the /home dir on the server and thus create the linux equivalent to roaming profiles. What would be the best settings for this in the /etc/exports file?


This would be done with NFS, not with NIS.
Here is a HOWTO for that.
Mine exports-file looks like this:
Code:

/home 192.168.6.3(rw,sync,no_subtree_check)
/usr/portage 192.168.6.3(rw,sync,no_root_squash,no_subtree_check)
Back to top
View user's profile Send private message
tuxmin
l33t
l33t


Joined: 24 Apr 2004
Posts: 838
Location: Heidelberg

PostPosted: Tue Dec 28, 2004 12:02 pm    Post subject: Reply with quote

Hi,

the main difference between NIS and NIS+ is security related. NIS is totally unencrypted i.e. passwords travel in plain text through your network. This might not be a problem for you if your net is used by trusted users.
However, there is no NIS+ server available for Linux. You definitely need Solaris to run the server, although the Linux client is fully implemented (see http://www.linux-nis.org/ for details)
I used NIS+/NIS for many years and both work quiet well. Especially NIS is easy to set up (in crontrast to NIS+ which can be a nightmare to administrate on the server side).
As NIS supports automount maps you can easily distribute your /home dirs via NFS.
I suggest you start setting up the server according to the link I gave you above. I never did on a Gentoo system, but
the ebuilds ypserv, ypbind and yp-tools should provide you with all you need.
After configuring your your /etc/passwd, /etc/group etc. make sure to call "make" in /var/yp/. That's the point where you NIS maps actually get built!

Hth, Alex!!!
_________________
ALT-F4
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Fri Dec 31, 2004 10:12 am    Post subject: I guess I should look in a new direction. Reply with quote

Thanks for clearing this up... now it looks like the more appropriate decision is 'do I use nis or LDAP?'. I see there is a howto on the gentoo docs page regarding the use of LDAP... Which would be best suited to my needs?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum