Allow coalesce pblock types.

Take care with pblock values that need to be duplicated
This commit is contained in:
Luke Howard 2003-01-21 15:21:55 +00:00
parent 7d5978b4aa
commit 6469f164a8

View File

@ -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 ) {