LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 25th, 2013, 04:29 PM
jpowers jpowers is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 jpowers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 25 sec
Reputation Power: 0
LDAP prefix authentication with postgresql

I am new to using LDAP and trying to do some exploratory testing with postgresql and LDAP. I am having a hard time understanding the ldapprefix and suffix part.

I have been authenticating using the following entry to pg_hba.conf

local test1 jpowers ldap ldapserver=machine_name ldapprefix= ldapsuffix=@company.com

This works fine. But I have not been able to completely understand or get a successful login with anything in the prefix line. I have been searching and all I was able to find out was below from documentation.

EXAMPLE FROM POSTGRES MANUAL
ldapserver=ldap.example.net ldapprefix="cn=" ldapsuffix=", dc=example, dc=net"

Based upon this I know from Active directory that my user listed the following.
CN=Jonathon Powers CN=users, DC=company, DC=com

with that information I have tried connecting with the following entries in pg_hba.conf with no luck.

local test1 jpowers ldap ldapserver=machine_name ldapprefix="cn=users" ldapsuffix=", dc=company, dc=com"

local test1 jpowers ldap ldapserver=machine_name ldapprefix="cn=Jonathon Powers" ldapsuffix=", dc=company, dc=com"

local test1 jpowers ldap ldapserver=machine_name ldapprefix="cn=" ldapsuffix=", dc=company, dc=com"

Does anyone know what I might be missing, or what I am doing wrong?

Reply With Quote
  #2  
Old February 25th, 2013, 05:29 PM
jpowers jpowers is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 jpowers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 25 sec
Reputation Power: 0
Figured it out. I can have user powers in psql, and user jpowers in LDAP. I can connect to psql with user powers but have prefix "j" in the pg_hba.conf entry, so that it authenticates against LDAP with jpowers instead of powers.

-Jpowers

Quote:
Originally Posted by jpowers
I am new to using LDAP and trying to do some exploratory testing with postgresql and LDAP. I am having a hard time understanding the ldapprefix and suffix part.

I have been authenticating using the following entry to pg_hba.conf

local test1 jpowers ldap ldapserver=machine_name ldapprefix= ldapsuffix=@company.com

This works fine. But I have not been able to completely understand or get a successful login with anything in the prefix line. I have been searching and all I was able to find out was below from documentation.

EXAMPLE FROM POSTGRES MANUAL
ldapserver=ldap.example.net ldapprefix="cn=" ldapsuffix=", dc=example, dc=net"

Based upon this I know from Active directory that my user listed the following.
CN=Jonathon Powers CN=users, DC=company, DC=com

with that information I have tried connecting with the following entries in pg_hba.conf with no luck.

local test1 jpowers ldap ldapserver=machine_name ldapprefix="cn=users" ldapsuffix=", dc=company, dc=com"

local test1 jpowers ldap ldapserver=machine_name ldapprefix="cn=Jonathon Powers" ldapsuffix=", dc=company, dc=com"

local test1 jpowers ldap ldapserver=machine_name ldapprefix="cn=" ldapsuffix=", dc=company, dc=com"

Does anyone know what I might be missing, or what I am doing wrong?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > LDAP prefix authentication with postgresql

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap