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

ldap modify



I am trying this code to modify an existing CN named MISA but rtvalue returns code 35(which means the server is not willing to

Handle directory requests)….but I am able to make the change using LDAPAdministrator software……what can be the problem???

Help->Anyone??

 

mod_struct.mod_op=LDAP_MOD_ADD;

            mod_struct.mod_type="CN";

            mod_struct.mod_values=(char **)("MISA1");

                        rtvalue=ldap_modify_s(pld,"CN=MISA,CN=Computers,DC=software,DC=worldcall,DC=net,DC=pk",

                        (struct ldapmod **)(&mod_struct));

            if(rtvalue!=LDAP_SUCCESS)

            {

                        MessageBox(NULL,"ldap_modify_s failed","fail",MB_OK);

            }