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

[Fwd: Re: ldap_add_s : Matched dn]



Hi All,
        I'm extremely sorry for writing ldap_ass_s instead of ldap_add_s
in the subject of my previous mail, I should have checked that before
sending.

Regards
Upma       


On April  6, 2001 09:01 am, you wrote:
> Hello All,
>                       My rootdn is like this-
>                               rootdn: dc="nett"
>
> I want my DIT like this
>
>     dc=nett
> \
>   labeledURL="www.hello.com",dc=nett
>
> I have a client written in C language-
>         where I'm calling - ldap_add_s(ld,dn,add)
>             where dn=labeledURL="www.hello.com",dc=nett
>   and
>
>          url[0]="www.hello.com"
>          url[1]=NULL;
>
>          urlvals.mod_op = LDAP_MOD_ADD;
>          urlvals.mod_type = "labeledURI";
>          urlvals.mod_values = url;
>
>          ocvals[0] = malloc(strlen("top")+1);
>          ocvals[0] = "top";
>          ocvals[1] = malloc(strlen("labeledURIObject")+1);
>          ocvals[1] = "labeledURIObject";
>          ocvals[2] = NULL;
>
>          ocmod.mod_op = 0;
>          ocmod.mod_type = "objectclass";
>          ocmod.mod_values = ocvals;
>
>          add[0] = &urlvals;
>          add[1] = &ocmod;
>          add[2] = (LDAPMod *)NULL;
>
> and  datastructres/variables are defined as--
> char *url[3];
> char *ocvals[2];
> LDAPMod urlvals,ocmod;
> LDAPMod *add[4];
>
>
> Response:  when I am running this program, IT's giving me error:
>
>
> Can't contact LDAP server
>         matched DN: "dc=nett"
>
> and after that server is getting killed
>
> PLs: help me soon, I'm trying this since a long, but no break-through
>
> Regards
> Upma