🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.net.ldap
Article #102

cannot connect X server or ldap_bind: cannot contact ldap server (81)

#102
From: sanjeev
Date: Fri, 14 Mar 2003 12:23
144 lines
4634 bytes
Hi all!

Greetings to you!

While trying to configure OpenLdap in Redhat Linux 8.0 with postgresql
i am getting the following error

[root@san]# /usr/bin/odbctest
odbctest: cannot connect to X server

/usr/lib/libpsqlodbc.so

if i am running ldapsearch i am getting the following error

ldap_bing:  Can't contact LDAP server (81)

My configuration is as follows

openldap 2.1.15
Postgresql 7.2.2-1 with Postgresql-odbc 7.2.2-1
unixODBC-2.2.2-3

/usr/local/etc/openldap/slapd.conf

#######################################################################
include         /usr/local/etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

database        sql
suffix          "dc=unisoft,dc=net"
rootdn          "cn=Manager,dc=unisoft,dc=net"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          test
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-data
# Indices to maintain
index   objectClass     eq

my /usr/local/etc/openldap/ldap.conf

BASE    dc=unisoft, dc=net
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666
HOST ldap://10.0.3.8

/etc/odbc.ini

;
;odbc.ini
;
[ODBC Data Sources]
PgSQL=PostgreSQL

[PgSQL]
Driver=/usr/lib/libodbcpsql.so
;Driver=/usr/local/lib/psqlodbc.so
Description=Connection to LDAP/POSTGRESQL
Servername=localhost
Port=5432
Protocol=6.4
FetchBufferSize=99
Username=test
Password=test
Database=pg_ldap
ReadOnly=no
Debug=1
CommLog=1

[ODBC]
InstallDir=/usr/local/lib


/etc/odbcinst.ini

# Example driver definitinions
#
#

# Included in the unixODBC package
[PostgreSQL]
Description     = ODBC for PostgreSQL
Driver          = /usr/lib/libodbcpsql.so
Setup           = /usr/lib/libodbcpsqlS.so
FileUsage       = 1


# From the MyODBC package
#[MySQL]
#Description    = ODBC for MySQL
#Driver         = /usr/lib/libmyodbc.so
#FileUsage      = 1

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               san localhost.localdomain localhost
10.0.3.8                san unisoft.net

/etc/pam.d/login

#%PAM-1.0
auth       required     /lib/security/pam_securetty.so
auth       required     /lib/security/pam_stack.so service=system-auth
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
session    optional     /lib/security/pam_console.so

/etc/pam.d/sshd

#%PAM-1.0
auth       required     /lib/security/pam_stack.so service=system-auth
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_limits.so
session    optional     /lib/security/pam_console.so

postgresql server is running 

and i have created few user names in that

with separate tables as instructed in 

http://www.samse.fr/GPL/ldap_pg/HOWTO/x37.html


Can any one help me in this issue!

Regds
san
Technical Details
Message-ID: <e1249127.0303140423.1fc775d9@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103627,8e8b6cf216fbc097,start
X-Google-Attributes: gid103627,public
X-Google-ArrivalTime: 2003-03-14 04:23:24 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: sanw2k@hotmail.com (sanjeev)
Newsgroups: fj.net.ldap
Subject: cannot connect  X server or ldap_bind: cannot contact ldap server (81)
Date: 14 Mar 2003 04:23:22 -0800
Organization: http://groups.google.com/
Lines: 144
Message-ID: <e1249127.0303140423.1fc775d9@posting.google.com>
NNTP-Posting-Host: 202.142.80.32
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1047644603 27879 127.0.0.1 (14 Mar 2003 12:23:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 14 Mar 2003 12:23:23 GMT