summaryrefslogtreecommitdiffstats
path: root/src/appl/bsd/krshd.c
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1996-04-11 04:26:22 +0000
committerRichard Basch <probe@mit.edu>1996-04-11 04:26:22 +0000
commitfc8ace14b79af515ec2ed11a04520e8cfa3f4c17 (patch)
tree7a58615d1cb38a82ee673d0bd4eca22c35c436c5 /src/appl/bsd/krshd.c
parent43488f349cee52345ab9a2b8d55a2dd5fb6e350c (diff)
downloadkrb5-fc8ace14b79af515ec2ed11a04520e8cfa3f4c17.tar.gz
krb5-fc8ace14b79af515ec2ed11a04520e8cfa3f4c17.tar.xz
krb5-fc8ace14b79af515ec2ed11a04520e8cfa3f4c17.zip
* kcmd.c: Cleaned up whitespace and removed commented & unused cruft
* krlogind.c, krshd.c: Allow the recvauth routine to find any key in the keytab for which the user is trying to login. The host may be known as many names. Additionally, for krlogind, clean up the error handling for bad authentication (potential null dereference and a misleading message because of the wrong authentication system being used) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7791 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/bsd/krshd.c')
-rw-r--r--src/appl/bsd/krshd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c
index 867319700d..e4073bfdd1 100644
--- a/src/appl/bsd/krshd.c
+++ b/src/appl/bsd/krshd.c
@@ -1696,7 +1696,6 @@ recvauth(netf, peersin, valid_checksum)
struct sockaddr_in laddr;
char krb_vers[KRB_SENDAUTH_VLEN + 1];
int len;
- krb5_principal server;
krb5_data inbuf;
char v4_instance[INST_SZ]; /* V4 Instance */
char v4_version[9];
@@ -1715,13 +1714,6 @@ krb5_authenticator *authenticator;
#define SIZEOF_INADDR sizeof(struct in_addr)
#endif
- if (status = krb5_sname_to_principal(bsd_context, NULL, "host",
- KRB5_NT_SRV_HST, &server)) {
- syslog(LOG_ERR, "parse server name %s: %s", "host",
- error_message(status));
- exit(1);
- }
-
strcpy(v4_instance, "*");
if (status = krb5_auth_con_init(bsd_context, &auth_context))
@@ -1733,7 +1725,7 @@ krb5_authenticator *authenticator;
status = krb5_compat_recvauth(bsd_context, &auth_context, &netf,
"KCMDV0.1",
- server, /* Specify daemon principal */
+ NULL, /* Specify daemon principal */
0, /* no flags */
keytab, /* normally NULL to use v5srvtab */
0, /* v4_opts */