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

Re: Problems when using ldap_add_s() API call



Hi!

  attrs[0]->mod_op = 0;
  attrs[0]->mod_type = "objectClass";
  attrs[0]->mod_values = (char **)malloc (3 * sizeof (char **));
  *attrs[0]->mod_values = strdup("top");
  attrs[0]->mod_values++;


Don't do that ^^^^^^^^^^^^^


Thanks a lot, it worked... and makes sense :)


--

[]'s
Lucas Brasilino
brasilino@recife.pe.gov.br
http://www.recife.pe.gov.br
Emprel -	Empresa Municipal de Informatica (pt_BR)
		Municipal Computing Enterprise (en_US)
Recife - Pernambuco - Brasil
Fone: +55-81-34167078