summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-09 05:31:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:26 -0500
commita343050b2b91067d70eafd5ade88d6a3637be236 (patch)
tree7c750c8c2d95061f020ede3252ef2751b5b598ed /testprogs/ejs
parent7efeb8f451345b54ce125bcbb601ba2475ef9e59 (diff)
downloadsamba-a343050b2b91067d70eafd5ade88d6a3637be236.tar.gz
samba-a343050b2b91067d70eafd5ade88d6a3637be236.tar.bz2
samba-a343050b2b91067d70eafd5ade88d6a3637be236.zip
r8257: add a samr rpc test page in the web server. It lists all level3
information from QueryUserInfo for all users in the domain. If you want to see why I am putting the effort into ejs, then please read swat/scripting/samr.js, and compare it to other methods of rpc access for our web management interface. Using ejs like this will make building a rich interface _much_ easier. (This used to be commit eb354f6da7ed79eb080f2ba47df2ea655e1891db)
Diffstat (limited to 'testprogs/ejs')
-rw-r--r--testprogs/ejs/samr.js20
1 files changed, 5 insertions, 15 deletions
diff --git a/testprogs/ejs/samr.js b/testprogs/ejs/samr.js
index 4cbe7b9bc8..df54ca6062 100644
--- a/testprogs/ejs/samr.js
+++ b/testprogs/ejs/samr.js
@@ -25,16 +25,6 @@ function check_status_ok(status)
}
/*
- form a lsa_String
-*/
-function lsaString(s)
-{
- var o = new Object();
- o.string = s;
- return o;
-}
-
-/*
test the samr_Connect interface
*/
function test_Connect(conn)
@@ -67,7 +57,7 @@ function test_LookupDomain(conn, handle, domain)
var io = irpcObj();
print("Testing samr_LookupDomain\n");
io.input.connect_handle = handle;
- io.input.domain_name = lsaString(domain);
+ io.input.domain_name = domain;
status = dcerpc_samr_LookupDomain(conn, io);
check_status_ok(status);
return io.output.sid;
@@ -107,7 +97,7 @@ function test_EnumDomainUsers(conn, dom_handle)
}
var entries = io.output.sam.entries;
for (i=0;i<io.output.num_entries;i++) {
- print("\t" + entries[i].name.string + "\n");
+ print("\t" + entries[i].name + "\n");
}
}
@@ -130,7 +120,7 @@ function test_EnumDomainGroups(conn, dom_handle)
}
var entries = io.output.sam.entries;
for (i=0;i<io.output.num_entries;i++) {
- print("\t" + entries[i].name.string + "\n");
+ print("\t" + entries[i].name + "\n");
}
}
@@ -163,10 +153,10 @@ function test_EnumDomains(conn, handle)
}
var entries = io.output.sam.entries;
for (i=0;i<io.output.num_entries;i++) {
- print("\t" + entries[i].name.string + "\n");
+ print("\t" + entries[i].name + "\n");
}
for (i=0;i<io.output.num_entries;i++) {
- domain = entries[i].name.string;
+ domain = entries[i].name;
print("Testing domain " + domain + "\n");
sid = test_LookupDomain(conn, handle, domain);
dom_handle = test_OpenDomain(conn, handle, sid);