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

Re: manage DSA IT control and C API



At 02:39 PM 7/2/2001, Mark Whitehouse wrote:
>Hi,
>
>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 control):
>
>  ldap_modify_ext_s(ld, dn, attrs, 0, ctrl);

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

Kurt