summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-18 16:48:20 +0200
committerVolker Lendecke <vl@samba.org>2010-08-22 14:28:34 +0200
commit70c5bed4b2ca4660e8a06cee6d4e813744cc7be8 (patch)
tree1bc9805b67355df382dc1d37c1951503eba23f1a /source3/lib
parentbc69a9d0d8aa746c2db88484ebf48f9aa7d73de6 (diff)
downloadsamba-70c5bed4b2ca4660e8a06cee6d4e813744cc7be8.tar.gz
samba-70c5bed4b2ca4660e8a06cee6d4e813744cc7be8.tar.bz2
samba-70c5bed4b2ca4660e8a06cee6d4e813744cc7be8.zip
s3: Replace calls to check_access by allow_access
We already have both the name and address of the client stored now
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 9808218412..00cdd5cd13 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -328,6 +328,10 @@ bool allow_access(const char **deny_list,
ret = allow_access_internal(deny_list, allow_list, nc_cname, nc_caddr);
+ DEBUG(ret ? 3 : 0,
+ ("%s connection from %s (%s)\n",
+ ret ? "Allowed" : "Denied", nc_cname, nc_caddr));
+
SAFE_FREE(nc_cname);
SAFE_FREE(nc_caddr);
return ret;