"modby", "modwith", "created", "creator",
};
-static char *gual_fields[] = {
+static char *gual11_fields[] = {
"login",
"login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
"status", "clearid", "class", "comments", "signature", "secure",
"creator",
};
+static char *gual_fields[] = {
+ "login",
+ "login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
+ "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+ "modtime", "modby", "modwith", "created", "creator",
+};
+
static char *gubl2_fields[] = {
"login",
"login", "unix_uid", "shell", "last", "first", "middle", "status",
"modtime", "modby", "modwith", "created", "creator",
};
-static char *guau_fields[] = {
+static char *guau11_fields[] = {
"unix_uid",
"login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
"status", "clearid", "class", "comments", "signature", "secure",
"creator",
};
+static char *guau_fields[] = {
+ "unix_uid",
+ "login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
+ "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+ "modtime", "modby", "modwith", "created", "creator",
+};
+
static char *guan2_fields[] = {
"first", "last",
"login", "unix_uid", "shell", "last", "first", "middle", "status",
"modtime", "modby", "modwith", "created", "creator",
};
-static char *guan_fields[] = {
+static char *guan11_fields[] = {
"first", "last",
"login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
"status", "clearid", "class", "comments", "signature", "secure",
"creator",
};
+static char *guan_fields[] = {
+ "first", "last",
+ "login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
+ "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+ "modtime", "modby", "modwith", "created", "creator",
+};
+
static struct validate guan2_validate =
{
0,
"modtime", "modby", "modwith", "created", "creator",
};
-static char *guac_fields[] = {
+static char *guac11_fields[] = {
"class",
"login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
"status", "clearid", "class", "comments", "signature", "secure",
"creator",
};
+static char *guac_fields[] = {
+ "class",
+ "login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
+ "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+ "modtime", "modby", "modwith", "created", "creator",
+};
+
static char *guam2_fields[] = {
"clearid",
"login", "unix_uid", "shell", "last", "first", "middle", "status",
"modtime", "modby", "modwith", "created", "creator",
};
-static char *guam_fields[] = {
+static char *guam11_fields[] = {
"clearid",
"login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
"status", "clearid", "class", "comments", "signature", "secure",
"creator",
};
+static char *guam_fields[] = {
+ "clearid",
+ "login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
+ "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+ "modtime", "modby", "modwith", "created", "creator",
+};
+
+static char *guas_fields[] = {
+ "sponsor_type", "sponsor_name",
+ "login",
+};
+
+static struct valobj guas_valobj[] = {
+ {V_TYPE, 0, 0, "gaus", 0, MR_TYPE},
+ {V_TYPEDATA, 1, 0, 0, 0, MR_NO_MATCH},
+};
+
+static struct validate guas_validate = {
+ guas_valobj,
+ 2,
+ 0,
+ 0,
+ 0,
+ 0,
+ access_member,
+ 0,
+ get_user_account_by_sponsor,
+};
+
static char *gubu2_fields[] = {
"unix_uid",
"login", "unix_uid", "shell", "last", "first", "middle", "status",
"middle", "status", "clearid", "class", "comments", "signature", "secure",
};
-static char *auac_fields[] = {
+static char *auac11_fields[] = {
"login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
"status", "clearid", "class", "comments", "signature", "secure",
"winhomedir", "winprofiledir",
};
+static char *auac_fields[] = {
+ "login", "unix_uid", "shell", "winconsoleshell", "last", "first", "middle",
+ "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+};
+
static struct valobj auac2_valobj[] = {
{V_CHAR, 0, USERS_TABLE, "login"},
{V_NUM, 1},
{V_NUM, 12},
};
+static struct valobj auac11_valobj[] = {
+ {V_CHAR, 0, USERS_TABLE, "login"},
+ {V_NUM, 1},
+ {V_CHAR, 2, USERS_TABLE, "shell"},
+ {V_CHAR, 3, USERS_TABLE, "winconsoleshell"},
+ {V_CHAR, 4, USERS_TABLE, "last"},
+ {V_CHAR, 5, USERS_TABLE, "first"},
+ {V_CHAR, 6, USERS_TABLE, "middle"},
+ {V_NUM, 7},
+ {V_CHAR, 8, USERS_TABLE, "clearid"},
+ {V_TYPE, 9, 0, "class", 0, MR_BAD_CLASS},
+ {V_ID, 10, STRINGS_TABLE, "string", "string_id", MR_NO_MATCH},
+ {V_NUM, 12},
+ {V_LEN, 13, USERS_TABLE, "winhomedir"},
+ {V_LEN, 14, USERS_TABLE, "winprofiledir"},
+};
+
static struct valobj auac_valobj[] = {
{V_CHAR, 0, USERS_TABLE, "login"},
{V_NUM, 1},
{V_NUM, 12},
{V_LEN, 13, USERS_TABLE, "winhomedir"},
{V_LEN, 14, USERS_TABLE, "winprofiledir"},
+ {V_TYPE, 15, 0, "ace_type", 0, MR_ACE},
+ {V_TYPEDATA, 16, 0, 0, "list_id", MR_ACE},
+ {V_CHAR, 17, USERS_TABLE, "expiration"},
};
static struct validate auac2_validate = {
followup_ausr,
};
+static struct validate auac11_validate = {
+ auac11_valobj,
+ 14,
+ "login",
+ "login = '%s'",
+ 1,
+ "users_id",
+ 0,
+ setup_ausr,
+ followup_ausr,
+};
+
static struct validate auac_validate = {
auac_valobj,
- 14,
+ 17,
"login",
"login = '%s'",
1,
followup_ausr,
};
+static struct validate ausr11_validate = {
+ auac11_valobj,
+ 12,
+ "login",
+ "login = '%s'",
+ 1,
+ "users_id",
+ 0,
+ setup_ausr,
+ followup_ausr,
+};
+
static struct validate ausr_validate = {
auac_valobj,
- 12,
+ 15,
"login",
"login = '%s'",
1,
"middle", "status", "clearid", "class", "comments", "signature", "secure",
};
-static char *uuac_fields[] = {
+static char *uuac11_fields[] = {
"login",
"newlogin", "unix_uid", "shell", "winconsoleshell", "last", "first",
"middle", "status", "clearid", "class", "comments", "signature", "secure",
"winhomedir", "winprofiledir",
};
+static char *uuac_fields[] = {
+ "login",
+ "newlogin", "unix_uid", "shell", "winconsoleshell", "last", "first",
+ "middle", "status", "clearid", "class", "comments", "signature", "secure",
+ "winhomedir", "winprofiledir", "sponsor_type", "sponsor_name", "expiration",
+};
+
static struct valobj uuac2_valobj[] = {
{V_ID, 0, USERS_TABLE, "login", "users_id", MR_USER},
{V_RENAME, 1, USERS_TABLE, "login", "users_id", MR_NOT_UNIQUE},
{V_NUM, 13},
};
+static struct valobj uuac11_valobj[] = {
+ {V_ID, 0, USERS_TABLE, "login", "users_id", MR_USER},
+ {V_RENAME, 1, USERS_TABLE, "login", "users_id", MR_NOT_UNIQUE},
+ {V_NUM, 2},
+ {V_CHAR, 3, USERS_TABLE, "shell"},
+ {V_CHAR, 4, USERS_TABLE, "winconsoleshell"},
+ {V_CHAR, 5, USERS_TABLE, "first"},
+ {V_CHAR, 6, USERS_TABLE, "last"},
+ {V_CHAR, 7, USERS_TABLE, "middle"},
+ {V_NUM, 8},
+ {V_CHAR, 9, USERS_TABLE, "clearid"},
+ {V_TYPE, 10, 0, "class", 0, MR_BAD_CLASS},
+ {V_ID, 11, STRINGS_TABLE, "string", "string_id", MR_NO_MATCH},
+ {V_NUM, 13},
+ {V_LEN, 14, USERS_TABLE, "winhomedir"},
+ {V_LEN, 15, USERS_TABLE, "winprofiledir"},
+};
+
static struct valobj uuac_valobj[] = {
{V_ID, 0, USERS_TABLE, "login", "users_id", MR_USER},
{V_RENAME, 1, USERS_TABLE, "login", "users_id", MR_NOT_UNIQUE},
{V_NUM, 13},
{V_LEN, 14, USERS_TABLE, "winhomedir"},
{V_LEN, 15, USERS_TABLE, "winprofiledir"},
+ {V_TYPE, 16, 0, "ace_type", 0, MR_ACE},
+ {V_TYPEDATA, 17, 0, 0, "list_id", MR_ACE},
+ {V_CHAR, 18, USERS_TABLE, "expiration"},
};
static struct validate uuac2_validate = {
set_modtime_by_id,
};
+static struct validate uuac11_validate = {
+ uuac11_valobj,
+ 15,
+ 0,
+ 0,
+ 0,
+ "users_id",
+ access_update_user,
+ setup_ausr,
+ set_modtime_by_id,
+};
+
static struct validate uuac_validate = {
uuac_valobj,
- 15,
+ 18,
0,
0,
0,
set_modtime_by_id,
};
+static struct validate uusr11_validate = {
+ uuac11_valobj,
+ 13,
+ 0,
+ 0,
+ 0,
+ "users_id",
+ 0,
+ setup_ausr,
+ set_modtime_by_id,
+};
+
static struct validate uusr_validate = {
uuac_valobj,
- 13,
+ 16,
0,
0,
0,
0,
0,
0,
- access_filesys,
+ 0,
0,
followup_fix_modby,
};
0,
0,
0,
- access_filesys,
+ 0,
0,
followup_gqot,
};
0,
0,
0,
- access_filesys,
+ 0,
0,
followup_gqot,
};
3,
0,
0,
- 0,
+ setup_aali,
0,
};
"get_all_logins",
"galo",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle FROM users u",
"get_all_logins",
"galo",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle FROM users u",
"get_all_active_logins",
"gaal",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle FROM users u",
"get_all_active_logins",
"gaal",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle FROM users u",
"get_user_account_by_login",
"gual",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u, strings str",
"get_user_account_by_login",
"gual",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
"get_user_account_by_login",
"gual",
11,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
- gual_fields,
+ gual11_fields,
20,
"u.login LIKE '%s' AND u.users_id != 0 AND u.comments = str.string_id",
1,
&gubl_validate,
},
+ {
+ /* Q_GUAL - GET_USER_ACCOUNT_BY_LOGIN, v12 */
+ "get_user_account_by_login",
+ "gual",
+ 12,
+ MR_Q_RETRIEVE,
+ "u",
+ USERS_TABLE,
+ "u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, u.sponsor_type, u.sponsor_id, u.expiration, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
+ gual_fields,
+ 23,
+ "u.login LIKE '%s' AND u.users_id != 0 AND u.comments = str.string_id",
+ 1,
+ "u.login",
+ &gubl_validate,
+ },
+
{
/* Q_GUAU - GET_USER_ACCOUNT_BY_UID, v2 */
"get_user_account_by_uid",
"guau",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u, strings str",
"get_user_account_by_uid",
"guau",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
"get_user_account_by_uid",
"guau",
11,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
- guau_fields,
+ guau3_fields,
20,
"u.unix_uid = %s AND u.users_id != 0 AND u.comments = str.string_id",
1,
&gubu_validate,
},
+ {
+ /* Q_GUAU - GET_USER_ACCOUNT_BY_UID, v12 */
+ "get_user_account_by_uid",
+ "guau",
+ 12,
+ MR_Q_RETRIEVE,
+ "u",
+ USERS_TABLE,
+ "u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, u.sponsor_type, u.sponsor_id, u.expiration, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
+ guau_fields,
+ 23,
+ "u.unix_uid = %s AND u.users_id != 0 AND u.comments = str.string_id",
+ 1,
+ "u.login",
+ &gubu_validate,
+ },
+
{
/* Q_GUAN - GET_USER_ACCOUNT_BY_NAME, v2 */
"get_user_account_by_name",
"guan",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u, strings str",
"get_user_account_by_name",
"guan",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
"get_user_account_by_name",
"guan",
11,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
- guan_fields,
+ guan11_fields,
20,
"u.first LIKE '%s' AND u.last LIKE '%s' AND u.users_id != 0 and u.comments = str.string_id",
2,
&guan_validate,
},
+ {
+ /* Q_GUAN - GET_USER_ACCOUNT_BY_NAME, v12 */
+ "get_user_account_by_name",
+ "guan",
+ 12,
+ MR_Q_RETRIEVE,
+ "u",
+ USERS_TABLE,
+ "u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, u.sponsor_type, u.sponsor_id, u.expiration, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
+ guan_fields,
+ 23,
+ "u.first LIKE '%s' AND u.last LIKE '%s' AND u.users_id != 0 and u.comments = str.string_id",
+ 2,
+ "u.login",
+ &guan_validate,
+ },
+
{
/* Q_GUAC - GET_USER_ACCOUNT_BY_CLASS, v2 */
"get_user_account_by_class",
"guac",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u, strings str",
"get_user_account_by_class",
"guac",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
"get_user_account_by_class",
"guac",
11,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
- guac_fields,
+ guac11_fields,
20,
"u.type = UPPER('%s') AND u.users_id != 0 AND u.comments = str.string_id",
1,
&guan_validate,
},
+ {
+ /* Q_GUAC - GET_USER_ACCOUNT_BY_CLASS, v12 */
+ "get_user_account_by_class",
+ "guac",
+ 12,
+ MR_Q_RETRIEVE,
+ "u",
+ USERS_TABLE,
+ "u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, u.sponsor_type, u.sponsor_id, u.expiration, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
+ guac_fields,
+ 23,
+ "u.type = UPPER('%s') AND u.users_id != 0 AND u.comments = str.string_id",
+ 1,
+ "u.login",
+ &guan_validate,
+ },
+
{
/* Q_GUAM - GET_USER_ACCOUNT_BY_MITID, v2 */
"get_user_account_by_id",
"guai",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u, strings str",
"get_user_account_by_id",
"guai",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
"get_user_account_by_id",
"guai",
11,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
- guam_fields,
+ guam11_fields,
20,
"u.clearid LIKE '%s' AND u.users_id != 0 AND u.comments = str.string_id",
1,
&guan_validate,
},
+ {
+ /* Q_GUAM - GET_USER_ACCOUNT_BY_MITID, v12 */
+ "get_user_account_by_id",
+ "guai",
+ 12,
+ MR_Q_RETRIEVE,
+ "u",
+ USERS_TABLE,
+ "u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, str.string, CHR(0), u.secure, u.winhomedir, u.winprofiledir, u.sponsor_type, u.sponsor_id, u.expiration, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u, strings str",
+ guam_fields,
+ 23,
+ "u.clearid LIKE '%s' AND u.users_id != 0 AND u.comments = str.string_id",
+ 1,
+ "u.login",
+ &guan_validate,
+ },
+
+ {
+ /* Q_GUAS - GET_USER_ACCOUNT_BY_SPONSOR, v12 */
+ "get_user_account_by_sponsor",
+ "guas",
+ 12,
+ MR_Q_RETRIEVE,
+ 0,
+ 0,
+ 0,
+ guas_fields,
+ 1,
+ 0,
+ 2,
+ NULL,
+ &guas_validate,
+ },
+
{
/* Q_GUBL - GET_USER_BY_LOGIN, v2 */
"get_user_by_login",
"gubl",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u",
"get_user_by_login",
"gubl",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u",
"get_user_by_uid",
"gubu",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u",
"get_user_by_uid",
"gubu",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u",
"get_user_by_name",
"gubn",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u",
"get_user_by_name",
"gubn",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u",
"get_user_by_class",
"gubc",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u",
"get_user_by_class",
"gubc",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS') FROM users u",
"get_user_by_mitid",
"gubm",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith FROM users u",
"get_user_by_mitid",
"gubm",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"u.login, u.unix_uid, u.shell, u.winconsoleshell, u.last, u.first, u.middle, u.status, u.clearid, u.type, TO_CHAR(u.modtime, 'DD-mon-YYYY HH24:MI:SS'), u.modby, u.modwith, TO_CHAR(u.created, 'DD-mon-YYYY HH24:MI:SS'), u.creator FROM users u",
"add_user_account",
"auac",
2,
- APPEND,
+ MR_Q_APPEND,
"u",
USERS_TABLE,
/* We set signature to "NVL(CHR(0), '%s')", which is to say, "CHR(0)",
"add_user_account",
"auac",
3,
- APPEND,
+ MR_Q_APPEND,
"u",
USERS_TABLE,
/* We set signature to "NVL(CHR(0), '%s')", which is to say, "CHR(0)",
"add_user_account",
"auac",
11,
- APPEND,
+ MR_Q_APPEND,
"u",
USERS_TABLE,
/* We set signature to "NVL(CHR(0), '%s')", which is to say, "CHR(0)",
* but using up one argv element.
*/
"INTO users (login, unix_uid, shell, winconsoleshell, last, first, middle, status, clearid, type, comments, signature, secure, winhomedir, winprofiledir, users_id, created, creator) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', %d, NVL(CHR(0), '%s'), %s, NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, SYSDATE, %s)",
- auac_fields,
+ auac11_fields,
15,
NULL,
0,
NULL,
+ &auac11_validate,
+ },
+
+ {
+ /* Q_AUAC - ADD_USER_ACCOUNT, v12 */ /* uses prefetch_value() for users_id */
+ "add_user_account",
+ "auac",
+ 12,
+ MR_Q_APPEND,
+ "u",
+ USERS_TABLE,
+ /* We set signature to "NVL(CHR(0), '%s')", which is to say, "CHR(0)",
+ * but using up one argv element.
+ */
+ "INTO users (login, unix_uid, shell, winconsoleshell, last, first, middle, status, clearid, type, comments, signature, secure, winhomedir, winprofiledir, sponsor_type, sponsor_id, expiration, users_id, created, creator) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', %d, NVL(CHR(0), '%s'), %s, NVL('%s', CHR(0)), NVL('%s', CHR(0)), '%s', %d, NVL('%s', CHR(0)), %s, SYSDATE, %s)",
+ auac_fields,
+ 18,
+ NULL,
+ 0,
+ NULL,
&auac_validate,
},
"add_user",
"ausr",
2,
- APPEND,
+ MR_Q_APPEND,
"u",
USERS_TABLE,
"INTO users (login, unix_uid, shell, last, first, middle, status, clearid, type, comments, signature, secure, users_id) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', 0, CHR(0), 0, %s)",
"add_user",
"ausr",
3,
- APPEND,
+ MR_Q_APPEND,
"u",
USERS_TABLE,
"INTO users (login, unix_uid, shell, winconsoleshell, last, first, middle, status, clearid, type, comments, signature, secure, users_id, created, creator) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', 0, CHR(0), 0, %s, SYSDATE, %s)",
"add_user",
"ausr",
11,
- APPEND,
+ MR_Q_APPEND,
"u",
USERS_TABLE,
"INTO users (login, unix_uid, shell, winconsoleshell, last, first, middle, status, clearid, type, comments, signature, secure, winhomedir, winprofiledir, users_id, created, creator) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', 0, CHR(0), 0, NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, SYSDATE, %s)",
- auac_fields,
+ auac11_fields,
+ 12,
+ 0,
+ 0,
+ NULL,
+ &ausr11_validate,
+ },
+
+ {
+ /* Q_AUSR - ADD_USER, v12 */ /* uses prefetch_value() for users_id */
+ "add_user",
+ "ausr",
12,
+ MR_Q_APPEND,
+ "u",
+ USERS_TABLE,
+ "INTO users (login, unix_uid, shell, winconsoleshell, last, first, middle, status, clearid, type, comments, signature, secure, winhomedir, winprofiledir, sponsor_type, sponsor_id, expiration, users_id, created, creator) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', 0, CHR(0), 0, NVL('%s', CHR(0)), NVL('%s', CHR(0)), '%s', %d, NVL('%s', CHR(0)), %s, SYSDATE, %s)",
+ auac_fields,
+ 15,
0,
0,
NULL,
"register_user",
"rusr",
2,
- APPEND,
+ MR_Q_APPEND,
0,
0,
0,
"update_user_account",
"uuac",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
/* See comment in auac about signature. */
"update_user_account",
"uuac",
3,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
/* See comment in auac about signature. */
"update_user_account",
"uuac",
11,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
/* See comment in auac about signature. */
"users SET login = '%s', unix_uid = %s, shell = '%s', winconsoleshell = '%s', last = NVL('%s', CHR(0)), first = NVL('%s', CHR(0)), middle = NVL('%s', CHR(0)), status = %s, clearid = NVL('%s', CHR(0)), type = '%s', comments = %d, signature = NVL(CHR(0), '%s'), secure = %s, winhomedir = NVL('%s', CHR(0)), winprofiledir = NVL('%s', CHR(0))",
- uuac_fields,
+ uuac11_fields,
15,
"users_id = %d",
1,
NULL,
+ &uuac11_validate,
+ },
+
+ {
+ /* Q_UUAC - UPDATE_USER_ACCOUNT, v12 */
+ "update_user_account",
+ "uuac",
+ 12,
+ MR_Q_UPDATE,
+ "u",
+ USERS_TABLE,
+ /* See comment in auac about signature. */
+ "users SET login = '%s', unix_uid = %s, shell = '%s', winconsoleshell = '%s', last = NVL('%s', CHR(0)), first = NVL('%s', CHR(0)), middle = NVL('%s', CHR(0)), status = %s, clearid = NVL('%s', CHR(0)), type = '%s', comments = %d, signature = NVL(CHR(0), '%s'), secure = %s, winhomedir = NVL('%s', CHR(0)), winprofiledir = NVL('%s', CHR(0)), sponsor_type = '%s', sponsor_id = %d, expiration = NVL('%s', CHR(0))",
+ uuac_fields,
+ 18,
+ "users_id = %d",
+ 1,
+ NULL,
&uuac_validate,
},
"update_user",
"uusr",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET login = '%s', unix_uid = %s, shell = '%s', last = NVL('%s', CHR(0)), first = NVL('%s', CHR(0)), middle = NVL('%s', CHR(0)), status = %s, clearid = NVL('%s', CHR(0)), type = '%s'",
"update_user",
"uusr",
3,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET login = '%s', unix_uid = %s, shell = '%s', winconsoleshell = '%s', last = NVL('%s', CHR(0)), first = NVL('%s', CHR(0)), middle = NVL('%s', CHR(0)), status = %s, clearid = NVL('%s', CHR(0)), type = '%s'",
"update_user",
"uusr",
11,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET login = '%s', unix_uid = %s, shell = '%s', winconsoleshell = '%s', last = NVL('%s', CHR(0)), first = NVL('%s', CHR(0)), middle = NVL('%s', CHR(0)), status = %s, clearid = NVL('%s', CHR(0)), type = '%s', winhomedir = NVL('%s', CHR(0)), winprofiledir = NVL('%s', CHR(0)) ",
- uuac_fields,
+ uuac11_fields,
12,
"users_id = %d",
1,
NULL,
+ &uusr11_validate,
+ },
+
+ {
+ /* Q_UUSR - UPDATE_USER, v12 */
+ "update_user",
+ "uusr",
+ 12,
+ MR_Q_UPDATE,
+ "u",
+ USERS_TABLE,
+ "users SET login = '%s', unix_uid = %s, shell = '%s', winconsoleshell = '%s', last = NVL('%s', CHR(0)), first = NVL('%s', CHR(0)), middle = NVL('%s', CHR(0)), status = %s, clearid = NVL('%s', CHR(0)), type = '%s', winhomedir = NVL('%s', CHR(0)), winprofiledir = NVL('%s', CHR(0)), sponsor_type = '%s', sponsor_id = %d, expiration = NVL('%s', CHR(0)) ",
+ uuac_fields,
+ 15,
+ "users_id = %d",
+ 1,
+ NULL,
&uusr_validate,
},
"update_user_shell",
"uush",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET shell = '%s'",
"update_user_windows_shell",
"uuws",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET winconsoleshell = '%s'",
"update_user_status",
"uust",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET status = %s",
"update_user_security_status",
"uuss",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET secure = %s",
"delete_user",
"dusr",
2,
- DELETE,
+ MR_Q_DELETE,
"u",
USERS_TABLE,
NULL,
"add_user_reservation",
"aurv",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
USERS_TABLE,
0,
"get_user_reservations",
"gurv",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
USERS_TABLE,
0,
"get_user_by_reservation",
"gubr",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
USERS_TABLE,
0,
"delete_user_reservation",
"durv",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
USERS_TABLE,
0,
"get_kerberos_user_map",
"gkum",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"k",
KRBMAP_TABLE,
"u.login, str.string FROM krbmap km, users u, strings str",
"add_kerberos_user_map",
"akum",
2,
- APPEND,
+ MR_Q_APPEND,
"k",
KRBMAP_TABLE,
"INTO krbmap (users_id, string_id) VALUES (%d, %d)",
"delete_kerberos_user_map",
"dkum",
2,
- DELETE,
+ MR_Q_DELETE,
"k",
KRBMAP_TABLE,
0,
"get_finger_by_login",
"gfbl",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"login, fullname, nickname, home_addr, home_phone, office_addr, office_phone, department, affiliation, TO_CHAR(fmodtime, 'DD-mon-YYYY HH24:MI:SS'), fmodby, fmodwith FROM users",
"update_finger_by_login",
"ufbl",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET fullname= NVL('%s', CHR(0)), nickname= NVL('%s', CHR(0)), home_addr= NVL('%s', CHR(0)), home_phone= NVL('%s', CHR(0)), office_addr= NVL('%s', CHR(0)), office_phone= NVL('%s', CHR(0)), department= NVL('%s', CHR(0)), affiliation= NVL('%s', CHR(0))",
"get_pobox",
"gpob",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"login, potype, users_id, CHR(0), TO_CHAR(pmodtime, 'DD-mon-YYYY HH24:MI:SS'), pmodby, pmodwith FROM users",
"get_all_poboxes",
"gapo",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"login, potype, pop_id || ':' || box_id FROM users",
"get_poboxes_pop",
"gpop",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"login, potype, users_id FROM users",
"get_poboxes_smtp",
"gpos",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"u",
USERS_TABLE,
"login, potype, users_id FROM users",
"set_pobox",
"spob",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
USERS_TABLE,
0,
"set_pobox_pop",
"spop",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
USERS_TABLE,
0,
"delete_pobox",
"dpob",
2,
- UPDATE,
+ MR_Q_UPDATE,
"u",
USERS_TABLE,
"users SET potype = 'NONE'",
"get_host",
"ghst",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host",
"ghst",
6,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.billing_contact, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host",
"ghst",
8,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.billing_contact, m.account_number, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host_by_hwaddr",
"ghbh",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host_by_hwaddr",
"ghbh",
6,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.billing_contact, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host_by_hwaddr",
"ghbh",
8,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.billing_contact, m.account_number, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host_by_account_number",
"ghba",
8,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.name, m.vendor, m.model, m.os, m.location, m.contact, m.billing_contact, m.account_number, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
"get_host_hwaddr",
"ghha",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"m.hwaddr FROM machine m",
"add_host",
"ahst",
2,
- APPEND,
+ MR_Q_APPEND,
"m",
MACHINE_TABLE,
"INTO machine (name, vendor, model, os, location, contact, use, status, statuschange, snet_id, address, owner_type, owner_id, acomment, ocomment, created, inuse, mach_id, creator) VALUES (UPPER('%s'), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL('%s', CHR(0)), %s, %s, SYSDATE, %d, '%s', '%s', %d, %d, %d, SYSDATE, SYSDATE, %s, %s)",
"add_host",
"ahst",
6,
- APPEND,
+ MR_Q_APPEND,
"m",
MACHINE_TABLE,
"INTO machine (name, vendor, model, os, location, contact, billing_contact, use, status, statuschange, snet_id, address, owner_type, owner_id, acomment, ocomment, created, inuse, mach_id, creator) VALUES (UPPER('%s'), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, %s, SYSDATE, %d, '%s', '%s', %d, %d, %d, SYSDATE, SYSDATE, %s, %s)",
"add_host",
"ahst",
8,
- APPEND,
+ MR_Q_APPEND,
"m",
MACHINE_TABLE,
"INTO machine (name, vendor, model, os, location, contact, billing_contact, account_number, use, status, statuschange, snet_id, address, owner_type, owner_id, acomment, ocomment, created, inuse, mach_id, creator) VALUES (UPPER('%s'), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL(UPPER('%s'), CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, %s, SYSDATE, %d, '%s', '%s', %d, %d, %d, SYSDATE, SYSDATE, %s, %s)",
"update_host",
"uhst",
2,
- UPDATE,
+ MR_Q_UPDATE,
"m",
MACHINE_TABLE,
"machine SET name = NVL(UPPER('%s'), CHR(0)), vendor = NVL(UPPER('%s'), CHR(0)), model = NVL(UPPER('%s'), CHR(0)), os = NVL(UPPER('%s'), CHR(0)), location = NVL(UPPER('%s'), CHR(0)), contact = NVL('%s', CHR(0)), use = %s, status = %s, snet_id = %d, address = '%s', owner_type = '%s', owner_id = %d, acomment = %d, ocomment = %d",
"update_host",
"uhst",
6,
- UPDATE,
+ MR_Q_UPDATE,
"m",
MACHINE_TABLE,
"machine SET name = NVL(UPPER('%s'), CHR(0)), vendor = NVL(UPPER('%s'), CHR(0)), model = NVL(UPPER('%s'), CHR(0)), os = NVL(UPPER('%s'), CHR(0)), location = NVL(UPPER('%s'), CHR(0)), contact = NVL('%s', CHR(0)), billing_contact = NVL('%s', CHR(0)), use = %s, status = %s, snet_id = %d, address = '%s', owner_type = '%s', owner_id = %d, acomment = %d, ocomment = %d",
"update_host",
"uhst",
8,
- UPDATE,
+ MR_Q_UPDATE,
"m",
MACHINE_TABLE,
"machine SET name = NVL(UPPER('%s'), CHR(0)), vendor = NVL(UPPER('%s'), CHR(0)), model = NVL(UPPER('%s'), CHR(0)), os = NVL(UPPER('%s'), CHR(0)), location = NVL(UPPER('%s'), CHR(0)), contact = NVL('%s', CHR(0)), billing_contact = NVL('%s', CHR(0)), account_number = NVL('%s', CHR(0)), use = %s, status = %s, snet_id = %d, address = '%s', owner_type = '%s', owner_id = %d, acomment = %d, ocomment = %d",
"update_host_hwaddr",
"uhha",
2,
- UPDATE,
+ MR_Q_UPDATE,
"m",
MACHINE_TABLE,
"machine SET hwaddr = NVL('%s', CHR(0))",
"delete_host",
"dhst",
2,
- DELETE,
+ MR_Q_DELETE,
"m",
MACHINE_TABLE,
NULL,
"get_machine",
"gmac",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"m",
MACHINE_TABLE,
"name, vendor, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM machine",
"get_hostalias",
"ghal",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"a",
HOSTALIAS_TABLE,
"a.name, m.name FROM hostalias a, machine m",
"add_hostalias",
"ahal",
2,
- APPEND,
+ MR_Q_APPEND,
"a",
HOSTALIAS_TABLE,
"INTO hostalias (name, mach_id) VALUES (UPPER('%s'), %d)",
"delete_hostalias",
"dhal",
2,
- DELETE,
+ MR_Q_DELETE,
"a",
HOSTALIAS_TABLE,
NULL,
"get_subnet",
"gsnt",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"s",
SUBNET_TABLE,
"name, description, saddr, mask, low, high, prefix, owner_type, owner_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM subnet",
"get_subnet",
"gsnt",
8,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"s",
SUBNET_TABLE,
"name, description, status, contact, account_number, saddr, mask, low, high, prefix, owner_type, owner_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM subnet",
"add_subnet",
"asnt",
2,
- APPEND,
+ MR_Q_APPEND,
"s",
SUBNET_TABLE,
"INTO subnet (name, description, saddr, mask, low, high, prefix, owner_type, owner_id, snet_id) VALUES (UPPER('%s'), NVL('%s', CHR(0)), %s, %s, %s, %s, NVL('%s', CHR(0)), '%s', %d, %s)",
"add_subnet",
"asnt",
8,
- APPEND,
+ MR_Q_APPEND,
"s",
SUBNET_TABLE,
"INTO subnet (name, description, status, contact, account_number, saddr, mask, low, high, prefix, owner_type, owner_id, snet_id) VALUES (UPPER('%s'), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, %s, %s, %s, NVL('%s', CHR(0)), '%s', %d, %s)",
"update_subnet",
"usnt",
2,
- UPDATE,
+ MR_Q_UPDATE,
"s",
SUBNET_TABLE,
"subnet SET name = UPPER('%s'), description = NVL('%s', CHR(0)), saddr = %s, mask = %s, low = %s, high = %s, prefix = NVL('%s', CHR(0)), owner_type = '%s', owner_id = %d",
"update_subnet",
"usnt",
8,
- UPDATE,
+ MR_Q_UPDATE,
"s",
SUBNET_TABLE,
"subnet SET name = UPPER('%s'), description = NVL('%s', CHR(0)), status = %s, contact = NVL('%s', CHR(0)), account_number = NVL('%s', CHR(0)), saddr = %s, mask = %s, low = %s, high = %s, prefix = NVL('%s', CHR(0)), owner_type = '%s', owner_id = %d",
"delete_subnet",
"dsnt",
2,
- DELETE,
+ MR_Q_DELETE,
"s",
SUBNET_TABLE,
NULL,
"get_cluster",
"gclu",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"c",
CLUSTERS_TABLE,
"name, description, location, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM clusters",
"add_cluster",
"aclu",
2,
- APPEND,
+ MR_Q_APPEND,
"c",
CLUSTERS_TABLE,
"INTO clusters (name, description, location, clu_id) VALUES ('%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s)",
"update_cluster",
"uclu",
2,
- UPDATE,
+ MR_Q_UPDATE,
"c",
CLUSTERS_TABLE,
"clusters SET name = '%s', description = NVL('%s', CHR(0)), location = NVL('%s', CHR(0))",
"delete_cluster",
"dclu",
2,
- DELETE,
+ MR_Q_DELETE,
"c",
CLUSTERS_TABLE,
NULL,
"get_machine_to_cluster_map",
"gmcm",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"mcm",
MCMAP_TABLE,
"m.name, c.name FROM machine m, clusters c, mcmap mcm",
"add_machine_to_cluster",
"amtc",
2,
- APPEND,
+ MR_Q_APPEND,
"mcm",
MCMAP_TABLE,
"INTO mcmap (mach_id, clu_id) VALUES (%d, %d)",
"delete_machine_from_cluster",
"dmfc",
2,
- DELETE,
+ MR_Q_DELETE,
"mcm",
MCMAP_TABLE,
0,
"get_cluster_data",
"gcld",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"svc",
SVC_TABLE,
"c.name, svc.serv_label, svc.serv_cluster FROM svc svc, clusters c",
"add_cluster_data",
"acld",
2,
- APPEND,
+ MR_Q_APPEND,
"svc",
SVC_TABLE,
"INTO svc (clu_id, serv_label, serv_cluster) VALUES (%d, '%s', '%s')",
"delete_cluster_data",
"dcld",
2,
- DELETE,
+ MR_Q_DELETE,
"svc",
SVC_TABLE,
NULL,
"get_list_info",
"glin",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"l",
LIST_TABLE,
"name, active, publicflg, hidden, maillist, grouplist, gid, acl_type, acl_id, description, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM list",
"get_list_info",
"glin",
3,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"l",
LIST_TABLE,
"name, active, publicflg, hidden, maillist, grouplist, gid, nfsgroup, acl_type, acl_id, description, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM list",
"get_list_info",
"glin",
4,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"l",
LIST_TABLE,
"name, active, publicflg, hidden, maillist, grouplist, gid, nfsgroup, acl_type, acl_id, memacl_type, memacl_id, description, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM list",
"get_list_info",
"glin",
10,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"l",
LIST_TABLE,
"l.name, l.active, l.publicflg, l.hidden, l.maillist, l.grouplist, l.gid, l.nfsgroup, l.mailman, m.name, l.acl_type, l.acl_id, l.memacl_type, l.memacl_id, l.description, TO_CHAR(l.modtime, 'DD-mon-YYYY HH24:MI:SS'), l.modby, l.modwith FROM list l, machine m",
"expand_list_names",
"exln",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"l",
LIST_TABLE,
"name FROM list",
"add_list",
"alis",
2,
- APPEND,
+ MR_Q_APPEND,
"l",
LIST_TABLE,
"INTO list (name, active, publicflg, hidden, maillist, grouplist, gid, acl_type, acl_id, description, list_id) VALUES ('%s', %s, %s, %s, %s, %s, %s, '%s', %d, NVL('%s', CHR(0)), %s)",
"add_list",
"alis",
3,
- APPEND,
+ MR_Q_APPEND,
"l",
LIST_TABLE,
"INTO list (name, active, publicflg, hidden, maillist, grouplist, gid, nfsgroup, acl_type, acl_id, description, list_id) VALUES ('%s', %s, %s, %s, %s, %s, %s, %s, '%s', %d, NVL('%s', CHR(0)), %s)",
"add_list",
"alis",
4,
- APPEND,
+ MR_Q_APPEND,
"l",
LIST_TABLE,
"INTO list (name, active, publicflg, hidden, maillist, grouplist, gid, nfsgroup, acl_type, acl_id, memacl_type, memacl_id, description, list_id) VALUES ('%s', %s, %s, %s, %s, %s, %s, %s, '%s', %d, '%s', %d, NVL('%s', CHR(0)), %s)",
"add_list",
"alis",
10,
- APPEND,
+ MR_Q_APPEND,
"l",
LIST_TABLE,
"INTO list (name, active, publicflg, hidden, maillist, grouplist, gid, nfsgroup, mailman, mailman_id, acl_type, acl_id, memacl_type, memacl_id, description, list_id) VALUES ('%s', %s, %s, %s, %s, %s, %s, %s, %s, %d, '%s', %d, '%s', %d, NVL('%s', CHR(0)), %s)",
"update_list",
"ulis",
2,
- UPDATE,
+ MR_Q_UPDATE,
"l",
LIST_TABLE,
"list SET name = '%s', active = %s, publicflg = %s, hidden = %s, maillist = %s, grouplist = %s, gid = %s, acl_type = '%s', acl_id = %d, description = NVL('%s', CHR(0))",
"update_list",
"ulis",
3,
- UPDATE,
+ MR_Q_UPDATE,
"l",
LIST_TABLE,
"list SET name = '%s', active = %s, publicflg = %s, hidden = %s, maillist = %s, grouplist = %s, gid = %s, nfsgroup = %s, acl_type = '%s', acl_id = %d, description = NVL('%s', CHR(0))",
"update_list",
"ulis",
4,
- UPDATE,
+ MR_Q_UPDATE,
"l",
LIST_TABLE,
"list SET name = '%s', active = %s, publicflg = %s, hidden = %s, maillist = %s, grouplist = %s, gid = %s, nfsgroup = %s, acl_type = '%s', acl_id = %d, memacl_type = '%s', memacl_id = %d, description = NVL('%s', CHR(0))",
"update_list",
"ulis",
10,
- UPDATE,
+ MR_Q_UPDATE,
"l",
LIST_TABLE,
"list SET name = '%s', active = %s, publicflg = %s, hidden = %s, maillist = %s, grouplist = %s, gid = %s, nfsgroup = %s, mailman = %s, mailman_id = %d, acl_type = '%s', acl_id = %d, memacl_type = '%s', memacl_id = %d, description = NVL('%s', CHR(0))",
"delete_list",
"dlis",
2,
- DELETE,
+ MR_Q_DELETE,
"l",
LIST_TABLE,
NULL,
"add_member_to_list",
"amtl",
2,
- APPEND,
+ MR_Q_APPEND,
0,
IMEMBERS_TABLE,
0,
"add_tagged_member_to_list",
"atml",
2,
- APPEND,
+ MR_Q_APPEND,
0,
IMEMBERS_TABLE,
0,
"tag_member_of_list",
"tmol",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
IMEMBERS_TABLE,
0,
"delete_member_from_list",
"dmfl",
2,
- DELETE,
+ MR_Q_DELETE,
0,
IMEMBERS_TABLE,
NULL,
"get_ace_use",
"gaus",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
0,
0,
"get_host_by_owner",
"ghbo",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
0,
0,
"qualified_get_lists",
"qgli",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
LIST_TABLE,
0,
"get_members_of_list",
"gmol",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
NULL,
IMEMBERS_TABLE,
NULL,
"get_end_members_of_list",
"geml",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
NULL,
IMEMBERS_TABLE,
NULL,
"get_tagged_members_of_list",
"gtml",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
NULL,
IMEMBERS_TABLE,
NULL,
"get_lists_of_member",
"glom",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
IMEMBERS_TABLE,
0,
"count_members_of_list",
"cmol",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
IMEMBERS_TABLE,
0,
"get_server_info",
"gsin",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"s",
SERVERS_TABLE,
"name, update_int, target_file, script, dfgen, dfcheck, type, enable, inprogress, harderror, errmsg, acl_type, acl_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM servers",
"qualified_get_server",
"qgsv",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
SERVERS_TABLE,
0,
"add_server_info",
"asin",
2,
- APPEND,
+ MR_Q_APPEND,
"s",
SERVERS_TABLE,
"INTO servers (name, update_int, target_file, script, type, enable, acl_type, acl_id) VALUES (UPPER('%s'), %s, '%s', '%s', '%s', %s, '%s', %d)",
"update_server_info",
"usin",
2,
- UPDATE,
+ MR_Q_UPDATE,
"s",
SERVERS_TABLE,
"servers SET update_int = %s, target_file = '%s', script = '%s', type = '%s', enable = %s, acl_type = '%s', acl_id = %d",
"reset_server_error",
"rsve",
2,
- UPDATE,
+ MR_Q_UPDATE,
"s",
SERVERS_TABLE,
"servers SET harderror = 0, dfcheck = dfgen",
"set_server_internal_flags",
"ssif",
2,
- UPDATE,
+ MR_Q_UPDATE,
"s",
SERVERS_TABLE,
"servers SET dfgen = %s, dfcheck = %s, inprogress = %s, harderror = %s, errmsg = NVL('%s', CHR(0))",
"delete_server_info",
"dsin",
2,
- DELETE,
+ MR_Q_DELETE,
"s",
SERVERS_TABLE,
NULL,
"get_server_host_info",
"gshi",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"sh",
SERVERHOSTS_TABLE,
"sh.service, m.name, sh.enable, sh.override, sh.success, sh.inprogress, sh.hosterror, sh.hosterrmsg, sh.ltt, sh.lts, sh.value1, sh.value2, sh.value3, TO_CHAR(sh.modtime, 'DD-mon-YYYY HH24:MI:SS'), sh.modby, sh.modwith FROM serverhosts sh, machine m",
"qualified_get_server_host",
"qgsh",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
0,
SERVERHOSTS_TABLE,
0,
"add_server_host_info",
"ashi",
2,
- APPEND,
+ MR_Q_APPEND,
"sh",
SERVERHOSTS_TABLE,
"INTO serverhosts (service, mach_id, enable, value1, value2, value3) VALUES (UPPER('%s'), %d, %s, %s, %s, NVL('%s', CHR(0)))",
"update_server_host_info",
"ushi",
2,
- UPDATE,
+ MR_Q_UPDATE,
"sh",
SERVERHOSTS_TABLE,
"serverhosts SET enable = %s, value1 = %s, value2 = %s, value3 = NVL('%s', CHR(0))",
"reset_server_host_error",
"rshe",
2,
- UPDATE,
+ MR_Q_UPDATE,
"sh",
SERVERHOSTS_TABLE,
"serverhosts SET hosterror = 0",
"set_server_host_override",
"ssho",
2,
- UPDATE,
+ MR_Q_UPDATE,
"sh",
SERVERHOSTS_TABLE,
"serverhosts SET override = 1",
"set_server_host_internal",
"sshi",
2,
- UPDATE,
+ MR_Q_UPDATE,
"s",
SERVERHOSTS_TABLE,
"serverhosts SET override = %s, success = %s, inprogress = %s, hosterror = %s, hosterrmsg = NVL('%s', CHR(0)), ltt = %s, lts = %s",
"delete_server_host_info",
"dshi",
2,
- DELETE,
+ MR_Q_DELETE,
"sh",
SERVERHOSTS_TABLE,
NULL,
"get_server_locations",
"gslo",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"sh",
SERVERHOSTS_TABLE,
"sh.service, m.name FROM serverhosts sh, machine m",
"get_filesys_by_label",
"gfsl",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"fs",
FILESYS_TABLE,
"fs.label, fs.type, m.name, fs.name, fs.mount, fs.rwaccess, fs.comments, u.login, l.name, fs.createflg, fs.lockertype, TO_CHAR(fs.modtime, 'DD-mon-YYYY HH24:MI:SS'), fs.modby, fs.modwith FROM filesys fs, machine m, users u, list l",
"get_filesys_by_machine",
"gfsm",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"fs",
FILESYS_TABLE,
"fs.label, fs.type, m.name, fs.name, fs.mount, fs.rwaccess, fs.comments, u.login, l.name, fs.createflg, fs.lockertype, TO_CHAR(fs.modtime, 'DD-mon-YYYY HH24:MI:SS'), fs.modby, fs.modwith FROM filesys fs, machine m, users u, list l",
"get_filesys_by_nfsphys",
"gfsn",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"fs",
FILESYS_TABLE,
"fs.label, fs.type, m.name, fs.name, fs.mount, fs.rwaccess, fs.comments, u.login, l.name, fs.createflg, fs.lockertype, TO_CHAR(fs.modtime, 'DD-mon-YYYY HH24:MI:SS'), fs.modby, fs.modwith FROM filesys fs, machine m, users u, list l, nfsphys np",
"get_filesys_by_group",
"gfsg",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"fs",
FILESYS_TABLE,
"fs.label, fs.type, m.name, fs.name, fs.mount, fs.rwaccess, fs.comments, u.login, l.name, fs.createflg, fs.lockertype, TO_CHAR(fs.modtime, 'DD-mon-YYYY HH24:MI:SS'), fs.modby, fs.modwith FROM filesys fs, machine m, users u, list l",
"get_filesys_by_path",
"gfsp",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"fs",
FILESYS_TABLE,
"fs.label, fs.type, m.name, fs.name, fs.mount, fs.rwaccess, fs.comments, u.login, l.name, fs.createflg, fs.lockertype, TO_CHAR(fs.modtime, 'DD-mon-YYYY HH24:MI:SS'), fs.modby, fs.modwith FROM filesys fs, machine m, users u, list l",
"add_filesys",
"afil",
2,
- APPEND,
+ MR_Q_APPEND,
"fs",
FILESYS_TABLE,
"INTO filesys (label, type, mach_id, name, mount, rwaccess, comments, owner, owners, createflg, lockertype, filsys_id) VALUES ('%s', '%s', %d, NVL('%s', CHR(0)), NVL('%s', CHR(0)), '%s', NVL('%s', CHR(0)), %d, %d, %s, '%s', %s)",
"update_filesys",
"ufil",
2,
- UPDATE,
+ MR_Q_UPDATE,
"fs",
FILESYS_TABLE,
"filesys SET label = '%s', type = '%s', mach_id = %d, name = NVL('%s', CHR(0)), mount = NVL('%s', CHR(0)), rwaccess = '%s', comments = NVL('%s', CHR(0)), owner = %d, owners = %d, createflg = %s, lockertype = '%s'",
"delete_filesys",
"dfil",
2,
- DELETE,
+ MR_Q_DELETE,
"fs",
FILESYS_TABLE,
NULL,
"get_fsgroup_members",
"gfgm",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"fg",
FSGROUP_TABLE,
"fs.label, fg.key FROM fsgroup fg, filesys fs",
"add_filesys_to_fsgroup",
"aftg",
2,
- APPEND,
+ MR_Q_APPEND,
"fg",
FSGROUP_TABLE,
"INTO fsgroup (group_id, filsys_id, key) VALUES (%d, %d, '%s')",
"remove_filesys_from_fsgroup",
"rffg",
2,
- DELETE,
+ MR_Q_DELETE,
"fg",
FSGROUP_TABLE,
NULL,
"get_all_nfsphys",
"ganf",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"np",
NFSPHYS_TABLE,
"m.name, np.dir, np.device, np.status, np.allocated, np.partsize, TO_CHAR(np.modtime, 'DD-mon-YYYY HH24:MI:SS'), np.modby, np.modwith FROM nfsphys np, machine m",
"get_nfsphys",
"gnfp",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"np",
NFSPHYS_TABLE,
"m.name, np.dir, np.device, np.status, np.allocated, np.partsize, TO_CHAR(np.modtime, 'DD-mon-YYYY HH24:MI:SS'), np.modby, np.modwith FROM nfsphys np, machine m",
"add_nfsphys",
"anfp",
2,
- APPEND,
+ MR_Q_APPEND,
"np",
NFSPHYS_TABLE,
"INTO nfsphys (mach_id, dir, device, status, allocated, partsize, nfsphys_id) VALUES (%d, '%s', NVL('%s', CHR(0)), %s, %s, %s, %s)",
"update_nfsphys",
"unfp",
2,
- UPDATE,
+ MR_Q_UPDATE,
"np",
NFSPHYS_TABLE,
"nfsphys SET device = NVL('%s', CHR(0)), status = %s, allocated = %s, partsize = %s",
"adjust_nfsphys_allocation",
"ajnf",
2,
- UPDATE,
+ MR_Q_UPDATE,
"np",
NFSPHYS_TABLE,
"nfsphys SET allocated = allocated + %s",
"delete_nfsphys",
"dnfp",
2,
- DELETE,
+ MR_Q_DELETE,
"np",
NFSPHYS_TABLE,
NULL,
"get_quota",
"gqot",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"q",
QUOTA_TABLE,
"fs.label, q.type, q.entity_id, q.quota, q.phys_id, m.name, TO_CHAR(q.modtime, 'DD-mon-YYYY HH24:MI:SS'), q.modby, q.modwith FROM quota q, filesys fs, machine m",
"get_quota_by_filesys",
"gqbf",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"q",
QUOTA_TABLE,
"fs.label, q.type, q.entity_id, q.quota, q.phys_id, m.name, TO_CHAR(q.modtime, 'DD-mon-YYYY HH24:MI:SS'), q.modby, q.modwith FROM quota q, filesys fs, machine m",
"add_quota",
"aqot",
2,
- APPEND,
+ MR_Q_APPEND,
0,
QUOTA_TABLE,
"INTO quota (filsys_id, type, entity_id, quota, phys_id) VALUES ('%s', %d, %d, %s, %s)",
"update_quota",
"uqot",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
QUOTA_TABLE,
"quota SET quota = %s",
"delete_quota",
"dqot",
2,
- DELETE,
+ MR_Q_DELETE,
0,
QUOTA_TABLE,
NULL,
"get_nfs_quota",
"gnfq",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"q",
QUOTA_TABLE,
"fs.label, u.login, q.quota, q.phys_id, m.name, TO_CHAR(q.modtime, 'DD-mon-YYYY HH24:MI:SS'), q.modby, q.modwith FROM quota q, filesys fs, users u, machine m",
"get_nfs_quotas_by_partition",
"gnqp",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"q",
QUOTA_TABLE,
"fs.label, u.login, q.quota, np.dir, m.name FROM quota q, filesys fs, users u, nfsphys np, machine m",
"add_nfs_quota",
"anfq",
2,
- APPEND,
+ MR_Q_APPEND,
0,
QUOTA_TABLE,
"INTO quota (type, filsys_id, entity_id, quota, phys_id ) VALUES ('USER', %d, %d, %s, %s)",
"update_nfs_quota",
"unfq",
2,
- UPDATE,
+ MR_Q_UPDATE,
0,
QUOTA_TABLE,
"quota SET quota = %s",
"delete_nfs_quota",
"dnfq",
2,
- DELETE,
+ MR_Q_DELETE,
0,
QUOTA_TABLE,
NULL,
"get_zephyr_class",
"gzcl",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"z",
ZEPHYR_TABLE,
"class, xmt_type, xmt_id, sub_type, sub_id, iws_type, iws_id, iui_type, iui_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM zephyr",
"get_zephyr_class",
"gzcl",
5,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"z",
ZEPHYR_TABLE,
"class, xmt_type, xmt_id, sub_type, sub_id, iws_type, iws_id, iui_type, iui_id, owner_type, owner_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM zephyr",
"add_zephyr_class",
"azcl",
2,
- APPEND,
+ MR_Q_APPEND,
"z",
ZEPHYR_TABLE,
"INTO zephyr (class, xmt_type, xmt_id, sub_type, sub_id, iws_type, iws_id, iui_type, iui_id) VALUES ('%s', '%s', %d, '%s', %d, '%s', %d, '%s', %d)",
"add_zephyr_class",
"azcl",
5,
- APPEND,
+ MR_Q_APPEND,
"z",
ZEPHYR_TABLE,
"INTO zephyr (class, xmt_type, xmt_id, sub_type, sub_id, iws_type, iws_id, iui_type, iui_id, owner_type, owner_id) VALUES ('%s', '%s', %d, '%s', %d, '%s', %d, '%s', %d, '%s', %d)",
"update_zephyr_class",
"uzcl",
2,
- UPDATE,
+ MR_Q_UPDATE,
"z",
ZEPHYR_TABLE,
"zephyr SET class = '%s', xmt_type = '%s', xmt_id = %d, sub_type = '%s', sub_id = %d, iws_type = '%s', iws_id = %d, iui_type = '%s', iui_id = %d",
"update_zephyr_class",
"uzcl",
5,
- UPDATE,
+ MR_Q_UPDATE,
"z",
ZEPHYR_TABLE,
"zephyr SET class = '%s', xmt_type = '%s', xmt_id = %d, sub_type = '%s', sub_id = %d, iws_type = '%s', iws_id = %d, iui_type = '%s', iui_id = %d, owner_type = '%s', owner_id = %d",
"delete_zephyr_class",
"dzcl",
2,
- DELETE,
+ MR_Q_DELETE,
"z",
ZEPHYR_TABLE,
0,
"get_server_host_access",
"gsha",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"ha",
HOSTACCESS_TABLE,
"m.name, ha.acl_type, ha.acl_id, TO_CHAR(ha.modtime, 'DD-mon-YYYY HH24:MI:SS'), ha.modby, ha.modwith FROM hostaccess ha, machine m",
"add_server_host_access",
"asha",
2,
- APPEND,
+ MR_Q_APPEND,
"ha",
HOSTACCESS_TABLE,
"INTO hostaccess (mach_id, acl_type, acl_id) VALUES (%d, '%s', %d)",
"update_server_host_access",
"usha",
2,
- UPDATE,
+ MR_Q_UPDATE,
"ha",
HOSTACCESS_TABLE,
"hostaccess SET acl_type = '%s', acl_id = %d",
"delete_server_host_access",
"dsha",
2,
- DELETE,
+ MR_Q_DELETE,
"ha",
HOSTACCESS_TABLE,
0,
"get_acl",
"gacl",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"ac",
ACL_TABLE,
"m.name, ac.target, ac.kind, l.name FROM acl ac, machine m, list l",
"add_acl",
"aacl",
2,
- APPEND,
+ MR_Q_APPEND,
"ac",
ACL_TABLE,
"INTO acl (mach_id, target, kind, list_id) VALUES (%d, '%s', '%s', %d)",
"delete_acl",
"dacl",
2,
- DELETE,
+ MR_Q_DELETE,
"ac",
ACL_TABLE,
0,
"get_service",
"gsvc",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"ss",
SERVICES_TABLE,
"name, protocol, port, description, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM services",
"add_service",
"asvc",
2,
- APPEND,
+ MR_Q_APPEND,
"ss",
SERVICES_TABLE,
"INTO services (name, protocol, port, description) VALUES ('%s', '%s', %s, NVL('%s', CHR(0)))",
"delete_service",
"dsvc",
2,
- DELETE,
+ MR_Q_DELETE,
"ss",
SERVICES_TABLE,
0,
"get_printer",
"gprn",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"get_printer_by_duplexname",
"gpbd",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"get_printer_by_ethernet",
"gpbe",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"get_printer_by_hostname",
"gpbh",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"get_printer_by_rm",
"gpbr",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"get_printer_by_location",
"gpbl",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"get_printer_by_contact",
"gpbc",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"pr",
PRINTERS_TABLE,
"pr.name, pr.type, pr.hwtype, pr.duplexname, m1.name, m2.name, m3.name, pr.rp, m4.name, pr.ka, pr.pc, l1.name, l2.name, pr.banner, pr.location, pr.contact, TO_CHAR(pr.modtime, 'DD-mon-YYYY HH24:MI:SS'), pr.modby, pr.modwith FROM printers pr, machine m1, machine m2, machine m3, machine m4, list l1, list l2",
"add_printer",
"aprn",
2,
- APPEND,
+ MR_Q_APPEND,
"pr",
PRINTERS_TABLE,
"INTO printers (name, type, hwtype, duplexname, mach_id, loghost, rm, rp, rq, ka, pc, ac, lpc_acl, banner, location, contact) VALUES ('%s', '%s', '%s', NVL('%s', CHR(0)), %d, %d, %d, NVL('%s', CHR(0)), %d, %s, %s, %d, %d, %s, NVL('%s', CHR(0)), NVL('%s', CHR(0)))",
"update_printer",
"uprn",
2,
- UPDATE,
+ MR_Q_UPDATE,
"pr",
PRINTERS_TABLE,
- "printers SET name = '%s', type = '%s', hwtype = '%s', duplexname = NVL('%s', CHR(0)), mach_id = %d, loghost = %d, rm = %d, rp = NVL('%s', CHR(0)), rq = %d, ka = %d, pc = %d, ac = %d, lpc_acl = %d, banner = %d, location = NVL('%s', CHR(0)), contact = NVL('%s', CHR(0))",
+ "printers SET name = '%s', type = '%s', hwtype = '%s', duplexname = NVL('%s', CHR(0)), mach_id = %d, loghost = %d, rm = %d, rp = NVL('%s', CHR(0)), rq = %d, ka = %s, pc = %s, ac = %d, lpc_acl = %d, banner = %s, location = NVL('%s', CHR(0)), contact = NVL('%s', CHR(0))",
uprn_fields,
16,
- 0,
- 0,
+ "name = '%s'",
+ 1,
NULL,
&uprn_validate,
},
"delete_printer",
"dprn",
2,
- DELETE,
+ MR_Q_DELETE,
"pr",
PRINTERS_TABLE,
0,
"get_print_server",
"gpsv",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"ps",
PRINTSERVERS_TABLE,
"m.name, ps.kind, s.string, ps.owner_type, ps.owner_id, l.name, TO_CHAR(ps.modtime, 'DD-mon-YYYY HH24:MI:SS'), ps.modby, ps.modwith FROM printservers ps, machine m, strings s, list l",
"add_print_server",
"apsv",
2,
- APPEND,
+ MR_Q_APPEND,
"ps",
PRINTSERVERS_TABLE,
"INTO printservers (mach_id, kind, printer_types, owner_type, owner_id, lpc_acl) VALUES (%d, '%s', %d, '%s', %d, %d)",
"update_print_server",
"upsv",
2,
- UPDATE,
+ MR_Q_UPDATE,
"ps",
PRINTSERVERS_TABLE,
"printservers SET kind = '%s', printer_types = %d, owner_type = '%s', owner_id = %d, lpc_acl = %d",
"delete_print_server",
"dpsv",
2,
- DELETE,
+ MR_Q_DELETE,
"ps",
PRINTSERVERS_TABLE,
0,
"get_alias",
"gali",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"a",
ALIAS_TABLE,
"name, type, trans FROM alias",
"add_alias",
"aali",
2,
- APPEND,
+ MR_Q_APPEND,
"a",
ALIAS_TABLE,
"INTO alias (name, type, trans) VALUES ('%s', '%s', '%s')",
"delete_alias",
"dali",
2,
- DELETE,
+ MR_Q_DELETE,
"a",
ALIAS_TABLE,
NULL,
"get_value",
"gval",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"val",
NUMVALUES_TABLE,
"value FROM numvalues",
"add_value",
"aval",
2,
- APPEND,
+ MR_Q_APPEND,
"val",
NUMVALUES_TABLE,
"INTO numvalues (name, value) VALUES ('%s', %s)",
"update_value",
"uval",
2,
- UPDATE,
+ MR_Q_UPDATE,
"val",
NUMVALUES_TABLE,
"numvalues SET value = %s",
"delete_value",
"dval",
2,
- DELETE,
+ MR_Q_DELETE,
"val",
NUMVALUES_TABLE,
NULL,
"get_all_table_stats",
"gats",
2,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"tbs",
TBLSTATS_TABLE,
"table_name, appends, updates, deletes, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS') FROM tblstats",
"_set_debug_level",
"_sdl",
2,
- UPDATE,
+ MR_Q_UPDATE,
NULL,
0,
NULL,
"get_container",
"gcon",
7,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"c",
CONTAINERS_TABLE,
"name, description, location, contact, acl_type, acl_id, memacl_type, memacl_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM containers",
"get_container",
"gcon",
9,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"c",
CONTAINERS_TABLE,
"name, publicflg, description, location, contact, acl_type, acl_id, memacl_type, memacl_id, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS'), modby, modwith FROM containers",
"add_container",
"acon",
7,
- APPEND,
+ MR_Q_APPEND,
"c",
CONTAINERS_TABLE,
"INTO containers (name, description, location, contact, acl_type, acl_id, memacl_type, memacl_id, cnt_id) VALUES ('%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), '%s', %d, '%s', %d, %s)",
"add_container",
"acon",
9,
- APPEND,
+ MR_Q_APPEND,
"c",
CONTAINERS_TABLE,
"INTO containers (name, publicflg, description, location, contact, acl_type, acl_id, memacl_type, memacl_id, cnt_id) VALUES ('%s', %s, NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), '%s', %d, '%s', %d, %s)",
"update_container",
"ucon",
7,
- UPDATE,
+ MR_Q_UPDATE,
0,
CONTAINERS_TABLE,
0,
"update_container",
"ucon",
9,
- UPDATE,
+ MR_Q_UPDATE,
0,
CONTAINERS_TABLE,
0,
"delete_container",
"dcon",
7,
- DELETE,
+ MR_Q_DELETE,
"c",
CONTAINERS_TABLE,
NULL,
"add_machine_to_container",
"amcn",
7,
- APPEND,
+ MR_Q_APPEND,
"mcn",
MCNTMAP_TABLE,
"INTO mcntmap (mach_id, cnt_id) VALUES (%d, %d)",
"delete_machine_from_container",
"dmcn",
7,
- DELETE,
+ MR_Q_DELETE,
"mcn",
MCNTMAP_TABLE,
0,
"get_machine_to_container_map",
"gmnm",
7,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"mcn",
MCNTMAP_TABLE,
"m.name, c.name FROM machine m, containers c, mcntmap mcn",
"get_machines_of_container",
"gmoc",
7,
- RETRIEVE,
+ MR_Q_RETRIEVE,
NULL,
MCNTMAP_TABLE,
NULL,
"get_subcontainers_of_container",
"gsoc",
7,
- RETRIEVE,
+ MR_Q_RETRIEVE,
NULL,
CONTAINERS_TABLE,
NULL,
"get_toplevel_containers",
"gtlc",
7,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"c",
CONTAINERS_TABLE,
"name FROM containers",
"set_container_list",
"scli",
9,
- UPDATE,
+ MR_Q_UPDATE,
0,
CONTAINERS_TABLE,
0,
"get_container_list",
"gcli",
9,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"c",
CONTAINERS_TABLE,
"c.name, l.name FROM containers c, list l",
"get_list_container",
"glic",
9,
- RETRIEVE,
+ MR_Q_RETRIEVE,
"c",
CONTAINERS_TABLE,
"c.name, l.name FROM containers c, list l",