LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-11-2010, 06:17 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
LDAP pass through


I work at a uni. We have many workstations that need to authenticate using LDAP and I have set up an LDAP server which all works. My problem is that for users that are not found on this LDAP server I need our server to request from another server for which I have no admin privs and authentication is user only. That is if a user supplies their password they have access to their information. I wish server 1 to pass on the authentication uid and password to the second server (non admin privs on server 2) and authenticate there.

I've Google lots for this but no-one has made it very clear although it seems like it should be possible.

Does anyone have some straight forward instructions on how to do this. Can server1 be configured to do this using phpldapadmin? (I can live without that but it would be nice)
 
Old 08-12-2010, 08:09 PM   #2
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
ldap passthrough

The clue lay in the slapd.conf manual page requiring three config lines
in the database section. The manual pages and also a lot of ldap doco are terse and lacking in examples. Anyway if anyone wishes to do the same the trick is to add the following lines to /etc/openladp/slapd.conf


database ldap
uri ldap://remoteMachine.ladpserver.edu.au
suffix "dc=ldapserver,dc=edu,dc=au"
 
Old 08-12-2010, 09:19 PM   #3
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Quote:
My problem is that for users that are not found on this LDAP server I need our server to request from another server for which I have no admin privs and authentication is user only.
What are the differences between the users who authenticate against your server and those who authenticate against the other one?
 
Old 08-14-2010, 12:45 AM   #4
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
ldap pass through

Yes thats exactly what I wanted to do and the slapd config above provides for that.

At risk of being pedantic.........

There are two ldap servers X and Y
X is my ldap server and Y is another ldap server that has all the user information. Authentication on server B is user only, that is if a user correctly provides their password, the fields relevant to them are returned. Naturally A must be permitted by server B to make queries to B and the firewalls need to be appropriately configured.

If a client workstation that makes an ldap query to server A and A is unable to supply the answer it then relays the request to ldap server B which then kindly provides the authentication to A and A then authenticates the client workstation request.
 
  


Reply



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
how to pass MySQL user/pass securely in shell script? digity Linux - Newbie 5 01-07-2010 05:48 AM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM
LXer: LDAP Series Part IV - Installing OpenLDAP on Debian Plus Some LDAP Commentary LXer Syndicated Linux News 0 10-31-2006 06:54 PM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
Planning to change root pass and oracle system pass sathyguy Red Hat 1 12-20-2005 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:39 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
Open Source Consulting | Domain Registration