mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Allow coalesce pblock types.
Take care with pblock values that need to be duplicated
This commit is contained in:
parent
7d5978b4aa
commit
6469f164a8
@ -196,6 +196,8 @@ isOkNetscapeParam( int param )
|
|||||||
case SLAPI_RESULT_CODE:
|
case SLAPI_RESULT_CODE:
|
||||||
case SLAPI_RESULT_TEXT:
|
case SLAPI_RESULT_TEXT:
|
||||||
case SLAPI_RESULT_MATCHED:
|
case SLAPI_RESULT_MATCHED:
|
||||||
|
case SLAPI_PLUGIN_OPATTR_COALESCE_FN:
|
||||||
|
case SLAPI_PLUGIN_OPATTR_COALESCE_DATA:
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
default:
|
default:
|
||||||
return INVALID_PARAM;
|
return INVALID_PARAM;
|
||||||
@ -413,9 +415,11 @@ slapi_pblock_set( Slapi_PBlock *pb, int arg, void *value )
|
|||||||
|
|
||||||
switch ( arg ) {
|
switch ( arg ) {
|
||||||
case SLAPI_CONN_DN:
|
case SLAPI_CONN_DN:
|
||||||
case SLAPI_CONN_AUTHTYPE:
|
case SLAPI_CONN_AUTHMETHOD:
|
||||||
case SLAPI_IBM_CONN_DN_ALT:
|
case SLAPI_IBM_CONN_DN_ALT:
|
||||||
case SLAPI_IBM_CONN_DN_ORIG:
|
case SLAPI_IBM_CONN_DN_ORIG:
|
||||||
|
case SLAPI_RESULT_TEXT:
|
||||||
|
case SLAPI_RESULT_MATCHED:
|
||||||
if ( value != NULL ) {
|
if ( value != NULL ) {
|
||||||
pTmp = (void *)slapi_ch_strdup((char *)value);
|
pTmp = (void *)slapi_ch_strdup((char *)value);
|
||||||
if ( pTmp == NULL ) {
|
if ( pTmp == NULL ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user