[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
error: requested protocol version not allowed
Hi,
I am running openldap 2.1.8 with BerkeleyDB 4.1.24 on Linux. My intention is
to setup the company address book to be used with Netscape, Outlook and
Squirrelmail. I can query the directory with ldapsearch. But when I try to
query the address book using Netscape 7 mail client, I don't get any results
and ldap logs show the following.
Dec 9 16:15:34 kabani slapd[9820]: daemon: conn=46 fd=12 connection from IP=192.168.2.37:2609 (IP=0.0.0.0:389) accepted.
Dec 9 16:15:34 kabani slapd[9843]: conn=46 op=0 BIND dn="" method=128
Dec 9 16:15:34 kabani slapd[9843]: conn=46 op=0 RESULT tag=97 err=2 text=requested protocol version not allowed
Dec 9 16:15:42 kabani slapd[9914]: conn=46 op=1 UNBIND
Dec 9 16:15:42 kabani slapd[9914]: conn=46 fd=12 closed
But using ldapsearch I can get the results. I am pasting the logs below
# ldapsearch -x -b 'o=vitalect-india' '(objectclass=*)'
logs
----
Dec 9 16:30:37 kabani slapd[9820]: daemon: conn=53 fd=12 connection from IP=127.0.0.1:1083 (IP=0.0.0.0:389) accepted.
Dec 9 16:30:37 kabani slapd[9914]: conn=53 op=0 BIND dn="" method=128
Dec 9 16:30:37 kabani slapd[9914]: conn=53 op=0 RESULT tag=97 err=0 text=
Dec 9 16:30:37 kabani slapd[9843]: conn=53 op=1 SRCH base="o=vitalect-india" scope=2 filter="(objectClass=*)"
Dec 9 16:30:38 kabani slapd[9914]: conn=53 op=2 UNBIND
Dec 9 16:30:38 kabani slapd[9843]: conn=53 op=1 SEARCH RESULT tag=101 err=0 nentries=7 text=
Dec 9 16:30:38 kabani slapd[9843]: conn=53 fd=12 closed
# ldapsearch -x -b 'o=vitalect-india' '(sn=Sandhya)'
logs
----
Dec 9 16:33:27 kabani slapd[9820]: daemon: conn=54 fd=12 connection from IP=127.0.0.1:1084 (IP=0.0.0.0:389) accepted.
Dec 9 16:33:27 kabani slapd[9914]: conn=54 op=0 BIND dn="" method=128
Dec 9 16:33:27 kabani slapd[9914]: conn=54 op=0 RESULT tag=97 err=0 text=
Dec 9 16:33:27 kabani slapd[9843]: conn=54 op=1 SRCH base="o=vitalect-india" scope=2 filter="(sn=Sandhya)"
Dec 9 16:33:27 kabani slapd[9843]: <= bdb_equality_candidates: index_param failed (18)
Dec 9 16:33:27 kabani slapd[9843]: conn=54 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Dec 9 16:33:27 kabani slapd[9914]: conn=54 op=2 UNBIND
Dec 9 16:33:27 kabani slapd[9914]: conn=54 fd=12 closed
My slapd.conf is pasted below.
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.4 2002/10/17 15:06:27 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /opt/openldap-2.1.8/etc/openldap/schema/core.schema
include /opt/openldap-2.1.8/etc/openldap/schema/cosine.schema
include /opt/openldap-2.1.8/etc/openldap/schema/inetorgperson.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 /opt/openldap-2.1.8/var/slapd.pid
argsfile /opt/openldap-2.1.8/var/slapd.args
# Load dynamic backend modules:
# modulepath /opt/openldap-2.1.8/libexec/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
# Sample security restrictions
#
# Disallow clear text exchange of passwords
# disallow bind_simple_unprotected
#
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64
# Sample access control policy:
# Allow read access of root DSE
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
# Directives needed to implement policy:
#access to dn.base="" by * read
#access to *
# by self write
# by users read
# by anonymous auth
#
# if no access controls are present, the default policy is:
# Allow read by all
#
# rootdn can always write!
access to * by * read
#######################################################################
# ldbm database definitions
#######################################################################
database bdb
suffix "o=vitalect-india"
suffix "dc=ldap,dc=vitalect-india,dc=com"
rootdn "cn=vitalectadmin,o=vitalect-india"
rootpw secret
directory /opt/openldap-2.1.8/var/openldap-data/vitalect-india
schemacheck on
lastmod on
index cn,sn pres,eq,sub
Please help me. Where have I gone wrong.
Thanks,
Regards,
S. Subin