1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

135 Commits

Author SHA1 Message Date
Andrew Bartlett
a5e7c17c34 r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.
Doing this required reworking ejsnet, particularly so it could take a
set of credentials, not just a username and password argument.

This required fixing the ejsnet.js test script, which now adds and
deletes a user, and is run from 'make test'.  This should prevent it
being broken again.

Deleting a user from ejsnet required that the matching backend be
added to libnet, hooking fortunetly onto already existing code for the
actual deletion.

The js credentials interface now handles the 'set machine account' flag.

New functions have been added to provision.js to wrap the basic
operations (so we can write a command line version, as well as the web
based version).

Andrew Bartlett
2007-10-10 13:50:59 -05:00
Andrew Bartlett
630b4b4dc5 r12887: Add the icon from samba.org to SWAT.
Andrew Bartlett
2007-10-10 13:50:58 -05:00
Andrew Bartlett
fd176997b6 r12826: The base DN is very tied to the realm. Allowing it to be changed here
only allows stuffups, but doesn't benifit anyone.  (If we were to
allow it, we should have it change every time the realm is modified,
character by character).

The command line provision script doesn't allow this either.

Andrew Bartlett
2007-10-10 13:50:02 -05:00
Andrew Bartlett
002cdcf3ca r12823: Fix up the provison and newuser code in SWAT. This also cleans up the
main provision script a bit, as the argument list was getting out of
control.  (It has been replaced in part with an object).

This also returns the session_info from the auth code into ejs.

We still need access control allowing only root to re-provision.

Andrew Bartlett
2007-10-10 13:50:02 -05:00
Andrew Bartlett
7a7b2668c0 r12819: Fix swat authentication again. We need to pass the socket_address
structure around, so the auth code knows where the request came from.

Andrew Bartlett
2007-10-10 13:50:01 -05:00
Andrew Bartlett
b349d2fbfe r12739: Add support for using credentials in the provision process.
This should allow us to provision to a 'normal' LDAP server.

Also add in 'session info' hooks (unused).  Both of these need to be
hooked in on the webserver.

Andrew Bartlett
2007-10-10 13:49:48 -05:00
Andrew Bartlett
4e1a60a24f r12232: I hate SWAT code being outside 'source'. Add in code to push the
user's session info into ldb structure for the ldb tests.

Andrew Bartlett
2007-10-10 13:47:22 -05:00
Deryck Hodge
e7015c1937 r10228: Reorganizing a bit, trying to simplify. This is an attempt
to find what's going wrong in IE formatting.

This is some better, but still IE needs help.

deryck
2007-10-10 13:38:09 -05:00
Deryck Hodge
b10d1d522c r10225: Adding back a style rule to qooxdoo that was originally
removed.  This is a cross browser hack that makes for
better performance amone differing browsers.

deryck
2007-10-10 13:38:09 -05:00
Deryck Hodge
3264ccf743 r10212: An IE fix. Must set initial values in the onload function.
deryck
2007-10-10 13:38:08 -05:00
Jelmer Vernooij
87f25fe49c r10190: Do some very basic input checking when provisioning. 2007-10-10 13:38:06 -05:00
Jelmer Vernooij
d02834f88d r9831: Check whether the two admin passwords entered were equal. 2007-10-10 13:36:16 -05:00
Jelmer Vernooij
488d737fb0 r9816: Work on testsuite for upgrade
Add 'paths' object to provision code.
2007-10-10 13:35:04 -05:00
Deryck Hodge
f0c7b43767 r9779: Add a contextmenu function to be used by all window/widget objects.
deryck
2007-10-10 13:35:00 -05:00
Deryck Hodge
a70b52bb04 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
2007-10-10 13:34:57 -05:00
Deryck Hodge
6acc7ec7c2 r9761: Move initial widget setup to desktop library. Now, just by including
desktop.js, you get the basic desktop layout.

