summaryrefslogtreecommitdiffstats
path: root/crypto/openssh
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-06-12 03:43:47 +0000
committergreen <green@FreeBSD.org>2001-06-12 03:43:47 +0000
commitfdb0c1688ae2026650f7f3b729a0f622d7e2d006 (patch)
treea752c16c62b4e1168738d4a4446c48330ccfaf8d /crypto/openssh
parentca51eb1785352ed9b80cb7f03e5bb17ed03983e1 (diff)
downloadFreeBSD-src-fdb0c1688ae2026650f7f3b729a0f622d7e2d006.zip
FreeBSD-src-fdb0c1688ae2026650f7f3b729a0f622d7e2d006.tar.gz
Enable Kerberos 5 support in sshd again.
Diffstat (limited to 'crypto/openssh')
-rw-r--r--crypto/openssh/auth-krb5.c1
-rw-r--r--crypto/openssh/auth.h1
-rw-r--r--crypto/openssh/auth1.c4
3 files changed, 4 insertions, 2 deletions
diff --git a/crypto/openssh/auth-krb5.c b/crypto/openssh/auth-krb5.c
index 0fb0ea2..efe9376 100644
--- a/crypto/openssh/auth-krb5.c
+++ b/crypto/openssh/auth-krb5.c
@@ -6,6 +6,7 @@
#include "includes.h"
#include "ssh.h"
+#include "ssh1.h"
#include "packet.h"
#include "xmalloc.h"
diff --git a/crypto/openssh/auth.h b/crypto/openssh/auth.h
index cd27684..5996480 100644
--- a/crypto/openssh/auth.h
+++ b/crypto/openssh/auth.h
@@ -99,6 +99,7 @@ int auth_rsa_challenge_dialog(RSA *pk);
#ifdef KRB5
#include <krb5.h>
+#include <krb.h>
int auth_krb5(); /* XXX Doplnit prototypy */
int auth_krb5_tgt();
int krb5_init();
diff --git a/crypto/openssh/auth1.c b/crypto/openssh/auth1.c
index 0e494eb..d5d15ef 100644
--- a/crypto/openssh/auth1.c
+++ b/crypto/openssh/auth1.c
@@ -416,8 +416,8 @@ do_authloop(Authctxt *authctxt)
tgt.data = packet_get_string(&tgtlen);
tgt.length = tgtlen;
- if (!auth_krb5_tgt(luser, &tgt, tkt_client))
- verbose ("Kerberos V5 TGT refused for %.100s", luser);
+ if (!auth_krb5_tgt(pw->pw_name, &tgt, tkt_client))
+ verbose ("Kerberos V5 TGT refused for %.100s", pw->pw_name);
xfree(tgt.data);
break;
OpenPOWER on IntegriCloud