From e9c925f8727a8fa01935129ba8209183d111bd86 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Jul 2005 04:27:09 +0000 Subject: r8629: - moved the getDomainList() call out of smbcalls_auth.c and into libjs/auth.js - tried to make the ejs_userAuth() call work for the sam, not just for unix auth. I didn't get this working. Andrew, when you get a chance can you see what I'm doing wrong? I suspect its because we aren't supplying a challenge, but a challenge doesn't really make sense in a 'is this username/password' correct call. (This used to be commit 9e07c08a71908e99c2f44efc40a3249facd6850f) --- source4/scripting/libjs/auth.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 source4/scripting/libjs/auth.js (limited to 'source4/scripting/libjs') diff --git a/source4/scripting/libjs/auth.js b/source4/scripting/libjs/auth.js new file mode 100644 index 0000000000..a973cb4753 --- /dev/null +++ b/source4/scripting/libjs/auth.js @@ -0,0 +1,17 @@ +/* + auth js library functions + Copyright Andrew Tridgell 2005 + released under the GNU GPL v2 or later +*/ + + +/* + get a list of domains for SWAT authentication +*/ +function getDomainList() +{ + var ret = new Array(2); + ret[0] = "System User"; + ret[1] = lpGet("workgroup"); + return ret; +} -- cgit