LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-05-2004, 05:59 AM   #1
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
LDAP and NIS


I'm looking for someone to confirm the difference between NIS and LDAP when it comes to user authentication.

I was under the impression that LDAP could be used for user authentication in the traditional sense (as in user/pw stored in a central location) similar to NIS; sort of a competing standard, if you will. After some research, I think I had the wrong impression. LDAP can be used for "user authentication" essentially by creating a list of users that are allowed to use a specific application. In other words, if a user requests to run an application, the application would query an LDAP server, and if the user ID is not in the list of approved users, then it simply refuses to run. That's not quite the user authentication I was hoping for.

So, is that an accurate picture? Or is it possible to use LDAP for login-based authentication? If so, any links to documentation?
 
Old 11-05-2004, 05:09 PM   #2
gabriele_101
Member
 
Registered: Oct 2001
Location: CAMBRIDGE, MA USA
Distribution: RH9 Kernel 2.4.20-18.9
Posts: 69

Rep: Reputation: 15
Interesting links (see "LDAP Naming Services Compared to Other Naming Services" section):

http://docsun.cites.uiuc.edu/sun_doc...SADV5/p50.html
 
Old 11-05-2004, 10:41 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Original Poster
Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Thanks for the link gabriele. I looked over it, but it didn't quite clear up everything. The chart they provide does a little compare-and-contrast between NIS and LDAP, but never explicitly mentions whether LDAP can be used for user authentication. The reason I was still hesitant is because they also included DNS in the chart, and I'm fairly positive (though not 100% positive) that DNS can't be used for authentication.

After some more poking and prodding on my own, I hit pay-dirt.
LDAP Authentication for Linux

That page gives instructions to set up an LDAP server to provide user authentication. Since it requires installing libnss-ldap and pam-ldap, I get the idea that user authentication was a concept LDAP wasn't necessarily created for, but sort of shoe-horned into it. Anybody stumbling onto this thread that wants to know where to get the stuff mentioned in the article linked:
Padl open source software - pam-ldap, nss-ldap, and other pieces of software

Here's another site that looks to explain how to configure a system for LDAP authentication.
Authenticating with LDAP

Note: I have not actually put either of these instructions into practice (yet). So I cannot vouch for them.
 
Old 11-29-2004, 03:46 PM   #4
scream__
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Posts: 1

Rep: Reputation: 0
I have been using LDAP for user authentication for approximately a year in a samba domain structure emulating a Windows domain
5 geographically distributed Samba file servers with a centralized LDAP structure.

Ldap then is also utilzed for email and potentially linux logins ( i don't have that functionality turned on in nss_switch ) to prevent users from sitting at the server consoles or attempting to connect to the server.

There is a good whitepaper on using it with Samba
http://www.idealx.org/prj/samba/smbldap-howto.en.html

This can be used to configure user authentication as well for logins
 
  


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
Samba, LDAP, NIS. Which one does the trick? GD_19 Linux - Networking 2 06-23-2005 02:56 AM
NIS, Samba or LDAP? mediocrity Linux - General 2 04-25-2005 08:42 PM
NIS or LDAP for a small school? yitzhakbg Mandriva 1 04-09-2005 07:30 PM
NIS versus LDAP/Kerberos elbe3321 Linux - Networking 2 08-27-2004 03:58 PM
LDAP server or NIS? beginner16 Linux - Newbie 0 11-27-2003 04:43 PM


All times are GMT -5. The time now is 01:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration