X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fuimisc.c;h=8252a7e46bf1f1ac6b36cd1ada8086e400c06a8f;hb=9cbeb60c78389bde5a290e263335cffffbb5ced6;hp=e1ece1c3ae5178c482d2216849089c92a9067292;hpb=c0d36fc531b148cfc8ceacc25e5e27d78cdd1906;p=doldaconnect.git diff --git a/lib/uimisc.c b/lib/uimisc.c index e1ece1c..8252a7e 100644 --- a/lib/uimisc.c +++ b/lib/uimisc.c @@ -321,6 +321,11 @@ static int init_krb5(struct logindata *data) krb5_data cksum; krb5_creds creds; + if(dc_gethostname() == NULL) + { + message("cannot use krb5 without a host name"); + return(1); + } krb = smalloc(sizeof(*krb)); memset(krb, 0, sizeof(*krb)); krb->fwd = 1; @@ -409,6 +414,12 @@ static struct authmech authmechs[] = }, #endif { + .name = L"unix", + .process = process_authless, + .init = NULL, + .release = NULL + }, + { .name = L"authless", .process = process_authless, .init = NULL,