[horde] RE: RE: LDAP question

Michael J. Pelletier mjpelletier at mjpelletier.com
Tue Jan 6 20:29:05 PST 2004


I tried adding the configurations however I get the same message.
slapd[86320]: conn=484 op=0 RESULT tag=97 err=2 text=historical protocol version
requested, use LDAPv3 instead

Here is a snippet of my horde/conf/conf.php file:
$conf['auth']['driver'] = 'ldap';

$conf['auth']['params']['basedn'] = 'dc=mjpelletier,dc=com';
$conf['auth']['params']['hostspec'] = 'localhost';
$conf['auth']['params']['uid'] = 'uid';
$conf['auth']['params']['objectclass'] = 'objectClass=*';
$conf['auth']['params']['binddn'] = 'cn=Manager,dc=mjpelletier,dc=com';
$conf['auth']['params']['password'] = '****';

$conf['prefs']['driver'] = 'ldap';

$conf['prefs']['params']['basedn'] = 'dc=mjpelletier,dc=org';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['port'] = '389';
$conf['prefs']['params']['version'] = '3';
$conf['prefs']['params']['rootdn'] = 'cn=Manager,dc=mjpelletier,dc=com';
$conf['prefs']['params']['password'] = '*****';
$conf['prefs']['params']['uid'] = 'uid';


What am I doing wrong?

The PHP command you use to do this is ldap_set_option:

    http://www.php.net/manual/en/function.ldap-set-option.php

Grepping for the in the source code shows mention of it in
horde/lib/Driver/ldap.php.. if you look at that file, it looks like you
should be able to set the ldap version by doing something like..

   $con['prefs']['params']['version'] = 3;

If you're doing this w/ Turba, config/sources.php.dist (in turba 1.2.1x,
and probably earlier) has a sample entry that does this too (the LDAP
based personal address book).

Liam

On Mon, 5 Jan 2004, Michael J. Pelletier wrote:

> When I configure Horde to use LDAP (I am using OpenLDAP) I cannot login and in
> the ldap logs I get:
>  slapd[86320]: conn=240 op=0 RESULT tag=97 err=2 text=historical protocol
> version requested, use LDAPv3 instead
>
> What am I doing wrong?
>
> -- Michael
>
> >> Does Horde support version 3 of LDAP?
>
> >Yes.
>
> >-chuck





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the horde mailing list