ldap configuration problem

Taking care of your Linux box.

ldap configuration problem

Postby linuxlabs » Wed Apr 14, 2004 12:10 pm

hi
i am using openldap 2.2.8
here is my slapd.conf file

-----------------------------------------------------
include /shared/openldap-/etc/openldap/schema/core.schema

pidfile /shared/openldap-/var/run/slapd.pid
argsfile /shared/openldap-/var/run/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################

database bdb
suffix "dc=linux,dc=lin"
rootdn "cn=Manager,dc=linux,dc=lin"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
#rootpw {CRYPT}ZPXImACgFFnW6
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /shared/openldap-/var/openldap-data
# Indices to maintain
index objectClass eq
-----------------------------------------

and here is my ldap.conf file
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE dc=linux dc=lin
URI ldap:// ldaps://

#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
---------------------------------------

i m staring ldap like this
.........................................
$libexec/slapd -d
entifierMatch' APPLIES ( supportedApplicationContext $ supportedFeatures $ supportedExtension $ supportedControl ) )
slapd startup: initiated.
bdb_db_open: dbenv_open(/shared/openldap-/var/openldap-data)
slapd starting
-----------------------------------------------

then when i add some user from a file
[root@linux openldap]# cat /tmp/test.txt
dn: cn=Manish,dc=linux,dc=lin
objectClass: person
cn: Manish
sn: Arya
title: danger ahead.....don't move
mail: mkarya@rainbow.com
uid: mkarya


like
$./ldapadd -f /tmp/test.txt -W

i get error
[root@linux bin]# ./ldapadd -f /tmp/test.txt -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

and on xterm running ldap i get


connection_read(10): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 18 contents:
ber_get_next
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 10
do_bind: v3 anonymous bind
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ber_get_next on fd 10 failed errno=0 (Success)
connection_read(10): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=10 for close
connection_close: conn=0 sd=10

Please help
Manish






.................................


--------------------------------------
linuxlabs
Cadet
 
Posts: 8
Joined: Thu Feb 05, 2004 10:11 am
Website: http://www.linuxindia.net
WLM: manish_k_arya@hotmail.com
Yahoo Messenger: manish_ipx@yahoo.com
Location: Kurukshetra,India

Re:

Postby LinuxFreaK » Wed Apr 14, 2004 2:25 pm

Dear linuxlabs,
Salam,

Please Read this Documentation it will help you configuring LDAP + Qmail.
http://www.lifewithqmail.org/lwq.html

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby zaeemarshad » Wed Apr 14, 2004 3:27 pm

r u using openldap on redhat...switch distros...i had no luck configuring ldap on redhat getting the same error message...some problem with redhat may be....i tried it on mandrake and ldap ran fine...

Regards
zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron