LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-18-2012, 10:55 AM   #1
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Rep: Reputation: Disabled
LDAP Query (ssl)


Hi all!
I have a TDS (Tivoli Directory Server) in one of my servers, every time i need to query it i need to go to another server and do it, i'd like to be able to query from my machine, but i can't using openldap, do you guys have a hint/idea/clue??

i use this from another server

idsldapsearch -h ldapserver.homeluna.org -Z -K /opt/PolicyDirector/ssl/homeluna.kdb -P passw0rd -b "" -s base objectclass=*

btw, My servers only accepts SSL conections.
 
Old 10-18-2012, 11:51 AM   #2
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
btw, i put the following values inside /etc/openldap/ldap.conf without succeed.

#
# LDAP Defaults
#
BASE l=world
URI ldap://ldapserver.homeluna.org ldap://ldapserver.homeluna.org:636
PORT 636

TLS_CACERT /home/alexrl/Desktop/ldapserver.homeluna.org.cer
TLS_REQCERT demand

alexrl@localhost ~ $ ldapsearch -v -H ldaps://ldapserver.homeluna.org -Dcn=root -w passw0rd -bl=world uid=alex*
ldap_initialize( ldaps://ldapserver.homeluna.org:636/??base )
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
 
Old 10-20-2012, 07:37 PM   #3
herkalurk
Member
 
Registered: Oct 2012
Location: Portland
Distribution: CentOS 6/7 at home, RHEL5/6/7 at work
Posts: 34

Rep: Reputation: 2
Are you using a self signed cert? If not you may need to make sure the client trusts the cert, or at least doesn't care.

Side note, is the computer you're using a full desktop? If you have a GUI, download and install Apache Directory Studio. I use it at work to manage our linux LDAP environment. Not that you shouldn't learn the CLI

Last edited by herkalurk; 10-20-2012 at 07:38 PM.
 
Old 10-22-2012, 11:46 AM   #4
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
It's working now, i did a change in ldap.conf and now i'm able to query my LDAP server using ssl.

cat /etc/openldap/ldap.conf

BASE l=world
URI ldap://ldapserver.homeluna.org ldap://ldapserver.homeluna.org:636
#HOST ldapserver.homeluna.org
PORT 636
#
TLS_CACERT /home/alexrl/Desktop/www-wi-ait-ldr.cer
TLS_REQCERT allow
#TLS_REQCERT demand
#Setting TLS_REQCERT to allow does the following: If no certificate is provided, the session proceeds normally. If a bad certificate is provided, it will be ignored and the session proceeds normally.

alexrl@localhost $ ~/Desktop $ ldapsearch -v -H ldaps://ldapserver.homeluna.org -Dcn=root -wpassw0rd -bl=world uid=alex* | more
ldap_initialize( ldaps://ldapserver.homeluna.org:636/??base )
filter: uid=alex*
 
  


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
PAM LDAP: Kerberos vs SSL (LDAP SSL) wilslm Red Hat 3 04-22-2011 08:50 AM
query on ldap server imhere Linux - Newbie 8 08-13-2010 03:25 PM
LDAP SSL and Non-SSL port open? your_shadow03 Linux - Newbie 3 01-14-2010 05:57 PM
LDAP Query cjagdish69 Linux - Server 0 11-18-2006 01:16 AM
SSL : Basic Query vikasumit Linux - General 1 05-08-2006 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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