1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

39 Commits

Author SHA1 Message Date
Andrew Tridgell
f7b49ecd08 r8821: continue the trend to move to a more OO style of interface for our js
calls. This changes the generated RPC and IRPC calls to use the 'this'
object pointer instead of requiring the passing of the object on each
call. So typical usage is now:

var echo = echo_init();
var io = irpcObj();

status = echo.connect("ncacn_np:server");
assert(status.is_ok);

io.input.in_data = 7;
status = echo.AddOne(io);
assert(status.is_ok);
2007-10-10 13:30:08 -05:00
Andrew Tridgell
c2a450bb99 r8722: make the menu handling considerably saner and easier to follow. The whole
menu hierarchy is now in /menu.js
2007-10-10 13:29:59 -05:00
Andrew Tridgell
c45c4e335e r8720: split form object out to separate include file, and make it a real
object, with a display() method
2007-10-10 13:29:58 -05:00
Andrew Tridgell
8d0c9557a2 r8645: updated the ldb esp test for the new ldb ejs syntax
simo, when changing ejs syntax, please grep -r through the *.js and *.esp files to
fix all the callers. Thanks :)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
760cc6bea5 r8642: - fixed install of new swat files
- removed old provisioning items from esptest menu
2007-10-10 13:29:48 -05:00
Andrew Tridgell
2dc493eea6 r8639: moved loadparm calls into an ejs object 2007-10-10 13:29:48 -05:00
Andrew Tridgell
318402ee4e r8598: move provisioning to /install/ directory from /esptest/ 2007-10-10 13:29:43 -05:00
Andrew Tridgell
1aa658b756 r8591: - added a simple 2 level menu structure to swat. Deryck, I know this
isn't very pretty, and please feel free to do this much more nicely
  :-)

- added a top level menu listing our main servers

- added placeholder pages for the main servers

- added NBT server statistics
2007-10-10 13:29:42 -05:00
Andrew Tridgell
da366042f4 r8560: added a newuser page in swat 2007-10-10 13:29:38 -05:00
Andrew Tridgell
cf35818648 r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
a 'db' variable around. The ldb object knows what it is connected to.

Added a simple ldb testsuite in testprogs/ldb.js
2007-10-10 13:23:08 -05:00
Andrew Tridgell
98c9c4ecb8 r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
3093057d97 r8481: switched ldb ejs called over to an OO interface, so you do:
var ldb = ldb_init();

res = ldb.search(dbfile, "(objectClass=user)");

you can also do:

ldbSearch = ldb.search;
res = ldbSearch(dbfile, "(objectClass=user)");

if you want the old interface (ie. you can use this to import
functions into the global or local namespace).
2007-10-10 13:23:07 -05:00
Andrew Tridgell
7476cb9413 r8372: - split out provisioning logic into a separate ejs library
- added a provisioning web page
2007-10-10 13:20:13 -05:00
Andrew Tridgell
4d4a062af4 r8299: make the samr swat test use the samr.js lib 2007-10-10 13:19:33 -05:00
Andrew Tridgell
eb354f6da7 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.
2007-10-10 13:19:26 -05:00
Simo Sorce
2e3316be9f r7231: remove some old stuff 2007-10-10 13:17:29 -05:00
Andrew Tridgell
aa43111aa5 r7134: a number of small changes to make the pages HTML compliant. The
builtin web validator in firefox sure is useful!
2007-10-10 13:17:20 -05:00
Andrew Tridgell
ac978d4124 r7132: - start a convention of making object constructors end in Obj, so we
now have FormObj(). This follows the style in the ejs manual

- make a new MenuObj object type, with a display_menu() to display
  it. This will make it easier to make different types of
  menus. Currently only veritical simple menus are supported.
2007-10-10 13:17:20 -05:00
Andrew Tridgell
104d47a745 r7106: the web interface now works completely with or without cookies. If you have cookies
they will be used, otherwise you will see URLs with ?SwatSessionId=XXX on the end.
2007-10-10 13:17:17 -05:00
Andrew Tridgell
b45ddce5dd r7097: removed a debug line 2007-10-10 13:17:16 -05:00
Andrew Tridgell
33d21d35fe r7096: added support for select lists in forms 2007-10-10 13:17:15 -05:00
Andrew Tridgell
314bc44afe r7095: more html tidying 2007-10-10 13:17:15 -05:00
Andrew Tridgell
9b8546f921 r7094: use the Form() object in a few more places 2007-10-10 13:17:15 -05:00
Andrew Tridgell
ddccf6d2f5 r7093: - added a new Form() ejs object for producing simple forms.
- tidied up the html generation a bit
2007-10-10 13:17:15 -05:00
Andrew Tridgell
5f91db4d60 r7092: added some js for formatting table results in a nicer fashion 2007-10-10 13:17:15 -05:00
Andrew Tridgell
90b50ed983 r7090: added back in the showvars test 2007-10-10 13:17:15 -05:00
Andrew Tridgell
86d2ecf0f2 r7088: start on some real structure for the SWAT web pages
- this imports the basic css pages from samba.org

- i have created some useful ejs scripts in common.js that will be included by all pages

- added a real login page, and a logout button showing who you are logged in as

- added page_header() and page_footer() functions that take a page type, allowing
  for "plain" or "columms" pages

- added some simple menus on the left of the columns page type, with links to the esp
  tests and some useful links for samba4 developers
2007-10-10 13:17:14 -05:00
Simo Sorce
36d9054074 r7058: Add experimenthal pam authentication for web pages 2007-10-10 13:17:10 -05:00
Andrew Tridgell
624c7a76e8 r7056: added links to ejs and esp info pages 2007-10-10 13:17:09 -05:00
Andrew Tridgell
0fe835b16c r7054: added a example script showing ldbSearch() usage 2007-10-10 13:17:09 -05:00
Andrew Tridgell
5912cf2cd4 r7044: vance is right that mixing http and https elements gives a warning in IE 2007-10-10 13:17:08 -05:00
Andrew Tridgell
94308d8fed r7019: - added esp call lpServices() which returns a list of services in smb.conf.
- added a test of lpServices() in the esptest scripts
2007-10-10 13:17:07 -05:00
Andrew Tridgell
814c3674f8 r7015: use a scripting trick to force images to be sent with http instead of https, which
should make the server more responsive
2007-10-10 13:17:06 -05:00
Andrew Tridgell
96c15646d2 r7005: added a esp page to demonstrate exception handling 2007-10-10 13:17:05 -05:00
Andrew Tridgell
a9f0caaaf3 r7003: added an example script for fetching smb.conf parameters from esp scripts 2007-10-10 13:17:04 -05:00
Andrew Tridgell
092ffc7339 r6999: - renamed our html files to esp
- added a favicon.ico so bookmarks show a samba icon

- added a session.esp demonstration of session variables
2007-10-10 13:17:04 -05:00
Andrew Tridgell
af3de9468e r6989: - added support for esp style includes (which include a esp file, instead of a ejs file)
- added a test of esp style includes to the esptest html
2007-10-10 13:17:03 -05:00
Andrew Tridgell
a1eb98722d r6988: added a test of esp include() calls 2007-10-10 13:17:02 -05:00
Andrew Tridgell
d747b06339 r6985: rearranged the directory structure so as to make it possible to support esp include() call 2007-10-10 13:17:02 -05:00