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

manage DSA IT control and C API


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);

Is anyone aware of this issue?

BTW, I am using RH Linux 6.2 and OpenLDAP 2.0.11.