LDAPVersion structure.
#include <ldap.h>
int ldap_version( LDAPVersion *ver );
ver |
#include <ldap.h>
#include <stdio.h>
...
LDAPVersion ver;
double SDKVersion;
...
/* Print version information */
SDKVersion = ldap_version( &ver );
printf( "SDK Version: %1.2f\n", SDKVersion/100.0 );
printf( "Highest LDAP Protocol Supported: %1.2f\n",
ver.protocol_version/100.0 );
printf( "SSL Level Supported: %1.2f\n", ver.SSL_version/100.0 );
if ( ver.security_level != LDAP_SECURITY_NONE ) {printf( "Level of encryption: %d bits\n", ver.security_level );
} else {printf( "SSL not enabled.\n" );
}
...
Last Updated: 10/01/98 17:06:23