1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

160 Commits

Author SHA1 Message Date
Andrew Tridgell
2dc493eea6 r8639: moved loadparm calls into an ejs object 2007-10-10 13:29:48 -05:00
Andrew Tridgell
a978484738 r8638: continue the trend of maknig our C functions true ejs objects by making the string functions
into an object. To keep existing code working I have added:

  string_init(global);

into base.js. That brings the functions into the global scope for our
existing scripts
2007-10-10 13:29:48 -05:00
Andrew Tridgell
9e07c08a71 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.
2007-10-10 13:29:46 -05:00
Andrew Tridgell
318402ee4e r8598: move provisioning to /install/ directory from /esptest/ 2007-10-10 13:29:43 -05:00
Andrew Tridgell
1ad6b58783 r8594: more placeholder pages for server status 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
Deryck Hodge
28cc020a1a r8578: Fix overlapping sections in SWAT.
deryck
2007-10-10 13:29:40 -05:00
Andrew Tridgell
ed02d9989f r8565: put the docs menu on the right 2007-10-10 13:29:38 -05:00
Andrew Tridgell
da366042f4 r8560: added a newuser page in swat 2007-10-10 13:29:38 -05:00
Deryck Hodge
de6d5efade r8504: Temporary fix to #content width/height just to
pretty up things while I work.

deryck
2007-10-10 13:29:33 -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
Deryck Hodge
7ddc3ed5b8 r8479: * Sync CSS with current samba.org stylesheets.
* Add wide.css so it's availble for future pages.
* Move SWAT specific styles to swat.css to make future syncs easier.

deryck
2007-10-10 13:23:07 -05:00
Deryck Hodge
af893fe833 r8477: Simplify header/footer handling. esp variables allow
for individual page titles, so we don't need the split
header/footer here like we do on samba.org.

deryck
2007-10-10 13:23:07 -05:00
Tim Potter
156e090c2c r8403: Reinstate linkpad.gif at Deryck's suggestion.
Install *.gif from swat/images when installing swat.
2007-10-10 13:22:58 -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
c6f7ace333 r8354: work around a js bug found by tpot 2007-10-10 13:20:10 -05:00
Tim Potter
eaf9c455de r8353: Use a PNG instead of a GIF for padding. Also fixes a file not found
error as only PNG files were being installed by 'make installswat'.
2007-10-10 13:20:10 -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
2a444dedbe r8298: - started building a library of js routines in scripting/libjs/
- switched the existing test programs over to using the library

- added install of 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
41bae267e2 r7267: REMOTE_HOST is a better choice 2007-10-10 13:17:34 -05:00
Simo Sorce
8a98572a3b r7238: Add pam auth support in swat 2007-10-10 13:17:30 -05:00
Simo Sorce
2e3316be9f r7231: remove some old stuff 2007-10-10 13:17:29 -05:00
Deryck Hodge
95337ad27b r7171: Just learning my way around the new SWAT, and updating some
docs/specs in the menu...

Linking to XHTML specs since we're sending the pages as XHTML.
Also, added a link to CSS specs to go along with the CSS quick
reference card.
2007-10-10 13:17:22 -05:00
Andrew Tridgell
d0374ffc87 r7136: fixed a typo 2007-10-10 13:17:21 -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
134f42655e r7131: support sub-object arrays when displaying objects. This allows the ldb test to
correctly display multi-value attributes like objectClass
2007-10-10 13:17:20 -05:00
Andrew Tridgell
3f87d53d66 r7108: display a session expired message 2007-10-10 13:17:17 -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
790f861538 r7105: fixed a typo 2007-10-10 13:17:17 -05:00
Andrew Tridgell
df7280c5c8 r7101: moved favicon into images/ 2007-10-10 13:17:16 -05:00
Stefan Metzmacher
ad2d3991ba r7099: make the password field a password field...
metze
2007-10-10 13:17:16 -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
d1d8268675 r7091: added some more useful links 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
cb896a141a r7089: ensure that headers['HOST'] is setup 2007-10-10 13:17:14 -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
Stefan Metzmacher
ccc4d51927 r7070: fix redirection when the client
doesn't send a 'Host' header

metze
2007-10-10 13:17:12 -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