r21103: This seems to do the 'right thing' in applying the correct access
authorAndrew Bartlett <abartlet@samba.org>
Thu, 1 Feb 2007 01:27:02 +0000 (01:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:44:29 +0000 (14:44 -0500)
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)

services/samba/ldb.esp

index 2654efe9884e2e589940f1cf06a95022904e3eb6..6167bf904f33a749ffee68dc9879bfcf4c92883f 100644 (file)
@@ -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)
     {