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

ldap_init() & ldap_initialize()



Hi

Could someone tell me the difference between
ldap_init() & ldap_initialize() ??

what's the purpose of this ldap_initialize() 
function that drafts don't mention ?
isn't  ldap_init()  sufficient, as in § 5. of 
draft-ietf-ldapext-ldap-c-api-05.txt  ?

  -->extract from /clients/tools/ldapsearch.c :

ld = ldap_init( ldaphost, ldapport );
if( ld == NULL ) {
	perror("ldapsearch: ldap_init");
	return EXIT_FAILURE;
(...)
rc = ldap_initialize( &ld, ldapuri );
if( rc != LDAP_SUCCESS ) {
	fprintf( stderr, "Could not create LDAP 
session handle (%d): %s\n",
		rc, ldap_err2string(rc) );
	return EXIT_FAILURE;


Thanks in advance for help

Sam





Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 ?/mn) ; tél : 08 92 68 13 50 (0,34?/mn)"