]> git.sur5r.net Git - openldap/commitdiff
Allow coalesce pblock types.
authorLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 15:21:55 +0000 (15:21 +0000)
committerLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 15:21:55 +0000 (15:21 +0000)
Take care with pblock values that need to be duplicated

servers/slapd/slapi/slapi_pblock.c

index 204468dc272aa5bc5bfefdb41e3d4a330a026daf..786f9cc9eadb0b62099c9682784fe7bac53b33cc 100644 (file)
@@ -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 ) {