Log here.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 11 Apr 2007 18:36:18 +0000 (18:36 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 11 Apr 2007 18:36:18 +0000 (18:36 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@906 959494ce-11ee-0310-bf91-de5d638817bd

daemon/auth-unix.c

index c90aba8..9707bfd 100644 (file)
@@ -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);
 }