[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Use LDAP with or without SSL
interesting for me,
post your code if you have success and if you like.
My understanding of SSL/TSL and so on,
is that it depends starkly on the port.
I can't imagine that is it possible to have a LDAP-Server which can
accept SSL and non-SSL connection...
SSL is a layer on the TCP-Stack,
how to bypass it ??
Message Wed 20 June 2001 07:28:
> Hello,
>
> I am trying to make a c application which can work with or without
> SSL(openSSL).
>
> Before i make a simple_bind_s i do
> without SSL
> ld = ldap_open(ptPool->pszHostName,ptPool->iPortNo);
> if (ld == NULL){
> rc = CTXLDAP_RC_LDAP;
> goto fin;
> }
>
> with SSL
> ld = ldap_init(ptPool->pszHostName,ptPool->iPortNo);
> if (ld == NULL){
> rc = CTXLDAP_RC_LDAP;
> goto fin;
> }
>
> {
> int arg = LDAP_OPT_X_TLS_HARD;
> rc = ldap_set_option(ld, LDAP_OPT_X_TLS, &arg);
> if (rc != LDAP_SUCCESS){
> rc = CTXLDAP_RC_LDAP;
> goto fin;
> }
> }
>
> I wonder if there is a "trick" to do the same thing in both case and
> let LDAP decide whether i use or not SSL.
>
> Thanks,
>
> Jerome
--
Oliver Egginger
FH Giessen-Friedberg
DV-Zentrum
Wiesenstrasse 14
35390 Giessen
Tel. +49 641 309-1283
Fax +49 641 309-2908
Mail: Oliver.Egginger@mni.fh-giessen.de