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

problem ldap_url_parse and auth-ldap



I have a probleme with auth-ldap, when I use multiple servers in the LDAP url
ie : 
ldap://ldap1.univ-nancy2.fr:392 ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr?uid?sub?(objectClass=*)"

Only the first server is used with openldap librairie, as the backup work's fine with netscape sdk librairie.

It come's from ldap_url_parse function.

If I execute this program (testLDAP.c) :

int main(int argc, char **argv)
{
  int result;
  LDAPURLDesc *urld;
  if (argc != 2) 
  {
      printf("parameter not exist\n");
      exit(1);
  }

  result = ldap_url_parse(argv[1], &(urld));
  if (result != LDAP_SUCCESS) 
  {
     printf("Could not parse LDAP URL\n");return 1;
  }
  printf("host = |%s|\n", urld->lud_host);
  return 0;
}


./testLDAP "ldap://ldap1.univ-nancy2.fr:392 ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr?uid?sub?(objectClass=*)"

returns with netscape sdk :
host = |ldap1.univ-nancy2.fr:392 ldap2.univ-nancy2.fr|

and with openldap :
host = |ldap1.univ-nancy2.fr|

and auth-ldap treats only this host.

Is it an openldap problem, or an auth-ldap problem ?

thank's

Vincent

-- 
Vincent MATHIEU                 
CRI - Universite NANCY 2            | Email : Vincent.Mathieu@univ-nancy2.fr
Pole Lorrain de Gestion             | Tel   : (33) 03.83.39.64.06
13, Rue Michel Ney - C.O. 75        | Fax   : (33) 03.83.39.64.43
54013 Nancy Cedex.   FRANCE