Lines Matching defs:rc

411 	int	rc, value;
421 rc = ber_sockbuf_get_option( sb,
424 if (rc != 0 || value != 0)
430 rc = sasl_getprop( sb->sb_sasl_ctx, SASL_SEC_PROPS,
432 if (rc != SASL_OK)
450 rc = ber_sockbuf_get_option( sb,
453 if (rc != 0) {
459 rc = ldap_get_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS,
461 if (rc != 0 ) {
491 rc = ldap_set_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS,
493 if (rc != 0 ) {
508 rc = ber_sockbuf_set_option( sb,
511 if (rc != 0) {
523 int rc = LDAP_LOCAL_ERROR;
527 rc = LDAP_SUCCESS;
530 rc = LDAP_AUTH_UNKNOWN;
533 rc = LDAP_CONNECT_ERROR;
544 rc = LDAP_INAPPROPRIATE_AUTH;
548 rc = LDAP_INVALID_CREDENTIALS;
551 rc = LDAP_NO_MEMORY;
554 rc = LDAP_NO_SUCH_OBJECT;
560 rc = LDAP_LOCAL_ERROR;
564 LDAP_SET_LDERRNO( ld, rc, NULL, msg );
565 return( rc );
657 int saslrc, rc;
675 rc = nsldapi_open_ldap_defconn( ld );
676 if( rc < 0 ) {
682 if ((rc = nsldapi_sasl_open(ld)) != LDAP_SUCCESS) {
683 LDAP_SET_LDERRNO( ld, rc, NULL, NULL );
684 return( rc );
741 rc = ldap_sasl_bind_s(ld, dn, mech, &ccred,
748 if ( rc != LDAP_SUCCESS && rc != LDAP_SASL_BIND_IN_PROGRESS ) {
750 return( rc );
753 if( rc == LDAP_SUCCESS && saslrc == SASL_OK ) {
802 } while ( rc == LDAP_SASL_BIND_IN_PROGRESS );
804 if ( rc != LDAP_SUCCESS ) {
805 return( rc );
824 rc = nsldapi_sasl_install(ld, ld->ld_conns->lconn_sb, ctx, ssf);
827 return( rc );
842 int slen, rc;
851 rc = ldap_search_st( ld, "", LDAP_SCOPE_BASE,
854 if ( rc != LDAP_SUCCESS ) {
1038 int rc;
1054 rc = nsldapi_get_sasl_mechs( ld, &smechs );
1055 if( rc != LDAP_SUCCESS ) {
1057 return( rc );
1071 rc = nsldapi_sasl_do_bind( ld, dn, saslMechanism,
1075 return( rc );