X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fauth-krb5.c;h=7b88af31ddd6228f152be2e1813a43c239cd7419;hb=70d8f2f1dd421bdf51b8408b47276a5daf02dc6e;hp=9e292184cccb6bfc7acd891e747f93e61fb42791;hpb=d9f89ef5daa6375fc4ff257826fa39562fbe3ac3;p=doldaconnect.git diff --git a/daemon/auth-krb5.c b/daemon/auth-krb5.c index 9e29218..7b88af3 100644 --- a/daemon/auth-krb5.c +++ b/daemon/auth-krb5.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -266,7 +266,7 @@ static void setrenew(struct krb5data *data) data->renewtimer = timercallback(good, (void (*)(int, void *))renewcreds, data); } -static int krbauth(struct authhandle *auth, char *passdata) +static int krbauth(struct authhandle *auth, struct socket *sk, char *passdata) { int ret; struct krb5data *data; @@ -468,7 +468,7 @@ static int opensess(struct authhandle *auth) } if((ret = krb5_cc_resolve(k5context, buf, &data->ccache)) != 0) { - flog(LOG_ERR, "could not resolve ccache name \"%s\": %s", buf2, error_message(ret)); + flog(LOG_ERR, "could not resolve ccache name \"%s\": %s", buf, error_message(ret)); return(AUTH_ERR); } setenv("KRB5CCNAME", buf, 1); @@ -594,7 +594,8 @@ static void terminate(void) static struct configvar myvars[] = { - /** The name of the service principal to use. */ + /** The name of the service principal to use for Kerberos V + * authentication. */ {CONF_VAR_STRING, "service", {.str = L"doldacond"}}, /** The path to an alternative keytab file. If unspecified, the * system default keytab will be used. */