str = NULL;
}
- get( pb, SLAPI_OPERATION_AUTHTYPE, (void **)&str );
- if ( str != NULL ) {
- ch_free( str );
- str = NULL;
- }
-
get( pb, SLAPI_CONN_AUTHMETHOD, (void **)&str );
if ( str != NULL ) {
ch_free( str );
if ( rc != LDAP_SUCCESS )
return rc;
- opAuthType = Authorization2AuthType( &op->o_authz, op->o_conn->c_is_tls, 1 );
- if (opAuthType != NULL) {
+ rc = slapi_pblock_get( pb, SLAPI_CONN_AUTHMETHOD, (void *)&opAuthType );
+ if ( rc == LDAP_SUCCESS && opAuthType != NULL ) {
+ /* Not quite sure what the point of this is. */
rc = slapi_pblock_set( pb, SLAPI_OPERATION_AUTHTYPE, (void *)opAuthType );
if ( rc != LDAP_SUCCESS )
return rc;