Lines Matching refs:context

44     kadm5_server_context *context = server_handle;  in change()  local
52 ret = context->db->hdb_open(context->context, context->db, O_RDWR, 0); in change()
56 ret = context->db->hdb_fetch_kvno(context->context, context->db, princ, in change()
61 if (context->db->hdb_capability_flags & HDB_CAP_F_HANDLE_PASSWORDS) { in change()
62 ret = context->db->hdb_password(context->context, context->db, in change()
74 ret = _kadm5_set_keys(context, &ent.entry, password); in change()
76 _kadm5_free_keys (context->context, num_keys, keys); in change()
84 _kadm5_free_keys (context->context, num_keys, keys); in change()
88 krb5_set_error_message(context->context, ret, in change()
93 ret = hdb_seal_keys(context->context, context->db, &ent.entry); in change()
99 ret = _kadm5_set_modifier(context, &ent.entry); in change()
103 ret = _kadm5_bump_pw_expire(context, &ent.entry); in change()
107 ret = context->db->hdb_store(context->context, context->db, in change()
112 kadm5_log_modify (context, in change()
119 hdb_free_entry(context->context, &ent); in change()
121 context->db->hdb_close(context->context, context->db); in change()
161 kadm5_server_context *context = server_handle; in kadm5_s_chpass_principal_with_key() local
166 ret = context->db->hdb_open(context->context, context->db, O_RDWR, 0); in kadm5_s_chpass_principal_with_key()
169 ret = context->db->hdb_fetch_kvno(context->context, context->db, princ, 0, in kadm5_s_chpass_principal_with_key()
173 ret = _kadm5_set_keys2(context, &ent.entry, n_key_data, key_data); in kadm5_s_chpass_principal_with_key()
177 ret = _kadm5_set_modifier(context, &ent.entry); in kadm5_s_chpass_principal_with_key()
180 ret = _kadm5_bump_pw_expire(context, &ent.entry); in kadm5_s_chpass_principal_with_key()
184 ret = hdb_seal_keys(context->context, context->db, &ent.entry); in kadm5_s_chpass_principal_with_key()
188 ret = context->db->hdb_store(context->context, context->db, in kadm5_s_chpass_principal_with_key()
193 kadm5_log_modify (context, in kadm5_s_chpass_principal_with_key()
200 hdb_free_entry(context->context, &ent); in kadm5_s_chpass_principal_with_key()
202 context->db->hdb_close(context->context, context->db); in kadm5_s_chpass_principal_with_key()