1N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A#ifdef LDAP_SASLIO_HOOKS
1N/A#include "ldap-int.h"
1N/A#include "../ber/lber-int.h"
1N/Aextern void *sasl_create_context(void);
1N/A const char *ipremoteport,
1N/A if ( nsldapi_sasl_inited ) {
1N/A (struct lextiof_socket_private *)
1N/A (struct lextiof_socket_private *)
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_SUCCESS );
1N/A case SASL_NOMECH:
1N/A case SASL_BADSERV:
1N/A case SASL_DISABLED:
1N/A case SASL_ENCRYPT:
1N/A case SASL_EXPIRED:
1N/A case SASL_NOUSERPASS:
1N/A case SASL_NOVERIFY:
1N/A case SASL_PWLOCK:
1N/A case SASL_TOOWEAK:
1N/A case SASL_UNAVAIL:
1N/A case SASL_WEAKPASS:
1N/A case SASL_BADAUTH:
1N/A case SASL_NOAUTHZ:
1N/A case SASL_NOMEM:
1N/A case SASL_NOUSER:
1N/A case SASL_CONTINUE:
1N/A case SASL_INTERACT:
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_SUCCESS );
1N/A return( LDAP_SUCCESS );
1N/A return( LDAP_NOT_SUPPORTED );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A return( LDAP_LOCAL_ERROR );
1N/A LDAPDebug(LDAP_DEBUG_TRACE, "Doing client step %d of bind step %d for SASL/%s authentication\n",
1N/A != LDAP_SUCCESS ) {
1N/A return( LDAP_PARAM_ERROR );
1N/A return( LDAP_NO_SUCH_ATTRIBUTE );
1N/A return( LDAP_NO_MEMORY );
1N/A return( LDAP_SUCCESS );
1N/A return LDAP_PARAM_ERROR;
1N/A return LDAP_PARAM_ERROR;
1N/A return LDAP_PARAM_ERROR;
1N/A got_sflags++;
1N/A got_sflags++;
1N/A got_sflags++;
1N/A got_sflags++;
1N/A got_sflags++;
1N/A got_sflags++;
1N/A got_sflags++;
1N/A got_min_ssf++;
1N/A return LDAP_NOT_SUPPORTED;
1N/A got_max_ssf++;
1N/A return LDAP_NOT_SUPPORTED;
1N/A if( maxbufsize &&
1N/A return( LDAP_PARAM_ERROR );
1N/A return( LDAP_NOT_SUPPORTED );
1N/A return( LDAP_NOT_SUPPORTED );
1N/A if(got_sflags) {
1N/A if(got_min_ssf) {
1N/A if(got_max_ssf) {
1N/A if(got_maxbufsize) {
1N/A return( LDAP_SUCCESS );
1N/A const char *saslMechanism,
1N/A return( LDAP_PARAM_ERROR );
1N/A return( LDAP_PARAM_ERROR );
1N/A return( LDAP_PARAM_ERROR );
1N/A if ( nsldapi_sasl_init() < 0 ) {
1N/A return( LDAP_PARAM_ERROR );