LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2003, 07:32 AM   #1
sanw2k
Member
 
Registered: Apr 2002
Location: bangy
Distribution: rh 9,,Mandy 9.1, Lycoris
Posts: 42

Rep: Reputation: 15
OpenLdap+postgres


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postgres Hiper1 Linux - Newbie 8 04-10-2005 06:43 PM
Postgres setup rickh Linux - Software 4 02-27-2005 04:44 PM
Uninstalling Postgres alejandroye Mandriva 3 01-17-2005 02:42 PM
Installing Postgres 7.3 Hiper1 Linux - Software 0 12-01-2004 02:38 AM
MySQL or PostGres ?? Peds Linux - Software 5 02-18-2004 12:43 AM


All times are GMT -5. The time now is 02:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration