From 516eedd937505c69fef5b9f6b971f0995ab819bf Mon Sep 17 00:00:00 2001 From: fredrik Date: Wed, 11 Apr 2007 18:36:18 +0000 Subject: [PATCH] Log here. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@906 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/auth-unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.11.0