1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-02 08:58:33 +03:00

72 Commits

Author SHA1 Message Date
Andrew Tridgell
6e2ef3fa25 r8725: redirect to the base install page not the provisioning page on first
use
(This used to be commit eeeeab5eb7aff4fa3b25fa07a352eda74c44db6c)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
3c2a5aa63c r8724: some boilerplate installation text
(This used to be commit 5b28bdb9c800e8fbf2c7ee62a7c6faf2ec773ef9)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
dc2635efe3 r8723: fix esptest menu
(This used to be commit 5a52729d5b81336973adaf277d265445b78b2ea7)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
fdb322876d r8722: make the menu handling considerably saner and easier to follow. The whole
menu hierarchy is now in /menu.js
(This used to be commit c2a450bb9967caa666628f067a8e732227854ce2)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
23924170cc r8720: split form object out to separate include file, and make it a real
object, with a display() method
(This used to be commit c45c4e335ed5da1e2e43ffcb9e8d6c32678faa3c)
2007-10-10 13:29:58 -05:00
Andrew Tridgell
66526f5e4a r8718: try to improve the 2 level menu a bit.
Deryck, if you get a chance, could you see how to make this a little
"left and up" arrow instead of "Main Menu" ?
(This used to be commit c6c1b2998c68b40496fe605097900071704d6474)
2007-10-10 13:29:58 -05:00
Andrew Tridgell
0b650edc83 r8708: fixed an assert that abartlet found
(This used to be commit f5e6547c28b2069ae80da5037c5f8d0661da652c)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
2fd92cb1b4 r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed
(This used to be commit 78fb559c08d55c01f5ede81d43cdd857cce8d338)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
4512f76c1b 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 :)
(This used to be commit 8d0c9557a29a802800257af1bab38bfe57928c17)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
2f5f01567b r8643: - make lp_configfile() work again
- get rid of redundeny dyn_CONFIGFILE argument to lp_load()

- fixed provisioning to work with completely pristine install,
  creating an initial smb.conf is none is present

- added lp.set() and lp.reload() to loadparm ejs object interface
(This used to be commit c2691ef7126ddcee5f95970b78759b40a049d0a7)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
238a7e2f4c r8642: - fixed install of new swat files
- removed old provisioning items from esptest menu
(This used to be commit 760cc6bea5661245a8e4e18f103148281e31aaac)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
d5ac1f9bf4 r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7c28e415408e923bd9eefcd2d60f355)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
86d628a292 r8639: moved loadparm calls into an ejs object
(This used to be commit 2dc493eea6f9d87c40ad0dc755f528ce0b33ca47)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
620301858a 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
(This used to be commit a978484738168b82441c4dc4f5f803d349769a4b)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
e9c925f872 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)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
325edaa66a r8598: move provisioning to /install/ directory from /esptest/
(This used to be commit 318402ee4e8900e0d8ed1dce1e201f63ac4a908f)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
6c38e3324a r8594: more placeholder pages for server status
(This used to be commit 1ad6b5878352708fb8863b85492e308a6c588a54)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
342d11e354 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
(This used to be commit 1aa658b756903e7cb598302eddd18b7734937c83)
2007-10-10 13:29:42 -05:00
Deryck Hodge
8638d01a28 r8578: Fix overlapping sections in SWAT.
deryck
(This used to be commit 28cc020a1aaa2575b08b45f6334ab6b4de0b12f5)
2007-10-10 13:29:40 -05:00
Andrew Tridgell
18d64b6b7c r8565: put the docs menu on the right
(This used to be commit ed02d9989f934c5a81050246c1b63a23d0e335e2)
2007-10-10 13:29:38 -05:00
Andrew Tridgell
948183cb38 r8560: added a newuser page in swat
(This used to be commit da366042f48c70b4cd2e6efcae23a7f1777d3ed4)
2007-10-10 13:29:38 -05:00
Deryck Hodge
632b7ec0d0 r8504: Temporary fix to #content width/height just to
pretty up things while I work.