deryck
2007-10-10 13:34:57 -05:00
Deryck Hodge
92d6bb90a6 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
2007-10-10 13:34:57 -05:00
Jelmer Vernooij
a8f309aa81 r9756: One-way upgrade from Samba3->Samba4 basically works now
Still need to polish some rough edges
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
8baa2ac377 r9754: Upgrading with the command line utility now works, at least partially (-:
Upgrading using SWAT should work as well now.
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
d569465dc4 r9735: More work on generating a valid Samba4 configuration using the
Samba3 data (both console and SWAT)
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
b1844905d2 r9718: Work a bit on the SWAT interface 2007-10-10 13:34:53 -05:00
Deryck Hodge
4acd4489c9 r9710: Filename change for clarity's sake.
deryck
2007-10-10 13:34:52 -05:00
Andrew Tridgell
2673bebf13 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
2007-10-10 13:34:39 -05:00
Deryck Hodge
1f4e65ce96 r9668: Cross-browser fix for IE, when adding scripts on the fly.
deryck
2007-10-10 13:34:38 -05:00
Deryck Hodge
87cb23aae3 r9663: Portability fix for IE.
deryck
2007-10-10 13:34:38 -05:00
Deryck Hodge
9d5482d2aa 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
2007-10-10 13:34:38 -05:00
Deryck Hodge
b4f6f81d7b 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
2007-10-10 13:34:36 -05:00
Andrew Tridgell
ef61c8de2f r9610: use a list of allowable extensions for unauthenticated access rather than
a list of file names
2007-10-10 13:34:34 -05:00
Deryck Hodge
f95bf0adf7 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
2007-10-10 13:34:31 -05:00
Andrew Tridgell
10b1f95790 r9501: fixed the SWAT login page for the changes to the userAuth() function that Mimir made
earlier today
2007-10-10 13:34:23 -05:00
Andrew Tridgell
c22baee5aa r9498: converted the SWAT regedit backend code to use the OO calls 2007-10-10 13:34:22 -05:00
Deryck Hodge
93e648ade2 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
2007-10-10 13:34:19 -05:00
Andrew Tridgell
e68db751f0 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 :-)
2007-10-10 13:34:19 -05:00
Deryck Hodge
eeacd73ef2 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
2007-10-10 13:34:19 -05:00
Andrew Tridgell
62d55a250a r9466: add display of values as well as keys in the registry editor 2007-10-10 13:34:19 -05:00
Andrew Tridgell
6f69eeb8f2 r9465: handle encoding and decoding of pointers, representing them as a
string containing "(POINTER)"
2007-10-10 13:34:18 -05:00
Deryck Hodge
dadc89f883 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
2007-10-10 13:34:15 -05:00
Andrew Tridgell
8295eb01c0 r9434: moved the registry editor into a common js library. Deryck, does this
look ok? Apologies if this treads on your toes.
2007-10-10 13:34:14 -05:00
Deryck Hodge
435467f90d 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
2007-10-10 13:33:34 -05:00
Deryck Hodge
71291f0d56 r9328: Remove background:ThreeDFace from qooxdoo styles to
get our samba.org background bacl.

deryck
2007-10-10 13:33:24 -05:00
Deryck Hodge
6040f9401e 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
2007-10-10 13:33:24 -05:00
Deryck Hodge
8a3445499e r9232: Rename some objects to make code clear.
deryck
2007-10-10 13:31:34 -05:00
Deryck Hodge
79f276df47 r9230: Star out passwords and add confim text input for provisioning.
Also, add addMethod() to form elements now.

deryck
2007-10-10 13:31:34 -05:00
Andrew Tridgell
bb3ab2c47b r9228: cleanup and simplify the AJAJ code - part 2 2007-10-10 13:31:34 -05:00
Andrew Tridgell
ceb7669e59 r9227: cleanup and simplify the AJAJ code 2007-10-10 13:31:34 -05:00
Andrew Tridgell
5cd33fa9f8 r9213: some improvements to the registry editor code 2007-10-10 13:31:32 -05:00
Andrew Tridgell
8073e84c7a 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
2007-10-10 13:31:31 -05:00
Andrew Tridgell
a08104a13c r9211: don't try to encode functions in the AJAJ object encoder 2007-10-10 13:31:31 -05:00
Andrew Tridgell
c1ef18a590 r9177: setup a credentials object in authinfo on login 2007-10-10 13:31:28 -05:00
Andrew Tridgell
11c7e8db3d r9176: added a much neater method of calling printf on the server from client side js. Just
use srv_printf() and normal printf arguments
2007-10-10 13:31:28 -05:00