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

Active directory change notification using open ldap library: errorMessage: 00000057: LdapErr: DSID-0C09068F, comment: Error processing control, data 0, vece



Hi ,
I am trying to syncing up with Active directory. When ever there is a change in active directory it should send the information.
But It's keep on sending me this error message .



errorMessage: 00000057: LdapErr: DSID-0C09068F, comment: Error processing control, data 0, vece



LDAP_SERVER_NOTIFICATION_OID_W "1.2.840.113556.1.4.528"

char* base="dc=ad,dc=hello123,dc=com";
char* filter="(objectClass=*)";


controls[0] = create_psearch_control (LDAP_SERVER_NOTIFICATION_OID_W, 1, 1);
controls[1] = 0;



ret = ldap_search_ext (ld, base, LDAP_SCOPE_SUBTREE, filter, 0, /* attrs */ 0, /* attrsonly */ controls, 0, /* clientctrls */ 0, /* timeout */ LDAP_NO_LIMIT, &msgid);



while ((ret = ldap_result (ld, msgid, LDAP_MSG_RECEIVED, &timeout, &entries)) >= 0) {
LDAPMessage *entry;
LDAPControl **ec_controls;


        if (!ret) {
            printf ("Timed out\n");
            continue;
        }

}

Please let me know what I am doing wrong.


--

Thanks,
Susant