X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fauth-krb5.c;h=995acb477b89bc3320cfd5831c4e6a503eac5d14;hb=95d5ceaaee340ad89d87ec02dd89d5be75882533;hp=07b9cda4102662dfab524e292b11c1e9d1bfc442;hpb=56838143070d2b886c18eb86be7eeae896b9c92a;p=doldaconnect.git diff --git a/daemon/auth-krb5.c b/daemon/auth-krb5.c index 07b9cda..995acb4 100644 --- a/daemon/auth-krb5.c +++ b/daemon/auth-krb5.c @@ -348,7 +348,7 @@ static int krbauth(struct authhandle *auth, char *passdata) authorized = 1; if(authorized) { - flog(LOG_INFO, "krb5 principal %s successfully authorized as %s", data->cname, data->username); + flog(LOG_INFO, "krb5 principal %s successfully authorized as %s%s", data->cname, data->username, (data->creds == NULL)?"":" (with fwd creds)"); return(AUTH_SUCCESS); } else { flog(LOG_INFO, "krb5 principal %s not authorized as %s", data->cname, data->username); @@ -377,7 +377,6 @@ static int krbauth(struct authhandle *auth, char *passdata) krb5_free_tgt_creds(k5context, fwdcreds); return(AUTH_ERR); } - flog(LOG_INFO, "received forwarded credentials for %s", data->username); /* Copy only the first credential. (Change this if it becomes a problem) */ ret = krb5_copy_creds(k5context, *fwdcreds, &data->creds); krb5_free_tgt_creds(k5context, fwdcreds); @@ -460,7 +459,7 @@ static int opensess(struct authhandle *auth) } free(buf); } else { - if((buf = krb5_cc_default_name(k5context)) == NULL) { + if((buf = (char *)krb5_cc_default_name(k5context)) == NULL) { flog(LOG_ERR, "could not get default ccache name"); return(AUTH_ERR); }