Andrew Tridgell [Tue, 23 Aug 2005 02:00:43 +0000 (02:00 +0000)]
r9498: converted the SWAT regedit backend code to use the OO calls
Andrew Tridgell [Tue, 23 Aug 2005 02:00:09 +0000 (02:00 +0000)]
r9497: - converted the winreg library to a more OO style of interface
- added a reg.typestring() method that returns a string representation of a type
Andrew Tridgell [Tue, 23 Aug 2005 01:59:08 +0000 (01:59 +0000)]
r9496: added a regToVar() function that converts a registry blob variable to a ejs variable.
Andrew Tridgell [Tue, 23 Aug 2005 00:41:25 +0000 (00:41 +0000)]
r9495: - added an enum for winreg key types, making it easier to read the debug logs
- got rid of winreg_Time, as its just a NTTIME
James Peach [Tue, 23 Aug 2005 00:16:13 +0000 (00:16 +0000)]
r9494: Add ac-archive macro for checking GCC options. Use this to add to
developer CFLAGS to handle different versions of GCC.
Andrew Tridgell [Mon, 22 Aug 2005 23:35:01 +0000 (23:35 +0000)]
r9493: our test scripts need to use testok at the end or the errors don't annumulate between scripts
this is why the GetOptions bug wasn't caught by 'make test'
Andrew Tridgell [Mon, 22 Aug 2005 23:33:47 +0000 (23:33 +0000)]
r9492: it is more usual to return 'undefined' instead of 'false' on a call failing (unless the
call is returning a boolean anyway).
Unfortunately the new GetOptions syntax loses the ability for the caller to know why the
command line arguments were bad. Maybe we would be better always returning an object and
having an is_error element?
Andrew Tridgell [Mon, 22 Aug 2005 23:31:18 +0000 (23:31 +0000)]
r9491: fixed up a few scripts that need to be updated for the new GetOptions syntax. Mimir, its
a good idea to use grep -r to find places that need fixing when you change the syntax of
a call :-)
Andrew Bartlett [Mon, 22 Aug 2005 22:33:58 +0000 (22:33 +0000)]
r9490: Fix typo
Andrew Bartlett
Stefan Metzmacher [Mon, 22 Aug 2005 16:21:29 +0000 (16:21 +0000)]
r9482: add --validate and --dump-data options to ndrdump,
this allows us to check the differences in our pull and push code
metze
Alexander Bokovoy [Mon, 22 Aug 2005 16:02:11 +0000 (16:02 +0000)]
r9479: More fixes for explicit ignoring of returned result to fix Coverity warnings
Alexander Bokovoy [Mon, 22 Aug 2005 16:01:01 +0000 (16:01 +0000)]
r9478: Fix NTVFS POSIX module to work with EA and blkid after build system changes
Rafal Szczesniak [Mon, 22 Aug 2005 14:32:58 +0000 (14:32 +0000)]
r9477: Convert popt options to an ejs object. Doesn't seem to break anything
except of popt help (-h) option (unexpected ?).
rafal
Alexander Bokovoy [Mon, 22 Aug 2005 14:07:52 +0000 (14:07 +0000)]
r9476: Make intention to ignore result of receiving excplicit. Fixes warning found by Coverity
Stefan Metzmacher [Mon, 22 Aug 2005 12:08:14 +0000 (12:08 +0000)]
r9473: - assume the case that happens on most boxes, to remove compiler warnings on them
metze
Jelmer Vernooij [Mon, 22 Aug 2005 11:37:20 +0000 (11:37 +0000)]
r9472: Add read-only version of Samba3 registry database (doesn't compile yet)
Deryck Hodge [Mon, 22 Aug 2005 05:07:39 +0000 (05:07 +0000)]
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
Andrew Tridgell [Mon, 22 Aug 2005 03:48:48 +0000 (03:48 +0000)]
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 :-)
Deryck Hodge [Mon, 22 Aug 2005 03:38:31 +0000 (03:38 +0000)]
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
Andrew Tridgell [Mon, 22 Aug 2005 01:53:06 +0000 (01:53 +0000)]
r9466: add display of values as well as keys in the registry editor
Andrew Tridgell [Mon, 22 Aug 2005 01:52:22 +0000 (01:52 +0000)]
r9465: handle encoding and decoding of pointers, representing them as a
string containing "(POINTER)"
Andrew Tridgell [Mon, 22 Aug 2005 01:51:02 +0000 (01:51 +0000)]
r9464: fixed a problem with child pointers copied into non-allocated mpr variables. We
now use the same free technique as is used for mpr strings, rather than relying on
being a child of the variable
Jelmer Vernooij [Mon, 22 Aug 2005 00:22:21 +0000 (00:22 +0000)]
r9463: Fix DumpFunction() (was ignoring elements)
Fix use of pidl for people that don't have it installed...
Generate documentation for pidl debian package
Jelmer Vernooij [Mon, 22 Aug 2005 00:06:35 +0000 (00:06 +0000)]
r9462: Fix locations for generating the yapp files
Jelmer Vernooij [Sun, 21 Aug 2005 23:56:47 +0000 (23:56 +0000)]
r9461: Couple of very small fixes.
Jelmer Vernooij [Sun, 21 Aug 2005 23:30:17 +0000 (23:30 +0000)]
r9460: - Move pidl to lib/. This fixes standalone installation of pidl.
- Update the README
- Allow building the docs stand-alone
Jelmer Vernooij [Sun, 21 Aug 2005 23:17:35 +0000 (23:17 +0000)]
r9459: Move pidl up one level (to prevent too much nesting)
Jelmer Vernooij [Sun, 21 Aug 2005 20:01:10 +0000 (20:01 +0000)]
r9455: Support for reading the policy database
Jelmer Vernooij [Sun, 21 Aug 2005 19:04:41 +0000 (19:04 +0000)]
r9453: Add samba3_samaccount (fix the build)
Simo Sorce [Sun, 21 Aug 2005 17:20:34 +0000 (17:20 +0000)]
r9451: some fixes now core.schema and cosine.schema are also read properly
Jelmer Vernooij [Sun, 21 Aug 2005 17:19:14 +0000 (17:19 +0000)]
r9450: Initial work on reading group mapping database.
Jelmer Vernooij [Sun, 21 Aug 2005 17:18:35 +0000 (17:18 +0000)]
r9449: Add simple utility for dumping Samba3 domain information. Currently
only prints rids and usernames of users in passdb database.
Update plan
Jelmer Vernooij [Sun, 21 Aug 2005 15:45:16 +0000 (15:45 +0000)]
r9448: Work on reading the secrets tdb. Build tdbsam support by default.
Simo Sorce [Sun, 21 Aug 2005 14:26:03 +0000 (14:26 +0000)]
r9447: Add a new tool to convert openLdap schema files into an ldif
My first test with nis.schema seem to confirm it works properly
Use a command line like:
oLschema2ldif -I tests/schema/nis.schema -O nis_schema.ldif -b "dc=sambadom,dc=samba,dc=org"
to see how it works.
SSS
Simo Sorce [Sun, 21 Aug 2005 14:23:45 +0000 (14:23 +0000)]
r9446: clean up old test file
Jelmer Vernooij [Sun, 21 Aug 2005 13:19:36 +0000 (13:19 +0000)]
r9445: Support flags, add DATA_BLOB support
Deryck Hodge [Sun, 21 Aug 2005 05:41:48 +0000 (05:41 +0000)]
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
Jelmer Vernooij [Sun, 21 Aug 2005 02:12:25 +0000 (02:12 +0000)]
r9442: Support some more primitive types. Fix charset support.
Jelmer Vernooij [Sun, 21 Aug 2005 01:59:41 +0000 (01:59 +0000)]
r9441: Use "const char *" for fixed-size arrays with charset() because
these can require more elements in the local charset (usually UTF8) then
in the wire one.
Jelmer Vernooij [Sun, 21 Aug 2005 00:07:51 +0000 (00:07 +0000)]
r9440: Fix bug introduced by new zero-padding code. Caught by the buildfarm.
Jelmer Vernooij [Sat, 20 Aug 2005 23:36:43 +0000 (23:36 +0000)]
r9439: Make sure the remainder of the array is always initialized if the buffer is
larger then the string to be pushed.
Jelmer Vernooij [Sat, 20 Aug 2005 23:30:10 +0000 (23:30 +0000)]
r9438: Add initial files for ldb_map
Jelmer Vernooij [Sat, 20 Aug 2005 23:28:14 +0000 (23:28 +0000)]
r9437: Update PLAN and README for Samba3 compatibility layer
Add support for reading tdbsam files
Andrew Tridgell [Sat, 20 Aug 2005 22:45:48 +0000 (22:45 +0000)]
r9434: moved the registry editor into a common js library. Deryck, does this
look ok? Apologies if this treads on your toes.
Jelmer Vernooij [Sat, 20 Aug 2005 21:54:45 +0000 (21:54 +0000)]
r9433: - Update TODO & README
- Extend compatibility module (work towards being able to generate
Midl-compatible IDL files, pretty much just removing attributes
midl doesn't know such as value() and charset())
- Support charset() on fixed-size arrays of characters
Volker Lendecke [Sat, 20 Aug 2005 21:28:30 +0000 (21:28 +0000)]
r9431: Check an error code in BASE-DELETE.
Volker
Jelmer Vernooij [Sat, 20 Aug 2005 19:39:19 +0000 (19:39 +0000)]
r9430: Remove obsolete file.
Update pidl documentation, including description on ethereal conformance files
Nicer --help ouput
Jelmer Vernooij [Sat, 20 Aug 2005 18:32:44 +0000 (18:32 +0000)]
r9429: Update link to DCOM spec. Fix HRESULT values.
Tim Potter [Sat, 20 Aug 2005 11:42:11 +0000 (11:42 +0000)]
r9424: Remove duplicate interface name in DCERPC subdissector strings. Also
shorten some of the autogenerated function names.
Tim Potter [Sat, 20 Aug 2005 09:54:56 +0000 (09:54 +0000)]
r9423: Fix a typo.
Andrew Bartlett [Sat, 20 Aug 2005 08:30:41 +0000 (08:30 +0000)]
r9422: Include crypto.h header.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 07:59:00 +0000 (07:59 +0000)]
r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 07:31:29 +0000 (07:31 +0000)]
r9420: Fix the SPNEGO system again: Update the state position after
processing the state.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 07:04:13 +0000 (07:04 +0000)]
r9419: Silly, silly, untested mistake...
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 06:36:35 +0000 (06:36 +0000)]
r9418: SPNEGO fixes:
- Fix mixing of code and data
- send mechListMic again in SPENGO server
- only send optomistic first packet in the client.
Andrew Bartlett [Sat, 20 Aug 2005 06:14:46 +0000 (06:14 +0000)]
r9417: Ask for the ASYNC_REPLIES feature, as will want that.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 06:14:14 +0000 (06:14 +0000)]
r9416: Cleanups inspired by jra's work to migrate Samba4's NTLMSSP code back
into Samba3.
The NTLMSSP sign/seal code now assumes that GENSEC has already checked
to see if SIGN or SEAL should be permitted. This simplfies the code
ensures that no matter what the mech, the correct code paths have been
set in place.
Also remove duplication caused by the NTLMv2 code's history, and
document why some of the things a bit funny.
In SPNEGO, create a new routine to handle the negTokenInit creation.
We no longer send an OID for a mech we can't start (like kerberos on
the server without a valid trust account).
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 06:08:52 +0000 (06:08 +0000)]
r9415: Remove old kerberos code (including salt guessing code) that has only
caused me pain (and covourty warnings).
Simply gensec_gssapi to assume the properties of lorikeet-heimdal,
rather than having #ifdef around critical features. This simplifies
the code rather a lot.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 06:01:49 +0000 (06:01 +0000)]
r9414: Fix failure to find own domain info due to recent ldb_dn upgrade - we
don't use a simple char* here any more.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 06:00:50 +0000 (06:00 +0000)]
r9413: Bring Samba4 back up to date with lorikeet-heimdal.
Delete test_crypto_wrapping.c, previously included but unbuilt.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 05:59:27 +0000 (05:59 +0000)]
r9412: Simplfy this NTLM authentication code by requiring the caller to
supply the user_sess_key and lm_sess_key parameters. Inspired by
coverty complaining about inconsistant checking.
Also factor out some of this code, where we deal with just NT and LM
hashes, or embedded plaintext passwords.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Aug 2005 04:42:19 +0000 (04:42 +0000)]
r9411: Ensure we don't send a challenge without first getting a negotiate in
NTLMSSP, unless we are in datagram mode (not fully implemented yet).
Andrew Bartlett
Andrew Tridgell [Sat, 20 Aug 2005 04:40:08 +0000 (04:40 +0000)]
r9410: - a winreg_CloseKey() should return a zero key on success (zeroing the
callers key). This is the normal pattern with rpc handles.
- fixed reference to undefined error variable in winreg_DeleteKey()
Andrew Tridgell [Sat, 20 Aug 2005 04:38:35 +0000 (04:38 +0000)]
r9409: fix a problem that volker noticed with web page timeouts causing smbd
to crash. This is one of the downsides of the fact that the ejs engine
is not event driven, resulting in the rendering of each web page being
'semi-async'. We need to protect the web context from the timeout
processing until we have unwound the stack back to the point that the
'web' variable representing the page rendering logic won't be used any
more.
Andrew Bartlett [Sat, 20 Aug 2005 00:10:03 +0000 (00:10 +0000)]
r9406: Add const.
Andrew Bartlett
Deryck Hodge [Fri, 19 Aug 2005 12:02:30 +0000 (12:02 +0000)]
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
Andrew Bartlett [Thu, 18 Aug 2005 22:36:12 +0000 (22:36 +0000)]
r9396: ntlm_auth updates, including again support for the NTLMSSP client
mode, and specification of the workstation.
Andrew Bartlett
Simo Sorce [Thu, 18 Aug 2005 16:41:27 +0000 (16:41 +0000)]
r9394: avoid to use BOOL in ldb
Simo Sorce [Thu, 18 Aug 2005 16:27:09 +0000 (16:27 +0000)]
r9393: Fix ldb standalone build
Simo Sorce [Thu, 18 Aug 2005 16:18:48 +0000 (16:18 +0000)]
r9392: Fix ldb_dn_compose to make build farm happy
Add ldb_dn_string_compose so that you can build a dn starting from a
struct ldb_dn base and a set of parameters to be composed in a format
string with the same syntax of printf
Simo Sorce [Thu, 18 Aug 2005 15:02:01 +0000 (15:02 +0000)]
r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names
Provide more functions to handle DNs in this form
Andrew Tridgell [Thu, 18 Aug 2005 12:21:42 +0000 (12:21 +0000)]
r9390: fixed mixing of code and data
Andrew Tridgell [Thu, 18 Aug 2005 12:19:16 +0000 (12:19 +0000)]
r9389: handle errors reading from files in web server
bug found by coverity
Andrew Tridgell [Thu, 18 Aug 2005 11:16:32 +0000 (11:16 +0000)]
r9388: we should fault bad handles given to winreg_GetVersion()
Andrew Tridgell [Thu, 18 Aug 2005 11:15:15 +0000 (11:15 +0000)]
r9387: regedit uses "New Key #nn" for newly created keys, which conflicts with the stricter
DN rules in ldb. Escape the DN components to cope.
Simo, sorry for making a change in ldb_dn.c while you have changes
pending. Please feel free to revert these and switch reg_backend_ldb.c
to use the new dn construction code.
Andrew Tridgell [Thu, 18 Aug 2005 10:58:05 +0000 (10:58 +0000)]
r9386: OpenKey with a bad name must return WERR_BADFILE (w2k3 regedit relies on this)
Simo Sorce [Thu, 18 Aug 2005 10:23:53 +0000 (10:23 +0000)]
r9385: Remove unused functions
Andrew Tridgell [Thu, 18 Aug 2005 10:12:55 +0000 (10:12 +0000)]
r9384: added a debug to show the dcerpc fault code for any calls we fault
Andrew Tridgell [Thu, 18 Aug 2005 09:33:03 +0000 (09:33 +0000)]
r9383: remove unused file
Tim Potter [Thu, 18 Aug 2005 07:06:19 +0000 (07:06 +0000)]
r9382: Add a dummy registry for HKEY_USERS to get rid of the annoying dialog
presented by regedt32. I think this hive is dynamically generated
from SAM information.
Tim Potter [Thu, 18 Aug 2005 07:00:37 +0000 (07:00 +0000)]
r9381: Line wrapping.
Andrew Tridgell [Thu, 18 Aug 2005 06:19:32 +0000 (06:19 +0000)]
r9379: the valgrind test box is now just going past the max 30 minute smbd
runtime for testing. Increased to 45 minutes.
Andrew Tridgell [Thu, 18 Aug 2005 06:14:10 +0000 (06:14 +0000)]
r9378: initialise the last_mod attribute in the ldb backend. Better to return
0 than an uninitialised value, but we should put proper last_modified
time support into the ldb winreg backend in the future
Andrew Tridgell [Thu, 18 Aug 2005 05:09:26 +0000 (05:09 +0000)]
r9377: made winreg a user tool (I find it quite useful). I expect it to get the ability
to add/remove keys and values in the future.
add it to the standard tests, ensuring that we know if winreg
breaks. This is particularly important as winreg uses such unusual IDL
constructs
Andrew Tridgell [Thu, 18 Aug 2005 01:57:43 +0000 (01:57 +0000)]
r9374: HPUX is also missing setegid()
Stefan Metzmacher [Thu, 18 Aug 2005 01:24:08 +0000 (01:24 +0000)]
r9373: - create a hierachical memory tree with recursiv ndr_pull_* functions
- with this it's also possible to talloc_free() the ndr_pull structure
and talloc_steal(ndr->current_mem_ctx); to fetch the whole data of the hierachical tree
- if the toplevel struct is a valid talloc pointer it's also possible to use
NDR_PULL_SET_MEM_CTX(ndr, mem_ctx); to the the toplevel pointer with the struct pointer
(NOTE: no callers are using this yet, but they shortly will)
metze
Stefan Metzmacher [Thu, 18 Aug 2005 00:45:19 +0000 (00:45 +0000)]
r9372: - make the subcontext handling autogenerated code look nicer,
- unify the handling of subcontext, compression and obfucation
metze
Stefan Metzmacher [Thu, 18 Aug 2005 00:43:00 +0000 (00:43 +0000)]
r9371: add the usefull trick hack for NT_STATUS_NO_MEMORY too
metze
Andrew Tridgell [Thu, 18 Aug 2005 00:31:40 +0000 (00:31 +0000)]
r9370: need a configure test for setresuid()
Andrew Tridgell [Thu, 18 Aug 2005 00:20:40 +0000 (00:20 +0000)]
r9369: an attempt to fix the build on HPUX. This is based on work by Don
McCall, but takes a slightly different approach that I hope will be
more generic
Andrew Tridgell [Wed, 17 Aug 2005 13:14:40 +0000 (13:14 +0000)]
r9360: fixed the IDL for winreg_SetValue()
Andrew Tridgell [Wed, 17 Aug 2005 13:09:42 +0000 (13:09 +0000)]
r9359: don't check for size overflow if value is NULL
this gets viewing the product options in smbd HKLM from w2k3 regedit
working
Andrew Tridgell [Wed, 17 Aug 2005 13:06:05 +0000 (13:06 +0000)]
r9358: - opening a winreg key of "" is the same as re-opening the hive. The
w2k3 regedit does this.
- w2k3 expects null termination is string lengths
Tim Potter [Wed, 17 Aug 2005 12:51:07 +0000 (12:51 +0000)]
r9357: Remove DBGC_CLASS cruft copied over from Samba 3. I would like to
replace this with something funkier.
Andrew Tridgell [Wed, 17 Aug 2005 12:28:47 +0000 (12:28 +0000)]
r9356: a better way of coping with NULL arrays in the array bounds checking. This copes with the
case of size_is(*size) where size is NULL, and the array is NULL
Andrew Tridgell [Wed, 17 Aug 2005 12:27:28 +0000 (12:27 +0000)]
r9355: return the EnumKey and EnumValue list we have so far when we get a rpc fault
Andrew Tridgell [Wed, 17 Aug 2005 03:30:45 +0000 (03:30 +0000)]
r9347: this array bounds checking is harder than it looks ...
this copes with 2 more situations:
1) where the array is NULL, which would previously be coped with by a
if (ptr) check, but now in the deferred array bounds checking needs
to look at the array variable in the ndr code. Not nice.
2) nest the array checking along with the SCALARS vs BUFFERS checks, ensuring we don't
do array bounds checking for a buffer when in scalars only mode
Andrew Tridgell [Wed, 17 Aug 2005 02:56:39 +0000 (02:56 +0000)]
r9346: allow test_ldap.sh to be called when $CONFFILE is not set
Andrew Tridgell [Wed, 17 Aug 2005 02:56:07 +0000 (02:56 +0000)]
r9345: used the data blob functions in the echo.js test code
Andrew Tridgell [Wed, 17 Aug 2005 02:55:31 +0000 (02:55 +0000)]
r9344: started adding calls for manipulation of data blobs in ejs
added:
blobToArray()
blobFromArray()
blobCompare()