summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-01-04 16:54:59 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-01-04 16:54:59 +0000
commit0c5c163fb16aa031858217f2bfd721cfb9b8fbaa (patch)
treed313dbe49528b358eb1cccc988ad542dad994963 /usr.bin/ssh/sshd.c
parent9c90131ce98bee1a3d3dd773429cb3b5d423efe2 (diff)
allow auth-kerberos for IPv4 only
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 12ebf89eb94..e25ace295bf 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -11,7 +11,7 @@
*/
#include "includes.h"
-RCSID("$Id: sshd.c,v 1.75 2000/01/04 00:08:01 markus Exp $");
+RCSID("$Id: sshd.c,v 1.76 2000/01/04 16:54:58 markus Exp $");
#include <poll.h>
@@ -848,6 +848,14 @@ main(int ac, char **av)
options.rhosts_authentication = 0;
options.rhosts_rsa_authentication = 0;
}
+#ifdef KRB4
+ if (!packet_connection_is_ipv4() &&
+ options.kerberos_authentication) {
+ debug("Kerberos Authentication disabled, only available for IPv4.");
+ options.kerberos_authentication = 0;
+ }
+#endif /* KRB4 */
+
packet_set_nonblocking();
/* Handle the connection. */