LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-17-2005, 07:29 AM   #1
jcarton
LQ Newbie
 
Registered: Mar 2005
Distribution: SUSE, RedHat, Xandros
Posts: 3

Rep: Reputation: 0
LDAP SERVER Client Connection on SUSE 9.2 - connection error


I have been having the same problem as thread linuxquestions.org/questions/showthread.php?s=&threadid=296210
but, I do not have tls running and I still have the same problem.,

I have been trying to get LDAP to work on SUSE 9.2 Pro for 2 weeks. I installed it using the rpm from the install CD and did the current updates for SUSE bringing the OpenLDAP2 version up to 2.2.15-5.2. I have followed all the LDAP setup papers from several sites on the internet, but I still can not get SUSE 9.2 to see the LDAP server it is running. When I try to connect with the LDAP client or through user setup, I get the message "Connection to LDAP server can not be extablished. The LDAP server is running with no errors in the message log. I know I have to be missing something, but I do not know where. I have LDAP running on a SUSE 9 Enterprise Server with no problem. The Yast2 setup for the LDAP enterprise server did most of the work, but SUSE 9.2 does not have a LDAP server setup in it's Yast2.

Steps I followed to setup LDAP on SUSE 9.2 PRO.
Installed from RPM on CD, did updates from SUSE website for LDAP.

Edit the ldap.conf file with follows:

# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example, dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
base dc=asi-web,dc=com
host 127.0.0.1

Edit slapd.conf with the following:

# See slapd.conf(5) for details on configuration options.

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast.schema

# Define global ACLs to disable default read access.

#referral ldap://root.openldap.org
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args

# Load dynamic backend modules:
modulepath /usr/lib/openldap/modules
# moduleload back_ldap.la
# moduleload back_meta.la
# moduleload back_monitor.la
# moduleload back_perl.la


access to dn.base=""
by * read
access to dn.base="cn=Subschema"
by * read
access to attr=userPassword,userPKCS12
by self write
by * auth
access to attr=shadowLastChange
by self write
by * read
access to *
by * read


#######################################################################
# BDB database definitions
#######################################################################

database bdb
checkpoint 1024 5
cachesize 10000
suffix "dc=asi-web,dc=com"
rootdn "cn=Manager,dc=asi-web,dc=com"

rootpw secret
rootpw "{SSHA}"

directory /var/lib/ldap
# Indices to maintain
index objectClass eq

Added ldif file with following:

dn: dc=asi-web,dc=com
object class: dcObject
objectclass: organization
o: ASI
dc: asi-web

dn: cn=Manager,dc=asi-web,dc=com
objectclass: organizationalRole
cn: Manager

using command: ldapadd -x -D "cn=Manager,dc=asi-web,dc=com" -W -f setup.ldif.
Did not get any errors from this.
Started slapd.
The message log shows no errors when starting slapd.

ldapsearch -x gives me:
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

What am I missing?
Thanks,
 
Old 03-18-2005, 03:25 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
On the client - what happens when you "telnet yourldapserverhost 389"?

Also post the entry from /etc/openldap/ldap.conf. This file is used when you run commandline like ldapsearch, ldapadd etc.
 
Old 03-18-2005, 07:05 AM   #3
jcarton
LQ Newbie
 
Registered: Mar 2005
Distribution: SUSE, RedHat, Xandros
Posts: 3

Original Poster
Rep: Reputation: 0
This is what I get when I telnet to 389

telnet 10.10.10.10.175 389
Trying 10.10.10.175
Connected to 10.10.10.175
Escape character is '^1'.
Connection closed by foreign host

****************
Ldap.conf
****************
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example, dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
base dc=asi-web,dc=com
host 127.0.0.1

Thanks,
 
Old 03-19-2005, 12:40 PM   #4
jcarton
LQ Newbie
 
Registered: Mar 2005
Distribution: SUSE, RedHat, Xandros
Posts: 3

Original Poster
Rep: Reputation: 0
I backup to SUSE version 9.1 and it cleared this problem for me.

Thanks,
 
  


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
Client/Server connection problem James_dean Programming 7 09-28-2005 08:31 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Linux - Networking 4 03-01-2005 01:43 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo SUSE / openSUSE 0 03-01-2005 05:43 AM
DHCP Server Client no connection to Internet westverg Linux - Networking 3 02-28-2005 07:08 AM
Showing CLIENT<-server->INTERNET connection from server. druuna Linux - Networking 2 05-03-2004 01:33 PM

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

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