summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-02-01 01:27:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:29 -0500
commitdb10033b2b49d6db660779f9c18a6d507ecb6923 (patch)
treef27e06619d4cf6ea52059fd6d143aab86e557484 /services
parent0a4617bd9f972d04643d695e99f1bb49d6207ba3 (diff)
downloadsamba-db10033b2b49d6db660779f9c18a6d507ecb6923.tar.gz
samba-db10033b2b49d6db660779f9c18a6d507ecb6923.tar.bz2
samba-db10033b2b49d6db660779f9c18a6d507ecb6923.zip
r21103: This seems to do the 'right thing' in applying the correct access
control to the SWAT ldb browser. This should show up as the authenticated user, rather than anonymous now. Andrew Bartlet (This used to be commit 48a5105f6bb0afcd22feb9448aba3006e6646848)
Diffstat (limited to 'services')
-rw-r--r--services/samba/ldb.esp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/samba/ldb.esp b/services/samba/ldb.esp
index 2654efe988..6167bf904f 100644
--- a/services/samba/ldb.esp
+++ b/services/samba/ldb.esp
@@ -95,6 +95,8 @@ function _connect(params, error)
/* Database was not previously opened. Connect to it. */
ldb = ldb_init();
+ ldb.session_info = session.authinfo.session_info;
+ ldb.credentials = session.authinfo.credentials;
var ret = ldb.connect(private_dir + "/" + params[0]);
if (ret && ldb.db)
{