Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated.
[doldaconnect.git]
/
daemon
/
auth-unix.c
diff --git
a/daemon/auth-unix.c
b/daemon/auth-unix.c
index
c90aba8
..
9707bfd
100644
(file)
--- 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);
}
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);
return(AUTH_SUCCESS);
+ }
auth->text = swcsdup(L"Unix credentials do not match supplied user name");
return(AUTH_DENIED);
}
auth->text = swcsdup(L"Unix credentials do not match supplied user name");
return(AUTH_DENIED);
}