Changes between Version 65 and Version 66 of Projects/OpenLDAP


Ignore:
Timestamp:
Jul 4, 2012, 3:55:32 AM (7 years ago)
Author:
C Rempel
Comment:

/* SLAPD Test Idea */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/OpenLDAP

    v65 v66  
    411411  string ldapaddstr[7];  // Make 7 strings
    412412  string ldapsearchstr[5];  // Make 5 strings
    413 
     413 
    414414  slapdstr[0] = "slapd";
    415415  slapdstr[1] = "-d";
     
    422422  ldapaddstr[5] = "-f";
    423423  ldapaddstr[6] = "ldapdemo.ldif";
    424 
     424 
    425425  ldapsearchstr[0] = "ldapsearch";
    426426  ldapsearchstr[1] = "-x";
     
    428428  ldapsearchstr[3] = "\'dc=ldapdemo,dc=org\'";
    429429  ldapsearchstr[4] = "\'(objectclass=*)\'";
    430 
     430 
    431431  main(2, slapdstr);
    432432  slapadd(7, ldapaddstr);
    433433  slapindex(5, ldapsearchstr);
    434 
     434 
    435435  return 0;
    436 } [http://cboard.cprogramming.com/c-programming/62187-array-strings-c.html]
     436 } [http://cboard.cprogramming.com/c-programming/62187-array-strings-c.html]
    437437
    438438Another possibility would be to look into the ldap C API