X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fauth-unix.c;h=9707bfd3aceaeaf2075a3daf587fc7c6fbe310ab;hb=516eedd937505c69fef5b9f6b971f0995ab819bf;hp=c90aba88d9cfc77ca0fa1c52c3790804565edb02;hpb=f2c559da411213b4366ee179ba6cd7e853982f9e;p=doldaconnect.git 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); }