Re: new ldap-3.2 not working with IC-3.0v3.

Andy Coulbeck (A.Coulbeck@isode.com)
Mon, 08 Jan 1996 17:40:23 +0000

>
> Hi,
>
> I've just setup a new quipu DSA based on IC-3.0v3 on HPUX/10.01.
> I'm also trying to install the new ldap-3.2. After a few simple modifs
> to get it compiled, it doesn't work. ldapd successfully bind anonymous
> to the DSA but any search fails.
>
> Has anyone seen this problem, or simply sucessfully use ldap-3.2
> in conjunction with IC-3.0v3 quipu ?
>
> Thanks for any hints.
>
>

The dsap library provided by IC-3.0 uses structures containing
additional X.500(93) parameters which are not present in other ISODE
releases. These parameters are not initialised in the ldapd code and
are probably causing the searches to fail.

You could try the following patch in ldapd/search.c:

*** search.c~ Sat Dec 2 14:49:07 1995
--- search.c Fri Dec 8 10:44:00 1995
***************
*** 70,89 ****
--- 70,91 ----
* alwaysDerefAliases (3)
* },
* sizelimit INTEGER (0 .. 65535),
* timelimit INTEGER (0 .. 65535),
* attrsOnly BOOLEAN,
* filter Filter,
* attributes SEQUENCE OF AttributeType
* }
*/

+ DAS_SearchArgument_INIT ( &sa );
+
if ( ber_scanf( ber, "{aiiiib", &base, &sa.sra_subset, &deref,
&sizelimit, &timelimit, &attrsonly ) == LBER_ERROR ) {
send_ldap_msgresult( clientsb, SEARCHRESTAG, m,
LDAP_PROTOCOL_ERROR, NULL, "" );
return( 0 );
}

sa.sra_baseobject = ldap_str2dn( base );
if ( sa.sra_baseobject == NULLDN && *base != '\0' ) {
free( base );

regards,

Andy Coulbeck
ISODE Consortium