Enable Kerberos 5 support in sshd again.
This commit is contained in:
parent
e0728b6faa
commit
9b4110c5e5
@ -6,6 +6,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "ssh.h"
|
||||
#include "ssh1.h"
|
||||
#include "packet.h"
|
||||
#include "xmalloc.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();
|
||||
|
@ -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;
|
||||
|
@ -21,7 +21,6 @@ LDADD+= -lkrb -lcom_err
|
||||
DPADD+= ${LIBKRB} ${LIBCOM_ERR}
|
||||
.endif # MAKE_KERBEROS4
|
||||
|
||||
.if 0
|
||||
.if defined(MAKE_KERBEROS5) && \
|
||||
((${MAKE_KERBEROS5} == "yes") || (${MAKE_KERBEROS5} == "YES"))
|
||||
DISTRIBUTION=krb5
|
||||
@ -30,7 +29,6 @@ SRCS+= auth-krb5.c
|
||||
LDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
|
||||
DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
|
||||
.endif # MAKE_KERBEROS5
|
||||
.endif # 0
|
||||
|
||||
CFLAGS+= -DSKEY
|
||||
LDADD+= -lopie -lmd
|
||||
|
Loading…
Reference in New Issue
Block a user