iRODS/server/api/src/rsUserAdmin.cpp
int
icatApplyRule( rsComm_t *rsComm, char *ruleName, char *arg1 ) {
    ruleExecInfo_t rei;
    int status;
    const char *args[2];

    rodsLog( LOG_NOTICE, "icatApplyRule called" );
    memset( ( char* )&rei, 0, sizeof( rei ) );
    args[0] = arg1;
    rei.rsComm = rsComm;
    rei.uoic = &rsComm->clientUser;
    rei.uoip = &rsComm->proxyUser;
    status =  applyRuleArg( ruleName,
                            args, 1, &rei, NO_SAVE_REI );
    return status;
}
/*
   This is the function used by chlModUser to run a rule to check a
   password.  It is in this source file instead of
   icatHighLevelRoutines.c so that test programs and define a dummy
   version of this and avoid linking with, and possibly trying to use,
   the Rule Engine.
*/
This is the function used by chlModUser to run a rule to check a
password.  It is in this source file instead of
icatHighLevelRoutines.c so that test programs and define a dummy
version of this and avoid linking with, and possibly trying to use,
the Rule Engine.
This is the function used by chlModUser to run a rule to check a password . It is in this source file instead of icatHighLevelRoutines . c so that test programs and define a dummy version of this and avoid linking with and possibly trying to use the Rule Engine .
int
icatApplyRule( rsComm_t *rsComm, char *ruleName, char *arg1 ) {
    ruleExecInfo_t rei;
    int status;
    const char *args[2];
    rodsLog( LOG_NOTICE, "icatApplyRule called" );
    memset( ( char* )&rei, 0, sizeof( rei ) );
    args[0] = arg1;
    rei.rsComm = rsComm;
    rei.uoic = &rsComm->clientUser;
    rei.uoip = &rsComm->proxyUser;
    status =  applyRuleArg( ruleName,
                            args, 1, &rei, NO_SAVE_REI );
    return status;
}
int icatApplyRule ( rsComm_t * rsComm , char * ruleName , char * arg1 ) { ruleExecInfo_t rei ; int status ; const char * args [ 2 ] ; rodsLog ( LOG_NOTICE , " " ) ; memset ( ( char * ) & rei , 0 , sizeof ( rei ) ) ; args [ 0 ] = arg1 ; rei . rsComm = rsComm ; rei . uoic = & rsComm -> clientUser ; rei . uoip = & rsComm -> proxyUser ; status = applyRuleArg ( ruleName , args , 1 , & rei , NO_SAVE_REI ) ; return status ; }
This is the function used by chlModUser to run a rule to check a
password.
This is the function used by chlModUser to run a rule to check a password .