Lines Matching refs:client

39 kcm_drop_default_cache(krb5_context context, kcm_client *client, char *name);
43 kcm_is_same_session(kcm_client *client, uid_t uid, pid_t session)
47 return (client->session == session);
50 return (client->uid == uid);
55 kcm_client *client,
60 KCM_LOG_REQUEST(context, client, opcode);
74 kcm_client *client,
88 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
90 ret = kcm_ccache_resolve_client(context, client, opcode,
117 kcm_client *client,
125 KCM_LOG_REQUEST(context, client, opcode);
127 name = kcm_ccache_nextid(client->pid, client->uid, client->gid);
148 kcm_client *client,
161 KCM_LOG_REQUEST(context, client, opcode);
173 ret = kcm_ccache_new_client(context, client, name, &ccache);
180 ccache->client = principal;
214 kcm_client *client,
226 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
228 ret = kcm_ccache_destroy_client(context, client, name);
230 kcm_drop_default_cache(context, client, name);
247 kcm_client *client,
261 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
269 ret = kcm_ccache_resolve_client(context, client, opcode,
305 kcm_client *client,
322 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
345 ret = kcm_ccache_resolve_client(context, client, opcode,
396 kcm_client *client,
409 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
411 ret = kcm_ccache_resolve_client(context, client, opcode,
418 if (ccache->client == NULL)
421 ret = krb5_store_principal(response, ccache->client);
439 kcm_client *client,
453 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
455 ret = kcm_ccache_resolve_client(context, client, opcode,
485 kcm_client *client,
501 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
503 ret = kcm_ccache_resolve_client(context, client, opcode,
542 kcm_client *client,
557 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
571 ret = kcm_ccache_resolve_client(context, client, opcode,
600 kcm_client *client,
614 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
622 ret = kcm_ccache_resolve_client(context, client, opcode,
647 kcm_client *client,
662 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
676 ret = kcm_ccache_resolve_client(context, client, opcode,
683 ret = kcm_chown(context, client, ccache, uid, gid);
701 kcm_client *client,
715 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
723 ret = kcm_ccache_resolve_client(context, client, opcode,
730 ret = kcm_chmod(context, client, ccache, mode);
740 * from client to KCM follow.
755 kcm_client *client,
773 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
797 ret = kcm_ccache_resolve_client(context, client, opcode,
847 kcm_client *client,
866 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
886 ret = kcm_ccache_resolve_client(context, client, opcode,
899 in.client = ccache->client;
930 kcm_client *client,
943 KCM_LOG_REQUEST_NAME(context, client, opcode, oldname);
958 ret = kcm_ccache_resolve_client(context, client, opcode, oldname, &oldid);
966 ret = kcm_ccache_resolve_client(context, client, opcode, newname, &newid);
968 ret = kcm_ccache_new_client(context, client, newname, &newid);
987 MOVE(newid, oldid, client);
1003 ret = kcm_ccache_destroy_client(context, client, oldname);
1005 kcm_drop_default_cache(context, client, oldname);
1014 kcm_client *client,
1019 KCM_LOG_REQUEST(context, client, opcode);
1021 return kcm_ccache_get_uuids(context, client, opcode, response);
1026 kcm_client *client,
1036 KCM_LOG_REQUEST(context, client, opcode);
1048 ret = kcm_access(context, client, opcode, cache);
1064 kcm_client *client,
1074 KCM_LOG_REQUEST(context, client, opcode);
1077 if (kcm_is_same_session(client, c->uid, c->session)) {
1083 name = n = kcm_ccache_first_name(client);
1086 asprintf(&n, "%d", (int)client->uid);
1098 kcm_drop_default_cache(krb5_context context, kcm_client *client, char *name)
1103 if (!kcm_is_same_session(client, (*c)->uid, (*c)->session))
1117 kcm_client *client,
1130 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
1133 if (kcm_is_same_session(client, c->uid, c->session))
1140 c->session = client->session;
1141 c->uid = client->uid;
1156 kcm_client *client,
1169 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
1171 ret = kcm_ccache_resolve_client(context, client, opcode, name, &ccache);
1187 kcm_client *client,
1201 KCM_LOG_REQUEST_NAME(context, client, opcode, name);
1209 ret = kcm_ccache_resolve_client(context, client, opcode, name, &ccache);
1255 find_ntlm_cred(const char *user, const char *domain, kcm_client *client)
1262 kcm_is_same_session(client, c->uid, c->session))
1270 kcm_client *client,
1297 c = find_ntlm_cred(cred->user, cred->domain, client);
1309 cred->uid = client->uid;
1310 cred->session = client->session;
1333 kcm_client *client,
1355 c = find_ntlm_cred(user, domain, client);
1377 kcm_client *client,
1396 kcm_is_same_session(client, (*cp)->uid, (*cp)->session))
1433 kcm_client *client,
1465 c = find_ntlm_cred(user, domain, client);
1567 ret = heim_ntlm_calculate_ntlm2(ctx->client->key.data,
1568 ctx->client->key.length,
1670 kcm_client *client,
1679 if (!kcm_is_same_session(client, c->uid, c->session))
1743 kcm_client *client,
1758 if (client->pid == -1) {
1767 client->pid);
1774 kcm_log(0, "Process %d: didn't send a message", client->pid);
1780 client->pid, opcode);
1787 client->pid, kcm_op2string(opcode));
1795 ret = (*method)(context, client, opcode, req_sp, resp_sp);