## ------------------------------------------------------------------------------------------------------ ## rpc - plugin parameters ## ------------------------------------------------------------------------------------------------------ ## METHOD_NAME name of method ## COMMAND command to execute ## ENVIRONMENT environment for command to execute ## RESPONSE_TYPE input/output type of the command ( success_or_failure | ## stdin_success_or_failure | ## standard_output | ## stdin_standard_output | ## standard_output_binary | ## stdin_standard_output_binary ) ## ------------------------------------------------------------------------------------------------------ rpc { ## RPC services ## ------------------------------------------------------------------------------------------------------ ## ENV[HOME] = Base directory for op ## ENV[FILE_LOG] = Log file for command ## ENV[MSG_LOG] = Log separator ## ENV[DEBUG] = Enable debugging ## ------------------------------------------------------------------------------------------------------ Method_01 { ## activate a card and send back login/pwd via SMS ## SMS from client = stringa "From: xxxx\nTo: xxxxx..." input METHOD_NAME CARD ## ENV[LDAP_HOST] = LDAP Host ## ENV[LDAP_PASSWORD] = file contenente password for LDAP binding ## ENV[MAIL_TO] = Email Address for workflow ## ENV[MAIL_FROM] = Email Address for workflow ENVIRONMENT "HOME=WAGSM \ DEBUG=1 \ LDAP_HOST=rosso \ LDAP_PASSWORD=unwired-portal_rootdn.pw \ MAIL_TO=card-activation@auth.t-unwired.com \ MAIL_FROM=gsmbox@auth.t-unwired.com" COMMAND WAGSM/WAGSM_command/card_activation.sh RESPONSE_TYPE standard_output } }