mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-26 16:52:55 -05:00
Allow coalesce pblock types.
Take care with pblock values that need to be duplicated
This commit is contained in:
parent
7d5978b4aa
commit
6469f164a8
1 changed files with 5 additions and 1 deletions
|
|
@ -196,6 +196,8 @@ isOkNetscapeParam( int param )
|
|||
case SLAPI_RESULT_CODE:
|
||||
case SLAPI_RESULT_TEXT:
|
||||
case SLAPI_RESULT_MATCHED:
|
||||
case SLAPI_PLUGIN_OPATTR_COALESCE_FN:
|
||||
case SLAPI_PLUGIN_OPATTR_COALESCE_DATA:
|
||||
return LDAP_SUCCESS;
|
||||
default:
|
||||
return INVALID_PARAM;
|
||||
|
|
@ -413,9 +415,11 @@ slapi_pblock_set( Slapi_PBlock *pb, int arg, void *value )
|
|||
|
||||
switch ( arg ) {
|
||||
case SLAPI_CONN_DN:
|
||||
case SLAPI_CONN_AUTHTYPE:
|
||||
case SLAPI_CONN_AUTHMETHOD:
|
||||
case SLAPI_IBM_CONN_DN_ALT:
|
||||
case SLAPI_IBM_CONN_DN_ORIG:
|
||||
case SLAPI_RESULT_TEXT:
|
||||
case SLAPI_RESULT_MATCHED:
|
||||
if ( value != NULL ) {
|
||||
pTmp = (void *)slapi_ch_strdup((char *)value);
|
||||
if ( pTmp == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue