mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Confusingly, make SLAPI_OPERATION_AUTHTYPE return a pointer to
SLAPI_CONN_AUTHMETHOD. From my understanding of the Sun ONE API this is the correct behaviour.
This commit is contained in:
parent
68ed72e4c7
commit
6f26183f20
@ -361,12 +361,6 @@ slapi_pblock_destroy( Slapi_PBlock* pb )
|
||||
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 );
|
||||
|
@ -1302,8 +1302,9 @@ int slapi_x_operation_set_pb( Slapi_PBlock *pb, Operation *op )
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user