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

ldap_ass_s : Matched dn



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