| 1019 | |
| 1020 | |
| 1021 | static ISC_STATUS executeSecurityCommand(ISC_STATUS* status, |
| 1022 | const USER_SEC_DATA* input_user_data, |
| 1023 | Auth::UserData& userInfo |
| 1024 | ) |
| 1025 | { |
| 1026 | /************************************** |
| 1027 | * |
| 1028 | * e x e c u t e S e c u r i t y C o m m a n d |
| 1029 | * |
| 1030 | ************************************** |
| 1031 | * |
| 1032 | * Functional description |
| 1033 | * |
| 1034 | * Executes command according to input_user_data |
| 1035 | * and userInfo. Calls service manager to do job. |
| 1036 | **************************************/ |
| 1037 | |
| 1038 | isc_svc_handle handle = attachRemoteServiceManager(status, |
| 1039 | input_user_data->dba_user_name, |
| 1040 | input_user_data->dba_password, |
| 1041 | false, |
| 1042 | input_user_data->protocol, |
| 1043 | input_user_data->server); |
| 1044 | if (handle) |
| 1045 | { |
| 1046 | callRemoteServiceManager(status, handle, userInfo, NULL); |
| 1047 | makePermanentVector(status); |
| 1048 | |
| 1049 | ISC_STATUS_ARRAY user_status; |
| 1050 | detachRemoteServiceManager(user_status, handle); |
| 1051 | } |
| 1052 | |
| 1053 | return status[1]; |
| 1054 | } |
no test coverage detected