diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-20 04:27:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:46 -0500 |
commit | e9c925f8727a8fa01935129ba8209183d111bd86 (patch) | |
tree | d76b05c716a41b6f14184517a3c25314066cf77f /source4/scripting/libjs | |
parent | d9cfd55dbb969b08914fd306fb9d123e52ad6541 (diff) | |
download | samba-e9c925f8727a8fa01935129ba8209183d111bd86.tar.gz samba-e9c925f8727a8fa01935129ba8209183d111bd86.tar.bz2 samba-e9c925f8727a8fa01935129ba8209183d111bd86.zip |
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)
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r-- | source4/scripting/libjs/auth.js | 17 |
1 files changed, 17 insertions, 0 deletions
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; +} |