LinuxQuestions.org
Review your favorite Linux distribution.
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-25-2014, 02:51 PM   #1
jlacroix
Member
 
Registered: Nov 2003
Posts: 187

Rep: Reputation: 15
ldap and active directory implementation via proxy, unable to chase referrals


Hello,

I'm attempting to set up an openldap server to pass lookups to an active directory server if not found on the localhost. I've followed several tutorials online, and I can't seem to make this work. I feel like I am close, however.

Code:
# Import our schema
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/inetorgperson.schema
include         /etc/ldap/schema/nis.schema

moduleload      back_ldap
moduleload      back_bdb.la
moduleload      rwm 

# Support both LDAPv2 and LDAPv3
allow           bind_v2

pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args

loglevel        256 

# Our slapd-ldap back end to connect to AD

database        ldap
suffix          ou=Ad_users,dc=myaddomain,dc=com
subordinate
rebind-as-user  yes 
uri             ldap://myadserverip:389
chase-referrals yes 
readonly        yes 
protocol-version        3   
ioverlay               rwm 
rwm-map                attribute       uid     sAMAccountName
rwm-map                attribute       mail    proxyAddresses 
binddn cn=myaduseraccount 
bindpw myadpassword


# Everything above ^ seems to be working.

# Our primary back end 

database        bdb 
#uri            ldap://localhost
suffix          dc=mylocalsite,dc=com
rootdn          cn=admin,dc=mylocalsite,dc=com
rootpw          SuperSecretPW
directory       /var/lib/ldap

# Indexes for this back end 
index           objectClass                     eq,pres
index           ou,cn,mail,surname,givenname    eq,pres,sub
index           uid                             eq,pres,sub
What happens is that it will complain about the subordinate, with the following error:
Code:
Aug 25 15:48:55 nslogin slapd[13242]: glue: no superior found for sub ou=Ad-Users,dc=myaddomain,dc=com!
Aug 25 15:48:55 myserver slapd[13242]: subordinate config error
Aug 25 15:48:55 myserver slapd[13242]: slapd stopped.
Aug 25 15:48:55 myserver slapd[13242]: connections_destroy: nothing to destroy.
It looks to me like the subordinate clause must be wrong, preventing it from chasing referrals to the AD server. But I can't seem to find any other method to use subordinate other than how I've done it.

If anything stands out as wrong, please advise.

Thanks!

Last edited by jlacroix; 08-25-2014 at 02:57 PM.
 
Old 08-27-2014, 05:54 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
suffix ou=Ad_users,dc=myaddomain,dc=com
Quote:
Aug 25 15:48:55 nslogin slapd[13242]: glue: no superior found for sub ou=Ad-Users,dc=myaddomain,dc=com!
A good place to start might be to remove the unit "Ad_users" and replace it with something like "adusers" since the underscore turns into a hyphen between examples.
 
Old 08-27-2014, 07:36 AM   #3
jlacroix
Member
 
Registered: Nov 2003
Posts: 187

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dijetlo View Post
A good place to start might be to remove the unit "Ad_users" and replace it with something like "adusers" since the underscore turns into a hyphen between examples.
I'm sorry, that was a typo. It was ad-users in both places.
 
Old 09-16-2014, 08:31 PM   #4
JoeJamoche
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
One more thing to research - my experience a couple of years ago with the LDAP-like interface of ActiveDirectory is that it is Microsoft specific and not completely compatible to the open LDAP standard. Good luck.
 
Old 09-16-2014, 08:47 PM   #5
jlacroix
Member
 
Registered: Nov 2003
Posts: 187

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JoeJamoche View Post
One more thing to research - my experience a couple of years ago with the LDAP-like interface of ActiveDirectory is that it is Microsoft specific and not completely compatible to the open LDAP standard. Good luck.
Thanks. I tend to agree, these technologies don't seem to want to work together and anything beyond that would be forcing them to work when they would rather not. I did get it going, though I am not sure what exactly made it start working.
 
Old 10-14-2014, 04:05 PM   #6
jeflebo
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Will your setup query your backend AD if the account is not in the local OpenLDAP database? I am trying to configure this solution, but having issues myself.
 
Old 10-15-2014, 09:13 AM   #7
jlacroix
Member
 
Registered: Nov 2003
Posts: 187

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jeflebo View Post
Will your setup query your backend AD if the account is not in the local OpenLDAP database? I am trying to configure this solution, but having issues myself.
Yes, it does do that. I started with the following as a guide:

http://windowsitpro.com/networking/i...y-and-openldap

But I still had to fiddle with it a bit beyond that to get it to work. It was frustrating but I kept tweaking and hacking until I got it to work. But that article I posted above was the most helpful of all that I've been able to find.

I hope that helps you.
 
  


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
unable to get ldap to bind to Active Directory server, but am able to ldapsearch kcorupe Linux - Server 2 08-03-2012 02:57 AM
Unable to connect to proxy server though wi fi connection active proxy settings ok ncpanicker Linux - Wireless Networking 3 04-11-2011 03:27 AM
Active Directory vs LDAP alex r Linux - Software 26 04-07-2010 04:47 AM
LDAP Vs. Active Directory. ghaleb.aoude@yahoo.com LinuxQuestions.org Member Intro 2 08-19-2009 07:15 AM
active directory: seeing/changing proxy configuration by ldap eantoranz Linux - Software 1 10-30-2006 02:55 AM

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

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