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

Regarding using ldap_modif_ext_s for modifying all users globally in AD?

Hi Everyone,

Please help us to modify all users under "users" container.

could modify for individual user entry for attributes.

Is the the user_dn parameter specified correct?
Will the ldap_modify_ext_s supports the globally users entry modification?

1) Modify the user "tetsuser5"
char *user_dn = "cn=testuser5,cn=users,dc=kpvmpdc,dc=com"

if (ldap_modify_ext_s(ld, user_dn, mods,NULL,NULL) != LDAP_SUCCESS) {
ldap_perror( ld, "ldap_modify_s" );

2)To modify users globally,
used : char *user_dn = "cn=users,dc=kpvmpdc,dc=com"

that gives error
ldap_modify_s: Object class violation (65)
additional info: 0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0

Thanks in advance.