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

171 Commits

Author SHA1 Message Date
Andrew Kroeger
ebe5e83994 Convert some more files to GPLv3. 2008-03-28 01:08:49 -05:00
Andrew Bartlett
45747c2041 r26389: Merge SWAT changes from alpha2 back into main Samba4 tree.
Andrew Bartlett
2007-12-21 05:49:20 +01:00
Andrew Bartlett
080bfd5819 r25053: Show the user class alongside the username.
(Trying to figure out why we can't provision as an administrator).

Andrew Bartlett
2007-10-10 15:05:51 -05:00
Andrew Bartlett
13acff5ed2 r24985: Start to revert us back to the old-style SWAT, while trying not to
loose some of the fixes in the meantime.

Andrew Bartlett
2007-10-10 15:05:21 -05:00
Derrell Lipman
5f9f72a9cf r20446: rename swat directory to swat.obsolete; keeping it around since there is lots of useful info in it. 2007-10-10 14:35:23 -05:00
Derrell Lipman
bea98d5f1a r20445: add README file indicating that the swat directory is no longer relevant 2007-10-10 14:30:39 -05:00
Derrell Lipman
26a34037a7 r20414: Start to make SWAT usable by others. This is just a start... 2007-10-10 14:30:29 -05:00
Derrell Lipman
1f33d1276c r20399: More SWAT updates
The LDB Browser has now been rewritten as a SWAT module.  That brings the
current number of modules to three: Samba Statistics/Status, LDB Browser and
API Documentation.  This should provide a good working example for Brad and
his class, for how additional modules can be added.

The basic infrastructure for SWAT is now entirely in place.  Next step is to
deal with putting the qooxdoo developers' kit someplace, as it is required for
making changes to SWAT, and reorganizing the swat directory hierarchy to
remove (or move to elsewhere) a bunch of old cruft.  The final step will be
ensuring that SWAT installs during a Samba build, so that it becomes useful.
(Much of this "next" and "final" step stuff will likely have to wait until
after New Years.

Derrell
2007-10-10 14:30:23 -05:00
Derrell Lipman
466f17ea3c r20376: make module registration substantially cleaner 2007-10-10 14:30:19 -05:00
Derrell Lipman
233fc754c4 r20367: don't re-load API documentation each time the module is selected 2007-10-10 14:30:17 -05:00
Derrell Lipman
2080227ac6 r20366: remove auto-genereated file 2007-10-10 14:30:17 -05:00
Derrell Lipman
5b6b134a03 r20365: SWAT updates, part 2 2007-10-10 14:30:17 -05:00
Derrell Lipman
29db71587f r20364: SWAT updates, part 1
These next few check-ins will add a working Statistics module to SWAT, and add
an API Documentation module as well.

Next step will be to modify the LDB browser to work with this new module and
fsm structure.

Derrell
2007-10-10 14:30:16 -05:00
Derrell Lipman
53c5ac7ea6 r20350: configure svn:ignore values via a .ignore file 2007-10-10 14:30:14 -05:00
Derrell Lipman
7ddf1247ee r20348: don't check in auto-generated code 2007-10-10 14:29:43 -05:00
Derrell Lipman
68fd2c76e4 r20347: added generic rpc fsm and statistics-specific fsm. next step: statistics gui 2007-10-10 14:29:43 -05:00
Derrell Lipman
9302ef1017 r20346: This is the beginnings of a framework for a complete SWAT. It will provide
for easily adding modules, and using as much common code as possible.
Although all modules are loaded to the browser as part of the application,
modules are not actually initialized, their finite state machines generated,
or their graphical user interfaces built until they are selected to be viewed
for the first time.

I'm checking this in at this early stage because I promised Brad some
check-ins a week ago, and the flu has kept me unable to do anything for the
past 10 days.  Now that I'm back in working order, I hope to be building on
this regularly over the next few days.

Derrell
2007-10-10 14:29:42 -05:00
Derrell Lipman
23f8dd44cb r20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWAT
functionality: basic admin console.
2007-10-10 14:29:23 -05:00
Derrell Lipman
2406af1079 r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.

With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:

  JSON/qooxdoo -> ldb browser

Derrell
2007-10-10 14:21:33 -05:00
Derrell Lipman
802ede34e8 r19407: add a copyright notice 2007-10-10 14:21:27 -05:00
Derrell Lipman
0888c7098d r19406: ldbbrowse: done!
With ldbbrowse, you can issue searches or browse the database in tree format.
To try it, ensure that "make installswat" is done (it's run by "make install"
so you shouldn't have to do anything special).  Run smbd and connect with your
browser to http://localhost:901/apps/samba/utils/ldbbrowse.html

(It looks great in firefox.  There's some problem with the layout in IE.
Maybe if I get really really motivated one of these days, I'll look into that.)

There's lots more that could be done with it, but as an example of using
qooxdoo and JSON-RPC, I think it accomplishes its task.

Enjoy!

Derrell
2007-10-10 14:21:27 -05:00
Derrell Lipman
41ed250e02 r19384: ldbbrowse now has all basic functionality.
Issues left for the enterprising developers:

  - Selection of the ldb file to open.  This version always browses sam.ldb.

  - When issuing a search which returns a huge amount of data, firefox times
    out while adding the data to the page.  The ldb functions on the server
    should be upgraded to allow providing a starting offset in the result set,
    and a limit of how many results to return.  The application can then issue
    multiple requests if necessary, to limit the amount of processing needed
    to handle any single result set.

Next step for me is to make it look more like a Samba application and less
like a qooxdoo example application.  Per Tridge's request, I'll leave the
debug console on the page.

Derrell
2007-10-10 14:21:22 -05:00
Derrell Lipman
7789ad2372 r19382: latest qooxdoo runtime build 2007-10-10 14:21:22 -05:00
Derrell Lipman
ec63bd551b r19357: More ldbbrowse work.
The 'Browse' tab is now doing something seemingly fairly reasonable.  It's
entirely usable.  Still pending is dealing with attribute values whose length
exceeds the width of the column (even if dynamic resizing of the column is
inadequate).  A tooltip which pops up would be nice, but seems difficult to
achieve with the Table implementation since it's 'virtual' and the whole table
is one widget.

Derrell
2007-10-10 14:21:15 -05:00
Andrew Bartlett
9b77d285d8 r19318: Because we don't test the vampire code in SWAT very regularly, it bit-rotted.
Fix up interfaces and interaction between the two..

Andrew Bartlett
2007-10-10 14:21:08 -05:00
Derrell Lipman
6536e5a3c0 r19306: ldbbrowse: handle input of Base and Scope in search tab 2007-10-10 14:21:05 -05:00
Derrell Lipman
039069b3fd r19295: ldbbrowse: the search tab is now doing something vaguely reasonable. 2007-10-10 14:21:03 -05:00
Andrew Tridgell
b0fee976ed r19282: make the recent qooxdoo work that Derrell has done available via the
main menu
2007-10-10 14:21:02 -05:00
Derrell Lipman
0780cbcdcc r19259: An ldb browser.
This has the layout complete so anyone interested can see what a qooxdoo
application might look like.  It doesn't yet issue any JSON-RPC calls to do
anything useful (that's next), and it still has the appearance of a qooxdoo
test rather than something unique to Samba.  I'll adjust the appearance later.

This layout is loosely (or not so loosely) based on 'gq'.  A few things in
this layout won't apply to an ldb browser, but they're there for the time
being anyway until I decide exactly what to do with them.

Derrell
2007-10-10 14:20:59 -05:00
Derrell Lipman
ff28ab7314 r19141: add a reasonable subset of the qooxdoo runtime environment, and example applications 2007-10-10 14:20:40 -05:00
Derrell Lipman
de2eb8df0c r19140: allow own authentication handling by jsonrpc apps 2007-10-10 14:20:39 -05:00
Andrew Tridgell
dc74d8ccf1 r13102: fixed the vampire code to correctly setup foreign sids and default
unix name mappings
2007-10-10 13:51:25 -05:00
Andrew Tridgell
1b58756366 r13100: removed unused menu item 2007-10-10 13:51:25 -05:00
Andrew Tridgell
a6f5ad5289 r13075: tell the admin what needs to be done to finish the install 2007-10-10 13:51:22 -05:00
Andrew Bartlett
701558b5fe r12945: Try to move closer to getting Samba3 import working again.
There still a few things to work out

Andrew Bartlett
2007-10-10 13:51:12 -05:00
Andrew Bartlett
a38ceefd11 r12928: This patch improves the interaction between the vampire and provsion code.
Previously, we had to know (or guess) the host and domain guid at the
provision stage.  Now we query the database post-provision, to extract
the values and fill in the zone file.

This allows us to generate a correct zone file in the Windows migration case.

In an effort to make SWAT easier to use, I have removed and renamed
some of the provision options.

I have also fixed a nasty issue in my js code.  I had implictly
declared a global variable of the name 'join', with disasterious
results for any subsequent user of the string utility function:

esp exception - ASSERT at lib/appweb/ejs/ejsParser.c:2064, 0

Backtrace:
        [ 0]       substitute_var:20   ->               list[i] = join("", list2)
        [ 1]           setup_file:9    ->       data = substitute_var(data, subobj)

Andrew Bartlett
2007-10-10 13:51:07 -05:00
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