1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

171 Commits

Author SHA1 Message Date
Deryck Hodge
33f4328c69 r9763: Add the start bar as a widget from the
desktop file.  This is more portable to IE, though
there are still some IE issues hanging around.

deryck
(This used to be commit a70b52bb04)
2007-10-10 13:34:57 -05:00
Deryck Hodge
721b22f9cd r9761: Move initial widget setup to desktop library. Now, just by including
desktop.js, you get the basic desktop layout.

deryck
(This used to be commit 6acc7ec7c2)
2007-10-10 13:34:57 -05:00
Deryck Hodge
c1909be224 r9759: Create some wrappers for QxWidget. This gives us some pre-fabbed
windows, which set size and positioning.

To use:

var myWin = new Window.large("Some Window Title");
var myWin = new Window.standard("Some Window Title");
var myWin = new Window.small("Some Window Title");

You can omit the title if you don't need one.  Also,
var myWin = new Window();  will give you the random
positioning and no predetermined sizing.

deryck
(This used to be commit 92d6bb90a6)
2007-10-10 13:34:57 -05:00
Jelmer Vernooij
c9ace93ce2 r9756: One-way upgrade from Samba3->Samba4 basically works now
Still need to polish some rough edges
(This used to be commit a8f309aa81)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
11f3f0fa6c r9754: Upgrading with the command line utility now works, at least partially (-:
Upgrading using SWAT should work as well now.
(This used to be commit 8baa2ac377)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
0549763600 r9735: More work on generating a valid Samba4 configuration using the
Samba3 data (both console and SWAT)
(This used to be commit d569465dc4)
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
d6cd54fb0a r9718: Work a bit on the SWAT interface
(This used to be commit b1844905d2)
2007-10-10 13:34:53 -05:00
Deryck Hodge
707a237e76 r9710: Filename change for clarity's sake.
deryck
(This used to be commit 4acd4489c9)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
0a579e4ae5 r9674: r9678@blu: tridge | 2005-08-27 16:32:30 +1000
- removed the initial provision button. It is just way too confusing.
 We should have a separate 'migration' page instead, but in the
 meantime to migrate please use the command line

 - added a check for a blank password. If blank, then ask them
  to reenter it
(This used to be commit 2673bebf13)
2007-10-10 13:34:39 -05:00
Deryck Hodge
bcc288d880 r9668: Cross-browser fix for IE, when adding scripts on the fly.
deryck
(This used to be commit 1f4e65ce96)
2007-10-10 13:34:38 -05:00
Deryck Hodge
25c3942623 r9663: Portability fix for IE.
deryck
(This used to be commit 87cb23aae3)
2007-10-10 13:34:38 -05:00
Deryck Hodge
44a27265fb r9651: Start to group all SWAT specific windowing, widgets, etc. in one
file.  This allows basic style and event code to be set in one place,
though we'll still have to override for a specific position or look.

More to come...

deryck
(This used to be commit 9d5482d2aa)
2007-10-10 13:34:38 -05:00
Deryck Hodge
c6b592a5b7 r9635: Seperate window logic from registry js file.
This allows for flexibility in display format,
which will make more sense when I start working
on windows, tabs, etc.

Add the beginnings of a document.js object that allows
us to add and remove scripts as we use them, which will
ensure we only load what we need.  A desktop GUI runs
from a single page, so we can't load js files by changing
pages.

deryck
(This used to be commit b4f6f81d7b)
2007-10-10 13:34:36 -05:00
Andrew Tridgell
7f5bb2b866 r9610: use a list of allowable extensions for unauthenticated access rather than
a list of file names
(This used to be commit ef61c8de2f)
2007-10-10 13:34:34 -05:00
Deryck Hodge
9dfffdf4c0 r9579: Desktop SWAT opens now with a little server status window.
This includes a table layout that can be reused (see
QxListView in status.js).

Some formatting fixes, too.

deryck
(This used to be commit f95bf0adf7)
2007-10-10 13:34:31 -05:00
Andrew Tridgell
27a09eaaab r9501: fixed the SWAT login page for the changes to the userAuth() function that Mimir made
earlier today
(This used to be commit 10b1f95790)
2007-10-10 13:34:23 -05:00
Andrew Tridgell
f5f18f2d18 r9498: converted the SWAT regedit backend code to use the OO calls
(This used to be commit c22baee5aa)
2007-10-10 13:34:22 -05:00
Deryck Hodge
535c6fa436 r9471: Rough first pass at a menu system. It's hacked together, but
I wanted to just get it working to play with it.  Only the
reg editor works from this menu.  The rest will follow later.

deryck
(This used to be commit 93e648ade2)
2007-10-10 13:34:19 -05:00
Andrew Tridgell
656a885c22 r9470: non-working attempt to add a little table for values to the reg editor
hopefully deryck will be able to tell me what I've screwed up :-)
(This used to be commit e68db751f0)
2007-10-10 13:34:19 -05:00
Deryck Hodge
8005114fda r9469: Add a right-click menu to the SWAT desktop.
This includes a generic showMessage() for opening
a dialog window to the user.

Next is a start menu, and then I'll move on to more
practical functionality... user manager, server config, etc.

deryck
(This used to be commit eeacd73ef2)
2007-10-10 13:34:19 -05:00
Andrew Tridgell
f35e72d9ca r9466: add display of values as well as keys in the registry editor
(This used to be commit 62d55a250a)
2007-10-10 13:34:19 -05:00
Andrew Tridgell
f4aa80d88f r9465: handle encoding and decoding of pointers, representing them as a
string containing "(POINTER)"
(This used to be commit 6f69eeb8f2)
2007-10-10 13:34:18 -05:00
Deryck Hodge
375d11ac78 r9443: We can now move windows around anywhere on our SWAT "desktop".
QxWidget doesn't accept percentages, so I feed the toplevel
widget the actual brower height/width onload and onresize.

deryck
(This used to be commit dadc89f883)
2007-10-10 13:34:15 -05:00
Andrew Tridgell
2997f4bd43 r9434: moved the registry editor into a common js library. Deryck, does this
look ok? Apologies if this treads on your toes.
(This used to be commit 8295eb01c0)
2007-10-10 13:34:14 -05:00
Deryck Hodge
d9c4ff9ef0 r9397: Playing with qooxdoo a bit and saving my work, so I
can get to it later today at work.  Not much to see yet,
and not linked to from SWAT yet.

Playing with the idea of a web-based desktop, and just
seeing how widgets can be used.

deryck
(This used to be commit 435467f90d)
2007-10-10 13:33:34 -05:00
Deryck Hodge
3029657053 r9328: Remove background:ThreeDFace from qooxdoo styles to
get our samba.org background bacl.

deryck
(This used to be commit 71291f0d56)
2007-10-10 13:33:24 -05:00
Deryck Hodge
a9c00a7a72 r9327: Rename parent to fParent to prevent confusion with window.parent object.
(Thanks, Derrell, for the reminder.)
Rename child to fChild, to be consistent and maintain readability.

deryck
(This used to be commit 6040f9401e)
2007-10-10 13:33:24 -05:00
Deryck Hodge
f870014fc3 r9232: Rename some objects to make code clear.
deryck
(This used to be commit 8a3445499e)
2007-10-10 13:31:34 -05:00
Deryck Hodge
55024676c7 r9230: Star out passwords and add confim text input for provisioning.
Also, add addMethod() to form elements now.

deryck
(This used to be commit 79f276df47)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
d3751c4525 r9228: cleanup and simplify the AJAJ code - part 2
(This used to be commit bb3ab2c47b)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
8942ac69f0 r9227: cleanup and simplify the AJAJ code
(This used to be commit ceb7669e59)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
32015e5cdc r9213: some improvements to the registry editor code
(This used to be commit 5cd33fa9f8)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
c8dfaec28a r9212: the beginnings of a registry editor in SWAT, using client side javascript and AJAJ
This doesn't work at all well yet, mostly because of my inexperience
with client side javascript and what events are available
(This used to be commit 8073e84c7a)
2007-10-10 13:31:31 -05:00
Andrew Tridgell
2dcd55f31f r9211: don't try to encode functions in the AJAJ object encoder
(This used to be commit a08104a13c)
2007-10-10 13:31:31 -05:00
Andrew Tridgell
c28816e74b r9177: setup a credentials object in authinfo on login
(This used to be commit c1ef18a590)
2007-10-10 13:31:28 -05:00
Andrew Tridgell
9f4444331a r9176: added a much neater method of calling printf on the server from client side js. Just
use srv_printf() and normal printf arguments
(This used to be commit 11c7e8db3d)
2007-10-10 13:31:28 -05:00
Andrew Tridgell
0aa43d9231 r9175: simplify the example code a bit
(This used to be commit fbae296866)
2007-10-10 13:31:28 -05:00
Stefan Metzmacher
b2b89d654d r9143: print out the rate of rounttrips
metze
(This used to be commit c0e055ac98)
2007-10-10 13:31:22 -05:00
Andrew Tridgell
f8b04830d7 r9140: fixed a typo
(This used to be commit 672b8c3971)
2007-10-10 13:31:22 -05:00
Andrew Tridgell
e9737799b4 r9139: cleanup the layout a bit
(This used to be commit c21fe071e7)
2007-10-10 13:31:22 -05:00
Andrew Tridgell
baf66d8626 r9136: made the 'AJAJ' code portable to IE and Opera
(This used to be commit b6b531533e)
2007-10-10 13:31:21 -05:00
Andrew Tridgell
a281077935 r9135: added a sample page that demonstrates using AJAJ to make remote calls
that update an object
(This used to be commit 678b0cc08f)
2007-10-10 13:31:21 -05:00
Andrew Tridgell
3a02c8b116 r9134: added the client side js library code for handling remote 'AJAJ' calls
into our web server
(This used to be commit 530717122a)
2007-10-10 13:31:21 -05:00
Andrew Tridgell
8808465e5b r9133: a huge import of the qooxdoo infrastructure. I decided to import all the widgets to make experimenting easy during development. We can trim this back later to only the pieces we use
(This used to be commit 631a56da39)
2007-10-10 13:31:20 -05:00
Rafal Szczesniak
1254a6da23 r8969: Make password field a password field, that is - prevent them from
displaying plain text.

rafal
(This used to be commit b91e605348)
2007-10-10 13:31:01 -05:00
Andrew Bartlett
d14fd78a43 r8844: Actually, both types of provision wipe the DB. But we do need a way
to explian the tie between 'Initial Provision' and the next step being
a SamSync or a Samba3 import etc.

Andrew Bartlett
(This used to be commit b37a2de9a8)
2007-10-10 13:30:10 -05:00
Alexander Bokovoy
7c948bb2a3 r8831: Clarify data wipe-out statement
(This used to be commit 981e17eea4)
2007-10-10 13:30:10 -05:00
Alexander Bokovoy
b1e8d70123 r8830: Fix provision script after data split
(This used to be commit 99d676d732)
2007-10-10 13:30:10 -05:00
Andrew Tridgell
f6d2892faa 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);
(This used to be commit f7b49ecd08)
2007-10-10 13:30:08 -05:00
Andrew Tridgell
6e2ef3fa25 r8725: redirect to the base install page not the provisioning page on first
use
(This used to be commit eeeeab5eb7)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
3c2a5aa63c r8724: some boilerplate installation text
(This used to be commit 5b28bdb9c8)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
dc2635efe3 r8723: fix esptest menu
(This used to be commit 5a52729d5b)
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 c2a450bb99)
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 c45c4e335e)
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 c6c1b2998c)
2007-10-10 13:29:58 -05:00
Andrew Tridgell
0b650edc83 r8708: fixed an assert that abartlet found
(This used to be commit f5e6547c28)
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 78fb559c08)
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 8d0c9557a2)
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 c2691ef712)
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 760cc6bea5)
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 ed4fb68ef7)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
86d628a292 r8639: moved loadparm calls into an ejs object
(This used to be commit 2dc493eea6)
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 a978484738)
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 9e07c08a71)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
325edaa66a r8598: move provisioning to /install/ directory from /esptest/
(This used to be commit 318402ee4e)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
6c38e3324a r8594: more placeholder pages for server status
(This used to be commit 1ad6b58783)
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 1aa658b756)
2007-10-10 13:29:42 -05:00
Deryck Hodge
8638d01a28 r8578: Fix overlapping sections in SWAT.
deryck
(This used to be commit 28cc020a1a)
2007-10-10 13:29:40 -05:00
Andrew Tridgell
18d64b6b7c r8565: put the docs menu on the right
(This used to be commit ed02d9989f)
2007-10-10 13:29:38 -05:00
Andrew Tridgell
948183cb38 r8560: added a newuser page in swat
(This used to be commit da366042f4)
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 de6d5efade)
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 cf35818648)
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 98c9c4ecb8)
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 3093057d97)
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 7ddc3ed5b8)
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 af893fe833)
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 156e090c2c)
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 7476cb9413)
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 c6f7ace333)
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 eaf9c455de)
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 4d4a062af4)
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 2a444dedbe)
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 eb354f6da7)
2007-10-10 13:19:26 -05:00
Simo Sorce
b7bc13209f r7267: REMOTE_HOST is a better choice
(This used to be commit 41bae267e2)
2007-10-10 13:17:34 -05:00
Simo Sorce
266c37e5dc r7238: Add pam auth support in swat
(This used to be commit 8a98572a3b)
2007-10-10 13:17:30 -05:00
Simo Sorce
9783b104e6 r7231: remove some old stuff
(This used to be commit 2e3316be9f)
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 95337ad27b)
2007-10-10 13:17:22 -05:00
Andrew Tridgell
d9c199a9f8 r7136: fixed a typo
(This used to be commit d0374ffc87)
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 aa43111aa5)
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 ac978d4124)
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 134f42655e)
2007-10-10 13:17:20 -05:00
Andrew Tridgell
a0986dd424 r7108: display a session expired message
(This used to be commit 3f87d53d66)
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 104d47a745)
2007-10-10 13:17:17 -05:00
Andrew Tridgell
0d00eba376 r7105: fixed a typo
(This used to be commit 790f861538)
2007-10-10 13:17:17 -05:00
Andrew Tridgell
b77ba6e4d4 r7101: moved favicon into images/
(This used to be commit df7280c5c8)
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 ad2d3991ba)
2007-10-10 13:17:16 -05:00
Andrew Tridgell
9ab8ed3bab r7097: removed a debug line
(This used to be commit b45ddce5dd)
2007-10-10 13:17:16 -05:00
Andrew Tridgell
69ed145260 r7096: added support for select lists in forms
(This used to be commit 33d21d35fe)
2007-10-10 13:17:15 -05:00
Andrew Tridgell
2f055ca68b r7095: more html tidying
(This used to be commit 314bc44afe)
2007-10-10 13:17:15 -05:00
Andrew Tridgell
1bf7a917b2 r7094: use the Form() object in a few more places
(This used to be commit 9b8546f921)
2007-10-10 13:17:15 -05:00