Lines Matching full:handle
35 static int gss_to_krb5_name(kadm5_server_handle_t handle,
70 * Purpose: Check a server handle and return a com_err code if it is
75 * handle The server handle.
78 static int check_handle(void *handle) in check_handle() argument
80 CHECK_HANDLE(handle); in check_handle()
87 * Purpose: Constructs a server handle suitable for passing into the
89 * and calling principal into the server handle returned by
95 * handle (output) The returned handle
100 * handle. If an error occurs, then no allocated storage is
104 * The allocated storage for the handle should be freed with
113 kadm5_server_handle_t handle; in new_server_handle() local
117 if (! (handle = (kadm5_server_handle_t) in new_server_handle()
118 malloc(sizeof(*handle)))) in new_server_handle()
121 *handle = *(kadm5_server_handle_t)global_server_handle; in new_server_handle()
122 handle->api_version = api_version; in new_server_handle()
124 if (! gss_to_krb5_name(handle, rqst2name(rqstp), in new_server_handle()
125 &handle->current_caller)) { in new_server_handle()
126 free(handle); in new_server_handle()
130 *out_handle = handle; in new_server_handle()
137 * Purpose: Free handle memory allocated by new_server_handle
140 * handle (input/output) The handle to free
142 static void free_server_handle(kadm5_server_handle_t handle) in free_server_handle() argument
144 if (!handle) in free_server_handle()
146 krb5_free_principal(handle->context, handle->current_caller); in free_server_handle()
147 free(handle); in free_server_handle()
219 static int gss_to_krb5_name(kadm5_server_handle_t handle, in gss_to_krb5_name() argument
235 success = (krb5_parse_name(handle->context, s, princ) == 0); in gss_to_krb5_name()
308 stub_cleanup(kadm5_server_handle_t handle, char *princ_str, in stub_cleanup() argument
313 auth_end(handle->context); in stub_cleanup()
314 free_server_handle(handle); in stub_cleanup()
321 stub_auth(kadm5_server_handle_t handle, int opcode, krb5_const_principal p1, in stub_auth() argument
324 return auth(handle->context, opcode, handle->current_caller, p1, p2, in stub_auth()
329 stub_auth_pol(kadm5_server_handle_t handle, int opcode, const char *policy, in stub_auth_pol() argument
332 return auth(handle->context, opcode, handle->current_caller, NULL, NULL, in stub_auth_pol()
337 stub_auth_restrict(kadm5_server_handle_t handle, int opcode, in stub_auth_restrict() argument
341 return auth_restrict(handle->context, opcode, handle->current_caller, in stub_auth_restrict()
348 changepw_not_self(kadm5_server_handle_t handle, struct svc_req *rqstp, in changepw_not_self() argument
352 !krb5_principal_compare(handle->context, handle->current_caller, in changepw_not_self()
371 check_self_keychange(kadm5_server_handle_t handle, struct svc_req *rqstp, in check_self_keychange() argument
374 if (!krb5_principal_compare(handle->context, handle->current_caller, in check_self_keychange()
381 return check_min_life(handle, princ, NULL, 0); in check_self_keychange()
392 clamp_self_keepold(kadm5_server_handle_t handle, krb5_principal princ, in clamp_self_keepold() argument
397 if (krb5_principal_compare(handle->context, handle->current_caller, princ)) in clamp_self_keepold()
468 kadm5_server_handle_t handle; in create_principal_2_svc() local
472 &handle, &ret->api_version, &client_name, in create_principal_2_svc()
478 !stub_auth_restrict(handle, OP_ADDPRINC, arg->rec.principal, in create_principal_2_svc()
484 ret->code = kadm5_create_principal(handle, &arg->rec, arg->mask, in create_principal_2_svc()
488 errmsg = krb5_get_error_message(handle->context, ret->code); in create_principal_2_svc()
494 krb5_free_error_message(handle->context, errmsg); in create_principal_2_svc()
498 stub_cleanup(handle, prime_arg, &client_name, &service_name); in create_principal_2_svc()
509 kadm5_server_handle_t handle; in create_principal3_2_svc() local
513 &handle, &ret->api_version, &client_name, in create_principal3_2_svc()
519 !stub_auth_restrict(handle, OP_ADDPRINC, arg->rec.principal, &arg->rec, in create_principal3_2_svc()
525 ret->code = kadm5_create_principal_3(handle, &arg->rec, arg->mask, in create_principal3_2_svc()
529 errmsg = krb5_get_error_message(handle->context, ret->code); in create_principal3_2_svc()
535 krb5_free_error_message(handle->context, errmsg); in create_principal3_2_svc()
539 stub_cleanup(handle, prime_arg, &client_name, &service_name); in create_principal3_2_svc()
551 check_lockdown_by_princ(kadm5_server_handle_t handle, krb5_principal princ) in check_lockdown_by_princ() argument
556 ret = kadm5_get_principal(handle, princ, &rec, KADM5_ATTRIBUTES); in check_lockdown_by_princ()
560 kadm5_free_principal_ent(handle, &rec); in check_lockdown_by_princ()
571 kadm5_server_handle_t handle; in delete_principal_2_svc() local
574 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in delete_principal_2_svc()
581 !stub_auth(handle, OP_DELPRINC, arg->princ, NULL, NULL, NULL)) { in delete_principal_2_svc()
586 ret->code = check_lockdown_by_princ(handle, arg->princ); in delete_principal_2_svc()
595 ret->code = kadm5_delete_principal(handle, arg->princ); in delete_principal_2_svc()
598 errmsg = krb5_get_error_message(handle->context, ret->code); in delete_principal_2_svc()
604 krb5_free_error_message(handle->context, errmsg); in delete_principal_2_svc()
609 stub_cleanup(handle, prime_arg, &client_name, &service_name); in delete_principal_2_svc()
621 kadm5_server_handle_t handle; in modify_principal_2_svc() local
625 &handle, &ret->api_version, &client_name, in modify_principal_2_svc()
631 !stub_auth_restrict(handle, OP_MODPRINC, rec.principal, &arg->rec, in modify_principal_2_svc()
651 ret->code = kadm5_modify_principal(handle, &rec_copy, arg->mask); in modify_principal_2_svc()
653 errmsg = krb5_get_error_message(handle->context, ret->code); in modify_principal_2_svc()
659 krb5_free_error_message(handle->context, errmsg); in modify_principal_2_svc()
663 kadm5_free_principal_ent(handle, &rec); in modify_principal_2_svc()
664 stub_cleanup(handle, prime_arg, &client_name, &service_name); in modify_principal_2_svc()
675 kadm5_server_handle_t handle; in rename_principal_2_svc() local
680 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in rename_principal_2_svc()
686 if (krb5_unparse_name(handle->context, arg->src, &prime_arg1) || in rename_principal_2_svc()
687 krb5_unparse_name(handle->context, arg->dest, &prime_arg2)) { in rename_principal_2_svc()
701 !stub_auth(handle, OP_RENPRINC, arg->src, arg->dest, NULL, NULL)) { in rename_principal_2_svc()
706 ret->code = check_lockdown_by_princ(handle, arg->src); in rename_principal_2_svc()
725 ret->code = kadm5_rename_principal(handle, arg->src, arg->dest); in rename_principal_2_svc()
727 errmsg = krb5_get_error_message(handle->context, ret->code); in rename_principal_2_svc()
742 krb5_free_error_message(handle->context, errmsg); in rename_principal_2_svc()
748 stub_cleanup(handle, NULL, &client_name, &service_name); in rename_principal_2_svc()
759 kadm5_server_handle_t handle; in get_principal_2_svc() local
762 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in get_principal_2_svc()
770 if (changepw_not_self(handle, rqstp, rec.principal) || in get_principal_2_svc()
771 !stub_auth(handle, OP_GETPRINC, rec.principal, NULL, NULL, NULL)) { in get_principal_2_svc()
776 ret->code = kadm5_get_principal(handle, rec.principal, &ret->rec, in get_principal_2_svc()
780 errmsg = krb5_get_error_message(handle->context, ret->code); in get_principal_2_svc()
786 krb5_free_error_message(handle->context, errmsg); in get_principal_2_svc()
790 kadm5_free_principal_ent(handle, &rec); in get_principal_2_svc()
791 stub_cleanup(handle, prime_arg, &client_name, &service_name); in get_principal_2_svc()
801 kadm5_server_handle_t handle; in get_princs_2_svc() local
804 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in get_princs_2_svc()
815 !stub_auth(handle, OP_LISTPRINCS, NULL, NULL, NULL, NULL)) { in get_princs_2_svc()
820 ret->code = kadm5_get_principals(handle, arg->exp, &ret->princs, in get_princs_2_svc()
823 errmsg = krb5_get_error_message(handle->context, ret->code); in get_princs_2_svc()
829 krb5_free_error_message(handle->context, errmsg); in get_princs_2_svc()
834 stub_cleanup(handle, NULL, &client_name, &service_name); in get_princs_2_svc()
846 kadm5_server_handle_t handle; in chpass_principal_2_svc() local
849 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in chpass_principal_2_svc()
862 } else if (changepw_not_self(handle, rqstp, rec.principal) || in chpass_principal_2_svc()
863 !stub_auth(handle, OP_CPW, rec.principal, NULL, NULL, NULL)) { in chpass_principal_2_svc()
868 ret->code = check_self_keychange(handle, rqstp, rec.principal); in chpass_principal_2_svc()
870 ret->code = kadm5_chpass_principal(handle, rec.principal, in chpass_principal_2_svc()
877 errmsg = krb5_get_error_message(handle->context, ret->code); in chpass_principal_2_svc()
883 krb5_free_error_message(handle->context, errmsg); in chpass_principal_2_svc()
887 kadm5_free_principal_ent(handle, &rec); in chpass_principal_2_svc()
888 stub_cleanup(handle, prime_arg, &client_name, &service_name); in chpass_principal_2_svc()
901 kadm5_server_handle_t handle; in chpass_principal3_2_svc() local
904 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in chpass_principal3_2_svc()
917 } else if (changepw_not_self(handle, rqstp, rec.principal) || in chpass_principal3_2_svc()
918 !stub_auth(handle, OP_CPW, rec.principal, NULL, NULL, NULL)) { in chpass_principal3_2_svc()
923 ret->code = check_self_keychange(handle, rqstp, rec.principal); in chpass_principal3_2_svc()
925 keepold = clamp_self_keepold(handle, rec.principal, arg->keepold); in chpass_principal3_2_svc()
926 ret->code = kadm5_chpass_principal_3(handle, rec.principal, in chpass_principal3_2_svc()
934 errmsg = krb5_get_error_message(handle->context, ret->code); in chpass_principal3_2_svc()
940 krb5_free_error_message(handle->context, errmsg); in chpass_principal3_2_svc()
944 kadm5_free_principal_ent(handle, &rec); in chpass_principal3_2_svc()
945 stub_cleanup(handle, prime_arg, &client_name, &service_name); in chpass_principal3_2_svc()
957 kadm5_server_handle_t handle; in setkey_principal_2_svc() local
960 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in setkey_principal_2_svc()
974 stub_auth(handle, OP_SETKEY, rec.principal, NULL, NULL, NULL)) { in setkey_principal_2_svc()
975 ret->code = kadm5_setkey_principal(handle, rec.principal, in setkey_principal_2_svc()
985 errmsg = krb5_get_error_message(handle->context, ret->code); in setkey_principal_2_svc()
991 krb5_free_error_message(handle->context, errmsg); in setkey_principal_2_svc()
995 kadm5_free_principal_ent(handle, &rec); in setkey_principal_2_svc()
996 stub_cleanup(handle, prime_arg, &client_name, &service_name); in setkey_principal_2_svc()
1009 kadm5_server_handle_t handle; in setkey_principal3_2_svc() local
1012 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in setkey_principal3_2_svc()
1026 stub_auth(handle, OP_SETKEY, rec.principal, NULL, NULL, NULL)) { in setkey_principal3_2_svc()
1027 keepold = clamp_self_keepold(handle, rec.principal, arg->keepold); in setkey_principal3_2_svc()
1028 ret->code = kadm5_setkey_principal_3(handle, rec.principal, keepold, in setkey_principal3_2_svc()
1039 errmsg = krb5_get_error_message(handle->context, ret->code); in setkey_principal3_2_svc()
1045 krb5_free_error_message(handle->context, errmsg); in setkey_principal3_2_svc()
1049 kadm5_free_principal_ent(handle, &rec); in setkey_principal3_2_svc()
1050 stub_cleanup(handle, prime_arg, &client_name, &service_name); in setkey_principal3_2_svc()
1063 kadm5_server_handle_t handle; in setkey_principal4_2_svc() local
1066 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in setkey_principal4_2_svc()
1080 stub_auth(handle, OP_SETKEY, rec.principal, NULL, NULL, NULL)) { in setkey_principal4_2_svc()
1081 keepold = clamp_self_keepold(handle, rec.principal, arg->keepold); in setkey_principal4_2_svc()
1082 ret->code = kadm5_setkey_principal_4(handle, rec.principal, keepold, in setkey_principal4_2_svc()
1092 errmsg = krb5_get_error_message(handle->context, ret->code); in setkey_principal4_2_svc()
1098 krb5_free_error_message(handle->context, errmsg); in setkey_principal4_2_svc()
1102 kadm5_free_principal_ent(handle, &rec); in setkey_principal4_2_svc()
1103 stub_cleanup(handle, prime_arg, &client_name, &service_name); in setkey_principal4_2_svc()
1110 chrand_check_lockdown(kadm5_server_handle_t handle, kadm5_principal_ent_t rec, in chrand_check_lockdown() argument
1121 krb5_free_keyblock_contents(handle->context, &((*keys)[i])); in chrand_check_lockdown()
1137 kadm5_server_handle_t handle; in chrand_principal_2_svc() local
1140 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in chrand_principal_2_svc()
1148 if (changepw_not_self(handle, rqstp, rec.principal) || in chrand_principal_2_svc()
1149 !stub_auth(handle, OP_CHRAND, rec.principal, NULL, NULL, NULL)) { in chrand_principal_2_svc()
1154 ret->code = check_self_keychange(handle, rqstp, rec.principal); in chrand_principal_2_svc()
1156 ret->code = kadm5_randkey_principal(handle, rec.principal, in chrand_principal_2_svc()
1162 ret->code = chrand_check_lockdown(handle, &rec, &k, &nkeys); in chrand_principal_2_svc()
1171 errmsg = krb5_get_error_message(handle->context, ret->code); in chrand_principal_2_svc()
1177 krb5_free_error_message(handle->context, errmsg); in chrand_principal_2_svc()
1181 kadm5_free_principal_ent(handle, &rec); in chrand_principal_2_svc()
1182 stub_cleanup(handle, prime_arg, &client_name, &service_name); in chrand_principal_2_svc()
1197 kadm5_server_handle_t handle; in chrand_principal3_2_svc() local
1200 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in chrand_principal3_2_svc()
1208 if (changepw_not_self(handle, rqstp, rec.principal) || in chrand_principal3_2_svc()
1209 !stub_auth(handle, OP_CHRAND, rec.principal, NULL, NULL, NULL)) { in chrand_principal3_2_svc()
1214 ret->code = check_self_keychange(handle, rqstp, rec.principal); in chrand_principal3_2_svc()
1216 keepold = clamp_self_keepold(handle, rec.principal, arg->keepold); in chrand_principal3_2_svc()
1217 ret->code = kadm5_randkey_principal_3(handle, rec.principal, in chrand_principal3_2_svc()
1224 ret->code = chrand_check_lockdown(handle, &rec, &k, &nkeys); in chrand_principal3_2_svc()
1233 errmsg = krb5_get_error_message(handle->context, ret->code); in chrand_principal3_2_svc()
1239 krb5_free_error_message(handle->context, errmsg); in chrand_principal3_2_svc()
1243 kadm5_free_principal_ent(handle, &rec); in chrand_principal3_2_svc()
1244 stub_cleanup(handle, prime_arg, &client_name, &service_name); in chrand_principal3_2_svc()
1254 kadm5_server_handle_t handle; in create_policy_2_svc() local
1257 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in create_policy_2_svc()
1266 !stub_auth_pol(handle, OP_ADDPOL, arg->rec.policy, in create_policy_2_svc()
1273 ret->code = kadm5_create_policy(handle, &arg->rec, arg->mask); in create_policy_2_svc()
1275 errmsg = krb5_get_error_message(handle->context, ret->code); in create_policy_2_svc()
1282 krb5_free_error_message(handle->context, errmsg); in create_policy_2_svc()
1286 stub_cleanup(handle, NULL, &client_name, &service_name); in create_policy_2_svc()
1296 kadm5_server_handle_t handle; in delete_policy_2_svc() local
1299 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in delete_policy_2_svc()
1308 !stub_auth(handle, OP_DELPOL, NULL, NULL, arg->name, NULL)) { in delete_policy_2_svc()
1313 ret->code = kadm5_delete_policy(handle, arg->name); in delete_policy_2_svc()
1315 errmsg = krb5_get_error_message(handle->context, ret->code); in delete_policy_2_svc()
1322 krb5_free_error_message(handle->context, errmsg); in delete_policy_2_svc()
1326 stub_cleanup(handle, NULL, &client_name, &service_name); in delete_policy_2_svc()
1336 kadm5_server_handle_t handle; in modify_policy_2_svc() local
1339 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in modify_policy_2_svc()
1348 !stub_auth_pol(handle, OP_MODPOL, arg->rec.policy, in modify_policy_2_svc()
1354 ret->code = kadm5_modify_policy(handle, &arg->rec, arg->mask); in modify_policy_2_svc()
1356 errmsg = krb5_get_error_message(handle->context, ret->code); in modify_policy_2_svc()
1363 krb5_free_error_message(handle->context, errmsg); in modify_policy_2_svc()
1367 stub_cleanup(handle, NULL, &client_name, &service_name); in modify_policy_2_svc()
1379 kadm5_server_handle_t handle; in get_policy_2_svc() local
1384 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in get_policy_2_svc()
1395 ret2 = kadm5_get_principal(handle->lhandle, handle->current_caller, in get_policy_2_svc()
1403 !stub_auth(handle, OP_GETPOL, NULL, NULL, arg->name, cpolicy)) { in get_policy_2_svc()
1407 ret->code = kadm5_get_policy(handle, arg->name, &ret->rec); in get_policy_2_svc()
1409 errmsg = krb5_get_error_message(handle->context, ret->code); in get_policy_2_svc()
1415 krb5_free_error_message(handle->context, errmsg); in get_policy_2_svc()
1419 (void)kadm5_free_principal_ent(handle->lhandle, &caller_ent); in get_policy_2_svc()
1420 stub_cleanup(handle, NULL, &client_name, &service_name); in get_policy_2_svc()
1430 kadm5_server_handle_t handle; in get_pols_2_svc() local
1433 ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle, in get_pols_2_svc()
1444 !stub_auth(handle, OP_LISTPOLS, NULL, NULL, NULL, NULL)) { in get_pols_2_svc()
1449 ret->code = kadm5_get_policies(handle, arg->exp, &ret->pols, in get_pols_2_svc()
1452 errmsg = krb5_get_error_message(handle->context, ret->code); in get_pols_2_svc()
1458 krb5_free_error_message(handle->context, errmsg); in get_pols_2_svc()
1462 stub_cleanup(handle, NULL, &client_name, &service_name); in get_pols_2_svc()
1471 kadm5_server_handle_t handle; in get_privs_2_svc() local
1474 ret->code = stub_setup(*arg, rqstp, NULL, &handle, &ret->api_version, in get_privs_2_svc()
1479 ret->code = kadm5_get_privs(handle, &ret->privs); in get_privs_2_svc()
1481 errmsg = krb5_get_error_message(handle->context, ret->code); in get_privs_2_svc()
1487 krb5_free_error_message(handle->context, errmsg); in get_privs_2_svc()
1490 stub_cleanup(handle, NULL, &client_name, &service_name); in get_privs_2_svc()
1501 kadm5_server_handle_t handle; in purgekeys_2_svc() local
1505 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in purgekeys_2_svc()
1514 !stub_auth(handle, OP_PURGEKEYS, rec.principal, NULL, NULL, NULL)) { in purgekeys_2_svc()
1518 ret->code = kadm5_purgekeys(handle, rec.principal, arg->keepkvno); in purgekeys_2_svc()
1520 errmsg = krb5_get_error_message(handle->context, ret->code); in purgekeys_2_svc()
1526 krb5_free_error_message(handle->context, errmsg); in purgekeys_2_svc()
1530 kadm5_free_principal_ent(handle, &rec); in purgekeys_2_svc()
1531 stub_cleanup(handle, prime_arg, &client_name, &service_name); in purgekeys_2_svc()
1542 kadm5_server_handle_t handle; in get_strings_2_svc() local
1545 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in get_strings_2_svc()
1552 !stub_auth(handle, OP_GETSTRS, rec.principal, NULL, NULL, NULL)) { in get_strings_2_svc()
1557 ret->code = kadm5_get_strings(handle, rec.principal, &ret->strings, in get_strings_2_svc()
1560 errmsg = krb5_get_error_message(handle->context, ret->code); in get_strings_2_svc()
1566 krb5_free_error_message(handle->context, errmsg); in get_strings_2_svc()
1570 kadm5_free_principal_ent(handle, &rec); in get_strings_2_svc()
1571 stub_cleanup(handle, prime_arg, &client_name, &service_name); in get_strings_2_svc()
1582 kadm5_server_handle_t handle; in set_string_2_svc() local
1585 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in set_string_2_svc()
1592 !stub_auth(handle, OP_SETSTR, rec.principal, NULL, in set_string_2_svc()
1598 ret->code = kadm5_set_string(handle, rec.principal, in set_string_2_svc()
1601 errmsg = krb5_get_error_message(handle->context, ret->code); in set_string_2_svc()
1607 krb5_free_error_message(handle->context, errmsg); in set_string_2_svc()
1611 kadm5_free_principal_ent(handle, &rec); in set_string_2_svc()
1612 stub_cleanup(handle, prime_arg, &client_name, &service_name); in set_string_2_svc()
1621 kadm5_server_handle_t handle; in init_2_svc() local
1626 ret->code = stub_setup(*arg, rqstp, NULL, &handle, &ret->api_version, in init_2_svc()
1632 errmsg = krb5_get_error_message(handle->context, ret->code); in init_2_svc()
1650 krb5_free_error_message(handle->context, errmsg); in init_2_svc()
1653 stub_cleanup(handle, NULL, &client_name, &service_name); in init_2_svc()
1675 kadm5_server_handle_t handle; in get_principal_keys_2_svc() local
1678 ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle, in get_principal_keys_2_svc()
1685 stub_auth(handle, OP_EXTRACT, rec.principal, NULL, NULL, NULL)) { in get_principal_keys_2_svc()
1686 ret->code = kadm5_get_principal_keys(handle, rec.principal, arg->kvno, in get_principal_keys_2_svc()
1697 kadm5_free_kadm5_key_data(handle->context, ret->n_key_data, in get_principal_keys_2_svc()
1711 errmsg = krb5_get_error_message(handle->context, ret->code); in get_principal_keys_2_svc()
1717 krb5_free_error_message(handle->context, errmsg); in get_principal_keys_2_svc()
1721 kadm5_free_principal_ent(handle, &rec); in get_principal_keys_2_svc()
1722 stub_cleanup(handle, prime_arg, &client_name, &service_name); in get_principal_keys_2_svc()
1732 kadm5_server_handle_t handle; in create_alias_2_svc() local
1735 ret->code = stub_setup(arg->api_version, rqstp, arg->alias, &handle, in create_alias_2_svc()
1742 !stub_auth(handle, OP_ADDALIAS, arg->alias, arg->target, NULL, NULL)) { in create_alias_2_svc()
1747 ret->code = kadm5_create_alias(handle, arg->alias, arg->target); in create_alias_2_svc()
1749 errmsg = krb5_get_error_message(handle->context, ret->code); in create_alias_2_svc()
1753 krb5_free_error_message(handle->context, errmsg); in create_alias_2_svc()
1757 stub_cleanup(handle, prime_arg, &client_name, &service_name); in create_alias_2_svc()