LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-13-2010, 05:36 AM   #1
shellarchive
Member
 
Registered: Jan 2007
Posts: 50

Rep: Reputation: 15
configuring ldap client.


i have configured ldapserver on rhel4 for creating address book

following are configuration files on ldap server
/etc/openldap/slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema

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

database bdb
directory /var/lib/ldap/example

suffix "dc=example, dc=com"
rootdn "cn=manager, dc=example, dc=com"
rootpw {MD5}kzbr8lCH2RyBjubp7Cn4wQ==

loglevel 4096

/etc/openldap/example.ldif

dn: dc=example, dc=com
objectclass: dcobject
objectclass: organization
dc: example
o: example

dn: cn=Manager, dc=example, dc=com
objectclass: organizationalRole
cn: Manager

dn: ou=sales, dc=example, dc=com
objectclass: organizationalunit
ou: sales

dn: cn=sandy, ou=sales, dc=example, dc=com
objectclass: organizationalPerson
objectclass: inetorgperson
displayname: sandy ronald
cn: sandy
sn: ronald
title: mailadmin
employeeNumber: 1113
mail: sandy.ronald@example.com
telephoneNumber: 411234636
mobile: 91223238
street: lakevilla, west hill road, Princeton town
postalcode: 400787
ou: sales
o: example.com

i am able to import this ldif file into database.
also when i perform the ldapsearch on this server with command
"ldapsearch –x –W –D “cn=manager, dc=example, dc =com” –b “dc=example, dc=com”"
i get correct output.

but when i am trying to search from another client machine, i am getting "error ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)"

my ldap client configuration file /etc/openldap/ldap.conf is
HOST 10.48.13.141
BASE dc=example,dc=com
port 389
.

also when i configured address book on mozilla on server., it is working fine.

but not working on another machine.

is any configuration is missing on client machine.

please help.

both ldap server and client are configured on rhel4es without any firewall or selinux.
 
Old 03-13-2010, 06:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
!Can't contact" suggests a network / irewall issue, or the server is not listening on that ip. does netstat -plnt on the server show it is listening?
 
Old 03-13-2010, 06:23 AM   #3
shellarchive
Member
 
Registered: Jan 2007
Posts: 50

Original Poster
Rep: Reputation: 15
yes, please find the output of netstat.

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program na me
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 20199/slapd
tcp 0 0 :::389 :::* LISTEN 20199/slapd
tcp 0 0 :::22 :::* LISTEN 6107/sshd
 
Old 03-13-2010, 06:29 AM   #4
shellarchive
Member
 
Registered: Jan 2007
Posts: 50

Original Poster
Rep: Reputation: 15
output of ldapsearch -x -D "cn=manager, dc=example, dc=com" -W -b "dc=example, dc=com" -d 4095
ldap_create
Enter LDAP Password:
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_close_socket: 3
ldap_err2string
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
 
  


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
Configuring Ubuntu 9.10 as client to use Samba/LDAP server for user authentication Xyan Ubuntu 1 01-24-2010 01:22 AM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 12:55 AM
Installing/configuring LDAP on RHEL 4 deepclutch Linux - Networking 6 03-29-2009 07:51 AM
problem configuring LDAP server rajeev1982 Linux - Server 1 11-04-2007 03:59 PM
Need Help Configuring LDAP bondoq Linux - General 1 10-01-2006 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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