MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / executeSecurityCommand

Function executeSecurityCommand

src/yvalve/alt.cpp:1021–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019
1020
1021static 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}

Callers 3

API_ROUTINE isc_add_userFunction · 0.85

Calls 4

callRemoteServiceManagerFunction · 0.85
makePermanentVectorFunction · 0.85

Tested by

no test coverage detected