- Timestamp:
-
07/04/12 03:55:32 (12 years ago)
- Author:
-
C Rempel
- Comment:
-
/* SLAPD Test Idea */
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v65
|
v66
|
|
411 | 411 | string ldapaddstr[7]; // Make 7 strings |
412 | 412 | string ldapsearchstr[5]; // Make 5 strings |
413 | | |
| 413 | |
414 | 414 | slapdstr[0] = "slapd"; |
415 | 415 | slapdstr[1] = "-d"; |
… |
… |
|
422 | 422 | ldapaddstr[5] = "-f"; |
423 | 423 | ldapaddstr[6] = "ldapdemo.ldif"; |
424 | | |
| 424 | |
425 | 425 | ldapsearchstr[0] = "ldapsearch"; |
426 | 426 | ldapsearchstr[1] = "-x"; |
… |
… |
|
428 | 428 | ldapsearchstr[3] = "\'dc=ldapdemo,dc=org\'"; |
429 | 429 | ldapsearchstr[4] = "\'(objectclass=*)\'"; |
430 | | |
| 430 | |
431 | 431 | main(2, slapdstr); |
432 | 432 | slapadd(7, ldapaddstr); |
433 | 433 | slapindex(5, ldapsearchstr); |
434 | | |
| 434 | |
435 | 435 | 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] |
437 | 437 | |
438 | 438 | Another possibility would be to look into the ldap C API |