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

74 Commits

Author SHA1 Message Date
Jelmer Vernooij
b409d4120f r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
(This used to be commit 7a1eec6358)
2007-10-10 15:02:34 -05:00
Andrew Bartlett
ae0115d8db r23994: Finish my work to ensure that non-root and non-administrator users
cannot vampire, provision or upgrade a Samba4 server via SWAT.

(The previous commit was an accident, and not complete).

This should get Samba4 closer to being 'secure' for an alpha release.

Andrew Bartlett
(This used to be commit 3b6695de36)
2007-10-10 15:01:16 -05:00
Andrew Bartlett
3a1b90ec75 r23966: It isn't great, but at least now we have some access control in SWAT
This patch prevents non-root and non-administrator users from running
the provision, upgrade and vampire pages.  *I think* the rest of SWAT
is LDB operations, or otherwise authenticated, so we should now be
secure.

I wish I had a better way to 'prove' we got this right, but this is better than nothing, and moves us closer to an alpha.

Andrew Bartlett
(This used to be commit d61061052d)
2007-10-10 15:01:13 -05:00
Andrew Bartlett
815cf409eb r23351: Merge from SAMBA_4_0_RELEASE:
Fix a nasty issue we had with SWAT.  We could not provision into a
different domain, as we didn't re-calcuate the DOMAINDN after the user
changed it in the form.

Andrew Bartlett
(This used to be commit 430c998dc9)
2007-10-10 14:53:11 -05:00
Andrew Bartlett
8e292c6429 r23325: Remove items from menu that have been removed from SVN long ago, with
the start of the transition to the new SWAT.

Andrew Bartlett
(This used to be commit 96df61e3a8)
2007-10-10 14:53:11 -05:00
Andrew Bartlett
6ebe9f2a50 r23286: In SWAT, it was not possible to use a domain name other than the default.
Fix this in the same way the setup/provision script does.

Andrew Bartlett
(This used to be commit bed522df4b)
2007-10-10 14:53:08 -05:00
Rafal Szczesniak
0b11b6e173 r22501: dispatching events explicitly is not necessary.
rafal
(This used to be commit 01b1b2b36b)
2007-10-10 14:51:34 -05:00
Rafal Szczesniak
a07fb56da4 r22500: there's a better way to find out if there are any children
rafal
(This used to be commit ebc67bc0ae)
2007-10-10 14:51:34 -05:00
Rafal Szczesniak
5d2daefcf2 r22499: UsrCtx should be created within UsersView. Tree widget just
opens it and passes the domain name(s) to operate on (selectable
via combo box).

rafal
(This used to be commit c438284adf)
2007-10-10 14:51:34 -05:00
Rafal Szczesniak
9e752901b2 r22487: Add a separate widget class for listing users and reposition
things on NetManager's screen. Qooxdoo layout positioning can
be tricky sometimes...

rafal
(This used to be commit 3face29cc2)
2007-10-10 14:51:32 -05:00
Rafal Szczesniak
c8151033bf r22346: Fix small mistake - after sending rpc request we should go to await
rpc result state instead of idle.

rafal
(This used to be commit 00098b6d55)
2007-10-10 14:51:06 -05:00
Rafal Szczesniak
c2d5d6d046 r22325: Typo fix
rafal
(This used to be commit 543bbb4e56)
2007-10-10 14:51:02 -05:00
Rafal Szczesniak
671d785c16 r22324: Another step closer to nice listing of user accounts.
rafal
(This used to be commit 3f717e7fc7)
2007-10-10 14:51:02 -05:00
Rafal Szczesniak
c0b76be62f r22136: Fix incorrect event handling.
Submitted by John Jorgensen <jorgensen.john@gmail.com>

