Hi,
I have a problem using the LDAP C SDK 5.08 lib on the HPUX-11 platform.

1. LDAP_OPT_RECONNECT option is not supported on this platform.
    Sample code:
     int iversion = LDAP_VERSION3;
     if ((err = ::ldap_set_option (m_ld, LDAP_OPT_PROTOCOL_VERSION,
&iversion)) != 0)
     {
        T.sysLog(0, "[%s:%ld] Can't set option to LDAP_VERSION3, ldap error:
[%d] %s.",
       __FILE__, __LINE__, err, ::ldap_err2string(err) );
      ::ldap_unbind( m_ld );
      m_ld = NULL;
      return (LdapErrorTuple (err));
     }

     if ((err = ::ldap_set_option (m_ld, LDAP_OPT_RECONNECT, LDAP_OPT_ON))
!= 0)
     {
            T.sysLog (0, "[%s:%ld] Can't set option to LDAP_OPT_RECONNECT,
ldap error: [%d] %s.\n",
       __FILE__, __LINE__, err, ::ldap_err2string (err) );
      ::ldap_unbind( m_ld );
      m_ld = NULL;
      return (LdapErrorTuple (err));
     }
    ===> Set option fail. Error message return "Operations error".
    ===> Same code works when linked with C SDK on WinNT and Solaris.
    ===> Is this a known problem for HP ?

2. SSL fails on HP platform, works fine on WinNT, AIX and Solaris.
    Is this a known problem on HP ?
    Sample code
         if ( ldapssl_client_init( certdbpath,
          NULL // certdbhandle, Pass a NULL value for this. (This parameter
is not used currently.)
          ) < 0)
         {
            T.sysLog(0,"[%s:%ld]. Fail to ldapssl_client_init: certdbpath =
%s.",
           __FILE__, __LINE__ , certdbpath);
          throw new SecurityClientException(FailLDAP_init);
         }

         if ( (ld = ldapssl_init( defhost, defport,
              1   // Determines whether or not to establish the default
             // connection over SSL. Set this to a non-zero value
             // to establish the default connection over SSL.
          )) == NULL )
         {
                T.sysLog(0,"[%s:%ld]. Fail to ldapssl_init: host = %s, port
= %d.",
               __FILE__, __LINE__ , defhost, defport);
          throw new SecurityClientException(FailLDAP_init);
         }
         ===> FAIL AT ldapssl_init.
         ===> Code works on Sun and NT platform with same host, same port,
same certificate.

Thanks
vanv

Email: [EMAIL PROTECTED]





_______________________________________________
mozilla-directory mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to