$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
// Referral can only be removed with Manage DSA IT Control
-ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => "2.16.840.1.113730.3.4.2")));
+ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => LDAP_CONTROL_MANAGEDSAIT)));
ldap_delete($link, "cn=userref,$base");
remove_dummy_data($link, $base);
?>
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
// Referral can only be removed with Manage DSA IT Control
-ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => "2.16.840.1.113730.3.4.2")));
+ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => LDAP_CONTROL_MANAGEDSAIT)));
ldap_delete($link, "cn=userref,$base");
ldap_delete($link, "cn=userref2,$base");
remove_dummy_data($link, $base);
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
// Referral can only be removed with Manage DSA IT Control
-ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => "2.16.840.1.113730.3.4.2")));
+ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => LDAP_CONTROL_MANAGEDSAIT)));
ldap_delete($link, "cn=userref,$base");
remove_dummy_data($link, $base);
?>