LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-13-2011, 10:59 AM   #1
Mustafa^Qasim
Member
 
Registered: Dec 2005
Location: Lahore, PK
Distribution: Fedora 14
Posts: 105

Rep: Reputation: 16
Access LDAP via SRV DNS Record


Hi,

I am trying to configure a Linux client with LDAP server but I want to configure the SRV record of LDAP server instead of generic host IP or A Record.

I'm trying to verify access to LDAP server via SRV record using this but encountering error

ldapsearch -v -H "dc=sahill,dc=com"
ldap_initialize( dc=sahill,dc=com )
Could not create LDAP session handle for URI=dc=sahill,dc=com (-9): Bad parameter to an ldap routine

any clue?
 
Old 10-13-2011, 04:17 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You'll need a search base and to define the ldap URI in ldapsearch, like this:
Code:
ldapsearch -v -H ldap:///dc%3Dsahill%2Cdc%3Dcom -b "dc=sahill,dc=com"
where the equal and comma signs are escaped according to RFC-2396

Regards
 
  


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
Ubuntu dns server SRV records Amerika Ubuntu 8 04-16-2011 04:07 PM
[SOLVED] DNS: A Record and PTR Record hydraMax Linux - Server 4 12-21-2010 10:28 PM
internal DNS + SRV entries Taleya Linux - Server 1 10-01-2009 08:55 PM
How to validate SRV record: haariseshu Linux - Server 1 10-01-2008 12:33 AM
sample SRV configuration in DNS Server jheng_dleon Linux - Software 1 07-14-2007 05:09 AM

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

All times are GMT -5. The time now is 02:53 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