rafal
(This used to be commit f12a7f223d)
2007-10-10 14:49:54 -05:00
Rafal Szczesniak
cd5745d378 r22005: Add more code (doesn't work at the moment) preparing a place for
listing user accounts.

rafal
(This used to be commit aac34f79d0)
2007-10-10 14:49:41 -05:00
Rafal Szczesniak
fe0d6a1553 r21852: Further work on initialising libnet context from netmgr.
rafal
(This used to be commit 2ee075605e)
2007-10-10 14:49:37 -05:00
Derrell Lipman
894555b0a7 r21810: - The height of a widget is in relation to its enclosing widget. Specifying a
height of 100% means that if the enclosing widget is 100 pixels high, this
  widget should be 100 pixels high.  If this widget is then placed someplace
  other than at the top of the enclosing widget, e.g. with top:20, the bottom
  of this widget will fall off the bottom of the enclosing widget.

  The normal way to solve this is to specify top and bottom attributes rather
  than top and height attributes.  Also, since widgets often look better if
  they don't extend all the way to the very bottom, specifying a bottom
  attribute equal to the top attribute typically has an appealing appearance.

  I've fixed the tree widget so it no longer falls off the bottom of the page.
(This used to be commit 44d5f5ec6d)
2007-10-10 14:49:30 -05:00
Derrell Lipman
0f08bc3ab5 r21809: - If the canvas is never initialized with the tree, the tree will never
appear.  Now that the finite state machine properly ignores events from
  widgets which are not handled, the initialization of the tree should be done
  when the module's canvas appears (i.e. just after the canvas has had the
  module's gui applied to it).
(This used to be commit ab620c9554)
2007-10-10 14:49:30 -05:00
Derrell Lipman
3330a53acc r21808: - Fix a nasty bug in the finite state machine that allowed an event from a
non-handled widget to be processed as if the event originated from a handled
  widget.  This was allowing the appear event for the module's canvas in
  Mimir's Net Manager (an event which was not handled) to load the tree,
  followed by the tree appear event (intended to be handled, albeit
  incorrectly -- see subsequent check-in of Mimir's Fsm.js) to again load the
  tree, thus the double entry.

  Wow, the above paragraph is really hard to read. :-)
(This used to be commit 512dc61e84)
2007-10-10 14:49:30 -05:00
Rafal Szczesniak
0816228a62 r21787: Add new module to the swat application.
rafal
(This used to be commit de0f7c42be)
2007-10-10 14:49:26 -05:00
Rafal Szczesniak
95c3927e2b r21786: My initial attempts in qooxdoo coding. Derrell, please take
a look and I'll have a lot of questions to you.

rafal
(This used to be commit d92604ebd2)
2007-10-10 14:49:25 -05:00
Simo Sorce
17c82f1d12 r21371: Ehmm I was reseting the wrong dataModel...
(This used to be commit 37484924bc)
2007-10-10 14:48:21 -05:00
Simo Sorce
48a75e18c9 r21367: Clear out the table with a deleted object contents after the record is deleted.
Could be confusing otherwise.
(This used to be commit 115a8658c6)
2007-10-10 14:48:21 -05:00
Simo Sorce
bc9939430e r21366: Until we have a schema enforcing module (which will make it
impossible to add object without an objectclass), we need to
use the default ldb search filter (an empty one), to retrieve
all objects, and all record contents.
(This used to be commit fab315bb8c)
2007-10-10 14:48:20 -05:00
Simo Sorce
be8a93a1d8 r21328: Ok, now we can successfully modify the ldb and refresh the tree
but ...
- we have a problem with removeAll() in ldbmodify
- we seem to not properly cactch errors, we always return a "success"
  alert even if the operation is not successful :(
(This used to be commit 8ed568ae10)
2007-10-10 14:48:13 -05:00
Derrell Lipman
b79bf06232 r21326: get rid of old qooxdoo version.
(This used to be commit 39a4803ad1)
2007-10-10 14:48:12 -05:00
Derrell Lipman
ecfbc670c2 r21325: delete children in reverse order since the array is manipulated during the recursive delete
(This used to be commit 4ee68f55da)
2007-10-10 14:48:11 -05:00
Derrell Lipman
ad2f5649dd r21321: - Allow pruning all of the children of a node without removing the node
itself.

- By default, create only one meta column if only the tree is displayed.  If
  additional columns are displayed, then put all of them in a separate meta
  column, and the tree in the first meta column by itself.
(This used to be commit 6c86cd416b)
2007-10-10 14:48:10 -05:00
Derrell Lipman
cc3add596c r21304: - Get rid of the extra set of scroll bars in the tree. The tree never grows
or needs scroll bars; rather, it's internal areas within the tree widget
  that provide the scroll bars.  (The next version of TreeVirtual will prevent
  setting overflow to anything other than "hidden".)
(This used to be commit 2dc0748640)
2007-10-10 14:48:07 -05:00
Jelmer Vernooij
97416e6b01 r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
(This used to be commit 07652f65ce)
2007-10-10 14:48:04 -05:00
Derrell Lipman
6ac408eef8 r21287: Improve user feedback. Cursor now changes to stopwatch during RPC and module loading.
(This used to be commit a6fc47eff3)
2007-10-10 14:45:00 -05:00
Derrell Lipman
cb89806824 r21286: Tree column now resizes wiith splitter adjustment, but scrollbars don't yet update properly
(This used to be commit a66b64026a)
2007-10-10 14:44:59 -05:00
Derrell Lipman
7deea1aead r21285: - Add the new ResizeTableColumnModel and make use of it in TreeVirtual. This
allows the Ldb Browser tree to properly size itself upon initially appearing
  and upon window resizes.  There are still a few problems with it that I need
  to resolve, including an occasional set of double scrollbars, and making it
  resize the tree column when the splitter is resized.
(This used to be commit c3c93ad36a)
2007-10-10 14:44:59 -05:00
Simo Sorce
c58ab36d08 r21266: Add/Modify/Delete operations seem to work correctly now
Still no refresh, so the results may seem confusing
(This used to be commit 0cee51ca2e)
2007-10-10 14:44:56 -05:00
Simo Sorce
57a68c9317 r21252: Add operation works now, still to do mod and del ops
Need to implement tree refresh as well
(This used to be commit ed7e00e2a0)
2007-10-10 14:44:53 -05:00
Simo Sorce
f68a4f3d60 r21249: Now the ldif is generated correctly, but still rpc is not happy
(This used to be commit 3367f2fe69)
2007-10-10 14:44:53 -05:00
Derrell Lipman
cce1a4d323 r21248: - Test for Simo: no change of selected row(s) upon open/close click. Simo,
I haven't done any testing of this.  Please let me know the side effects, if
  any, of this change.
(This used to be commit c3c3030a7d)
2007-10-10 14:44:53 -05:00
Derrell Lipman
2811e18da0 r21221: 'make build' should be the default target for us
(This used to be commit ca3b806070)
2007-10-10 14:44:48 -05:00
Derrell Lipman
352729583f r21220: enable 'make source' (and 'make') to work properly
(This used to be commit 341e12496c)
2007-10-10 14:44:48 -05:00
Derrell Lipman
d3eef7270d r21187: - Convert LdbBrowse to use TreeVirtual. This adds the following capabilities
that Simo asked for:

  * One can now open a branch without selecting the row.  The previously
    selected row (if any) remains selected.

  * Selecting a row does not automatically open the branch.  That can be done
    by either clicking on the open/close button or pressing Enter while that
    row is selected.

  * The entire tree can now be disabled.  In LdbBrowse, the fsm is configured
    to disable the tree during each remote procedure call, so that a pile of
    requests don't get queued during RPC.

  The most obvious flaw with TreeVirtual right now, is that the tree does not
  properly resize (or even initially size itself) to its container.  Fixing
  that is my next task.  It's actually a generic Table issue that people have
  been asking for for ages: having columns resize themselves automagically.
(This used to be commit 23a8b77763)
2007-10-10 14:44:44 -05:00
Derrell Lipman
3798666804 r21185: Fix PNG images in TreeVirtual, for when using IE
(This used to be commit 1dde7f477b)
2007-10-10 14:44:44 -05:00
Derrell Lipman
a45ea9069c r21169: - Step 3: Upgrade qooxdoo release code with latest qooxdoo svn's Table and
TreeVirtual.  The TreeVirtual that was in the release was a very early
  pre-release, and had a number of problems and missing features.  This brings
  it up-to-date and provides what seems to be a pretty well-working and highly
  useful widget.
(This used to be commit 194880f1ff)
2007-10-10 14:44:39 -05:00
Derrell Lipman
0a5d888c24 r21168: - Step 2: Update swat for the latest qooxdoo version. The build now copies
only those icons which are actually used.  This means that instead of a few
  thousand files getting copied to /usr/local/samba/share/webapps (or
  wherever), the number is less than an order of magnitude fewer.  This should
  make Andrew happier yet.
(This used to be commit 754c4fe01f)
2007-10-10 14:44:39 -05:00
Derrell Lipman
ef256c9580 r21167: - Upgrade to latest released qooxdoo. This is step 1 of the upgrade process,
which involves adding the latest SDK.  This new version has not 2, but 4
  icon themes.  In order to quiet Andrew B. who thinks that 9000+ files in a
  gui api is too many (come on, disk space is free these days :-), I have
  removed 3 of the 4 icon themes, leaving only the default, Nuvola.  That
  lowers the file count by 1/3.  I'm sure Andrew still isn't happy, but I hope
  he's a bit happier...  Step 2 will make him happier yet.
(This used to be commit d161c1382c)
2007-10-10 14:44:34 -05:00
Simo Sorce
e587d7e2dd r21136: First attempt at implementing add/modify rpc calls.
The code does not work, but Derrell asked me to commit to analyze the problem.

Simo.
(This used to be commit 433591c430)
2007-10-10 14:44:32 -05:00
Simo Sorce
66fd3bccec r21126: Enhance the modal window so that it gets focus and just presing enter works.
Still I don't see the cursor :(

Swap -/+ buttons, you risk to delete an attribute by mistake when instead you want to add a new one,
and you might even not notice it.

Simo.
(This used to be commit afa61d5971)
2007-10-10 14:44:31 -05:00
Simo Sorce
11c9a98dc2 r21118: Looks a bit better ...
(This used to be commit e2d1f6d291)
2007-10-10 14:44:30 -05:00
Simo Sorce
0a4617bd9f r21095: Expose all naming contexts
(This used to be commit d25e828dbe)
2007-10-10 14:44:29 -05:00
Simo Sorce
be2ad3d8d4 r21065: The framework is complete (yes the gui layout still sucks but that will
be handled later)
next will be to build out the code to actually commit changes
(This used to be commit f0ddc50382)
2007-10-10 14:44:26 -05:00
Simo Sorce
de37adbf27 r21048: Start coding add/modify widgets.
Not functional yet.
(This used to be commit 9cd488cf57)
2007-10-10 14:44:25 -05:00