deryck
(This used to be commit de6d5efadeb1ac5c44c6c87481d20de3afbedb78)
2007-10-10 13:29:33 -05:00
Andrew Tridgell
94d99612b9 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
(This used to be commit cf35818648b5b649d0cd25f115a04b7b5b5311aa)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
4f62205cad r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo)
(This used to be commit 98c9c4ecb87e1b140002390067892806464849da)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
63535f566e 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).
(This used to be commit 3093057d9735cbb62f57e7159264d5a28b85320f)
2007-10-10 13:23:07 -05:00
Deryck Hodge
cac606ed8e 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
(This used to be commit 7ddc3ed5b87687a66995d2555c683efcb93be7e2)
2007-10-10 13:23:07 -05:00
Deryck Hodge
3b18fe06d6 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
(This used to be commit af893fe83346f516402d0d6271533eedefa0ce4b)
2007-10-10 13:23:07 -05:00
Tim Potter
b4f6a348bb r8403: Reinstate linkpad.gif at Deryck's suggestion.
Install *.gif from swat/images when installing swat.
(This used to be commit 156e090c2c0ec2c7bdf66405c3742839b82fe757)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
adb7fd18e5 r8372: - split out provisioning logic into a separate ejs library
- added a provisioning web page
(This used to be commit 7476cb94132cf2849ec19360468904ca6fe8de2c)
2007-10-10 13:20:13 -05:00
Andrew Tridgell
102e247611 r8354: work around a js bug found by tpot
(This used to be commit c6f7ace3333af31bc0d37264b3d8a75c79bb88e4)
2007-10-10 13:20:10 -05:00
Tim Potter
fdb91826aa 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'.
(This used to be commit eaf9c455de3025155fb502fb4c93eefa4eb13f7e)
2007-10-10 13:20:10 -05:00
Andrew Tridgell
3fb52d1b6e r8299: make the samr swat test use the samr.js lib
(This used to be commit 4d4a062af4ee34c5a3a2027ac1950ae3c8d39447)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
f9ff72cbda 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
(This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
a343050b2b 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)
2007-10-10 13:19:26 -05:00
Simo Sorce
b7bc13209f r7267: REMOTE_HOST is a better choice
(This used to be commit 41bae267e29614d300ec2505c927ab17ccbbe64f)
2007-10-10 13:17:34 -05:00
Simo Sorce
266c37e5dc r7238: Add pam auth support in swat
(This used to be commit 8a98572a3b5dba58181dc402dbebae5452656012)
2007-10-10 13:17:30 -05:00
Simo Sorce
9783b104e6 r7231: remove some old stuff
(This used to be commit 2e3316be9faf696fbb84e0a183de47418d7b9acd)
2007-10-10 13:17:29 -05:00
Deryck Hodge
2db5c6b1f8 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.
(This used to be commit 95337ad27bd0bb9bf45d03427eb7ec5422dca270)
2007-10-10 13:17:22 -05:00
Andrew Tridgell
d9c199a9f8 r7136: fixed a typo
(This used to be commit d0374ffc87da225dfe8e57d9c4ae859b288fc913)
2007-10-10 13:17:21 -05:00
Andrew Tridgell
ee21d32b25 r7134: a number of small changes to make the pages HTML compliant. The
builtin web validator in firefox sure is useful!
(This used to be commit aa43111aa5f9a183395ebd840d8f77867730ab23)
2007-10-10 13:17:20 -05:00
Andrew Tridgell
580b5bb8ef 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.
(This used to be commit ac978d4124f773d872dd15205d90a41dcec8a38f)
2007-10-10 13:17:20 -05:00
Andrew Tridgell
b8b680f3aa r7131: support sub-object arrays when displaying objects. This allows the ldb test to
correctly display multi-value attributes like objectClass
(This used to be commit 134f42655ed2e5e13dee25921b8cd4e1ca9a1396)
2007-10-10 13:17:20 -05:00
Andrew Tridgell
a0986dd424 r7108: display a session expired message
(This used to be commit 3f87d53d6614b514f1725b09e9964629b91dbbcc)
2007-10-10 13:17:17 -05:00
Andrew Tridgell
419598e1d1 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.
(This used to be commit 104d47a7458ecf03c0d5f969eaf2a98346928679)
2007-10-10 13:17:17 -05:00
Andrew Tridgell
0d00eba376 r7105: fixed a typo
(This used to be commit 790f861538c490fab0ab1028cef6ae1797dd2c15)
2007-10-10 13:17:17 -05:00
Andrew Tridgell
b77ba6e4d4 r7101: moved favicon into images/
(This used to be commit df7280c5c814c3c86fad1d2b0286b865a1f37179)
2007-10-10 13:17:16 -05:00
Stefan Metzmacher
e39bdcf930 r7099: make the password field a password field...
metze
(This used to be commit ad2d3991ba56d2779df66ff88ccbeb165ac23376)
2007-10-10 13:17:16 -05:00
Andrew Tridgell
9ab8ed3bab r7097: removed a debug line
(This used to be commit b45ddce5dd192d26a4799ae7f69cf236750fc09e)
2007-10-10 13:17:16 -05:00
Andrew Tridgell
69ed145260 r7096: added support for select lists in forms
(This used to be commit 33d21d35feaa0f7f9d4067e90495ca19374cea78)
2007-10-10 13:17:15 -05:00
Andrew Tridgell
2f055ca68b r7095: more html tidying
(This used to be commit 314bc44afe44ac6e9fcb194d54b8e1848adf94ed)
2007-10-10 13:17:15 -05:00