[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: manage DSA IT control and C API

Thanks, passing the control via the client control parameter worked.

Is this how it is supposed to work?  It seems inconsistent when compared to
the behavior of the ldap_set_option call...


-----Original Message-----
From: Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org]
Sent: Tuesday, July 03, 2001 8:10 PM
To: markwhitehouse@home.com
Cc: openldap-software@OpenLDAP.org
Subject: Re: manage DSA IT control and C API

At 02:39 PM 7/2/2001, Mark Whitehouse wrote:
>I'm trying to modify a referral programmatically using the manage DSA IT
>control and have run into a few problems.
>First I tried to set the manage DSA IT control globally using:
>  ldap_set_option(ld, LDAP_OPT_SERVER_CONTROLS, ctrl);
>  ldap_modify_ext_s(ld, dn, attrs, 0, 0);
>In this case everything worked fine and I was able to successfully modify
>the referral.
>However, when I tried to modify the referral by passing in the control
>directly to ldap_modify_ext_s it did not work (i.e. it ignored the
>  ldap_modify_ext_s(ld, dn, attrs, 0, ctrl);

   ldap_modify_ext_s(ld, dn, attrs, ctrl, 0);