+Thu Nov 20 17:13:42 1997 Tom Yu <tlyu@mit.edu>
+
+ * forward.c (rd_and_store_for_creds): Fix up to no longer do the
+ chown [krb5-appl/502]
+
+ * kerberos5.c (kerberos5_is): Fix up call to
+ rd_and_store_for_creds. [krb5-appl/502]
+
Tue Oct 21 10:54:22 1997 Ezra Peisach <epeisach@mit.edu>
* enc_des.c: Include string.h/strings.h for memcpy prototype
#if defined(KERBEROS) || defined(KRB5)
#include <stdio.h>
-#include <pwd.h>
#include <netdb.h>
#include "k5-int.h"
/* Decode, decrypt and store the forwarded creds in the local ccache. */
krb5_error_code
-rd_and_store_for_creds(context, auth_context, inbuf, ticket, lusername)
+rd_and_store_for_creds(context, auth_context, inbuf, ticket)
krb5_context context;
krb5_auth_context auth_context;
krb5_data *inbuf;
krb5_ticket *ticket;
- char *lusername;
{
krb5_creds **creds;
krb5_error_code retval;
char ccname[35];
krb5_ccache ccache = NULL;
- struct passwd *pwd;
char *tty;
- if (!(pwd = (struct passwd *) getpwnam(lusername)))
- return -1;
-
if (retval = krb5_rd_cred(context, auth_context, inbuf, &creds, NULL))
return(retval);
if (retval = krb5_cc_store_cred(context, ccache, *creds))
goto cleanup;
- if (retval = chown(ccname+5, pwd->pw_uid, -1))
- goto cleanup;
-
cleanup:
krb5_free_creds(context, *creds);
return retval;
if ((r = krb5_auth_con_genaddrs(telnet_context, auth_context,
net, KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR)) ||
(r = rd_and_store_for_creds(telnet_context, auth_context,
- &inbuf, ticket, UserNameRequested))) {
+ &inbuf, ticket))) {
char errbuf[128];