From: fredrik Date: Wed, 11 Apr 2007 18:36:18 +0000 (+0000) Subject: Log here. X-Git-Tag: 0.3~31 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=516eedd937505c69fef5b9f6b971f0995ab819bf Log here. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@906 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/daemon/auth-unix.c b/daemon/auth-unix.c index c90aba8..9707bfd 100644 --- a/daemon/auth-unix.c +++ b/daemon/auth-unix.c @@ -67,8 +67,10 @@ static int unixauth(struct authhandle *auth, struct socket *sk, char *passdata) errno = EBADE; return(AUTH_ERR); } - if(pwd->pw_uid == sk->ucred.uid) + if(pwd->pw_uid == sk->ucred.uid) { + flog(LOG_INFO, "process %i successfully authenticated as %s with Unix credentials (uid=%i, gid=%i)", sk->ucred.pid, data->username, sk->ucred.uid, sk->ucred.gid); return(AUTH_SUCCESS); + } auth->text = swcsdup(L"Unix credentials do not match supplied user name"); return(AUTH_DENIED); }