svn commit: samba r9375 - in branches/SOC/SAMBA_4_0: . source/auth source/auth/gensec source/build/m4 source/build/pidl/Parse/Pidl/Samba source/build/pidl/Parse/Pidl/Samba/NDR source/heimdal_build source/include source/lib source/lib/ldb/common source/lib/registry source/lib/registry/common source/lib/replace source/librpc/idl source/librpc/ndr source/ntvfs/unixuid source/passdb source/rpc_server/winreg source/script/tests source/scripting/ejs source/scripting/libjs source/setup source/smb_server source/torture/rpc source/utils swat/esptest swat/style/qooxdoo testprogs/ejs

brad at samba.org brad at samba.org
Thu Aug 18 03:04:59 GMT 2005


Author: brad
Date: 2005-08-18 03:04:50 +0000 (Thu, 18 Aug 2005)
New Revision: 9375

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9375

Log:
 r5474 at buttercup:  j0j0 | 2005-08-17 21:12:49 -0600
  r at buttercup:  j0j0 | 2005-08-17 21:10:01 -0600
   r5442 at buttercup (orig r9318):  metze | 2005-08-16 00:55:40 -0600
   fix searches with scope ONE and SUB,
   
   the problem was that ldb_dn_compare_base() just looked at if
   both dn's mtach some how, and the following happens:
   
   basedn: CN=bar,DC=foo,DC=com
   dn: DC=foo,DC=com
   
   and dn: DC=foo,DC=com was return as result of a sub and base search
   
   and also the ONE search with
   basedn: DC=foo,DC=com
   
   returned this
   
   dn: CN=bla,CN=bar,DC=foo,DC=com
   
   metze
   r5443 at buttercup (orig r9319):  tridge | 2005-08-16 04:52:02 -0600
   updated newuser script for new OO style for nss object
   
   thanks to Hotarut for spotting this
   
   r5444 at buttercup (orig r9320):  ab | 2005-08-16 04:57:21 -0600
   Fix premature dereference bug found by Coverty and also get rid of non-used memory context
   r5445 at buttercup (orig r9321):  ab | 2005-08-16 07:22:01 -0600
   Fix potential bug found by Coverity. src_len has to be int but later we do pass it as size_t. In case src_len is negative, we need to register a failure and return to the caller
   r5446 at buttercup (orig r9327):  deryck | 2005-08-16 13:47:27 -0600
   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
   
   r5447 at buttercup (orig r9328):  deryck | 2005-08-16 14:00:24 -0600
   Remove background:ThreeDFace from qooxdoo styles to
   get our samba.org background bacl.
   
   deryck
   
   r5448 at buttercup (orig r9335):  tridge | 2005-08-16 17:19:17 -0600
   only copy the in side of an array to the out side of an array when the
   array is a [ref] pointer. For non-ref arrays it is quite valid for a
   server to return a larger response array then the client gave (as can
   happen with winreg) in which case this memcpy() will fault.
   
   r5449 at buttercup (orig r9337):  tridge | 2005-08-16 19:20:22 -0600
   defer the checking of array sizes until the end of the
   function/structure, as the checks might involve variables that have
   not yet been unmarshalled. This is needed to cope with the correct IDL
   for the winreg pipe.
   
   Jelmer, can you look at this when you get a chance and see if you
   think this is a reasonable approach? Sorry its wrecks the nice
   indentation in the generated code.
   
   
   r5450 at buttercup (orig r9338):  tridge | 2005-08-16 19:25:58 -0600
   
   fixed the winreg IDL to be correct for the EnumKey and EnumValue
   calls. The previous IDL was just a workaround for the limitations of
   our older rpc infrastructure. Now that Jelmer has added much improved
   string support using the charset keyword we can correctly implemenent
   the unusual winreg string buffers.
   
   Jelmer, note the little comment I put on winreg_StringBuf() about why
   I couldn't use [value()] for the length field.
   
   This also fixes EnumKey() and EnumValue() to use NTTIME fields for the
   last_changed_time. I don't know why we were using a pair of uint32's,
   as it is just a NTTIME.
   
   r5451 at buttercup (orig r9339):  tridge | 2005-08-16 19:29:35 -0600
   
   treat arrays of uint8 values as a special DATA_BLOB type in the ejs
   interfaces to RPC. This makes large blobs of data much saner. Tim, you
   will probably want to do the same for the smb_interfaces.h generated
   code.
   
   Next we will need ways of extracting different data types from these
   blobs, for example asking for the blob to be interpreted as a utf16
   string, or as a little-endian integer. That will allow for registry
   scripting to be quite sane.
   
   r5452 at buttercup (orig r9340):  tridge | 2005-08-16 19:30:47 -0600
   
   print the [in] contents when debugging even if the marshalling
   failed. This makes it easier to track down marshalling bugs.
   
   
   r5453 at buttercup (orig r9341):  tridge | 2005-08-16 19:40:14 -0600
   
   updated the winreg test program to take advantage of the new EnumValue
   functionality. It now completely enumerates a winreg tree.
   
   This would make a good basis for a js version of regshell if someone
   felt like taking that on.
   
   r5454 at buttercup (orig r9342):  tridge | 2005-08-16 20:21:40 -0600
   
   removed extra libinclude of base.js
   
   r5455 at buttercup (orig r9344):  tridge | 2005-08-16 20:55:31 -0600
   
   started adding calls for manipulation of data blobs in ejs
   
   added:
   
     blobToArray()
     blobFromArray()
     blobCompare()
   
   r5456 at buttercup (orig r9345):  tridge | 2005-08-16 20:56:07 -0600
   
   used the data blob functions in the echo.js test code
   
   r5457 at buttercup (orig r9346):  tridge | 2005-08-16 20:56:39 -0600
   
   allow test_ldap.sh to be called when $CONFFILE is not set
   
   
   r5458 at buttercup (orig r9347):  tridge | 2005-08-16 21:30:45 -0600
   
   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
   
   
   r5459 at buttercup (orig r9355):  tridge | 2005-08-17 06:27:28 -0600
   return the EnumKey and EnumValue list we have so far when we get a rpc fault
   
   r5460 at buttercup (orig r9356):  tridge | 2005-08-17 06:28:47 -0600
   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
   
   
   r5461 at buttercup (orig r9357):  tpot | 2005-08-17 06:51:07 -0600
   Remove DBGC_CLASS cruft copied over from Samba 3.  I would like to 
   replace this with something funkier.
   
   r5462 at buttercup (orig r9358):  tridge | 2005-08-17 07:06:05 -0600
   
   - 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
   
   
   r5463 at buttercup (orig r9359):  tridge | 2005-08-17 07:09:42 -0600
   don't check for size overflow if value is NULL
   
   this gets viewing the product options in smbd HKLM from w2k3 regedit
   working
   
   
   r5464 at buttercup (orig r9360):  tridge | 2005-08-17 07:14:40 -0600
   fixed the IDL for winreg_SetValue()
   
   r5465 at buttercup (orig r9369):  tridge | 2005-08-17 18:20:40 -0600
   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
   
   r5466 at buttercup (orig r9370):  tridge | 2005-08-17 18:31:40 -0600
   need a configure test for setresuid() 
   
   r5467 at buttercup (orig r9371):  metze | 2005-08-17 18:43:00 -0600
   add the usefull trick hack for NT_STATUS_NO_MEMORY too
   
   metze
   r5468 at buttercup (orig r9372):  metze | 2005-08-17 18:45:19 -0600
   - make the subcontext handling autogenerated code look nicer,
   - unify the handling of subcontext, compression and obfucation
   
   metze
   r5469 at buttercup (orig r9373):  metze | 2005-08-17 19:24:08 -0600
   - 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
   r5470 at buttercup (orig r9374):  tridge | 2005-08-17 19:57:43 -0600
   HPUX is also missing setegid()
   
   
  
 

Added:
   branches/SOC/SAMBA_4_0/source/scripting/ejs/smbcalls_data.c
Removed:
   branches/SOC/SAMBA_4_0/source/ntvfs/unixuid/config.m4
Modified:
   branches/SOC/SAMBA_4_0/
   branches/SOC/SAMBA_4_0/source/auth/auth_server.c
   branches/SOC/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c
   branches/SOC/SAMBA_4_0/source/auth/gensec/spnego.c
   branches/SOC/SAMBA_4_0/source/auth/gensec/spnego_parse.c
   branches/SOC/SAMBA_4_0/source/auth/ntlm_check.c
   branches/SOC/SAMBA_4_0/source/auth/pampass.c
   branches/SOC/SAMBA_4_0/source/auth/pass_check.c
   branches/SOC/SAMBA_4_0/source/build/m4/rewrite.m4
   branches/SOC/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm
   branches/SOC/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm
   branches/SOC/SAMBA_4_0/source/heimdal_build/config.h
   branches/SOC/SAMBA_4_0/source/include/nterr.h
   branches/SOC/SAMBA_4_0/source/lib/gencache.c
   branches/SOC/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
   branches/SOC/SAMBA_4_0/source/lib/ldb/common/ldb_match.c
   branches/SOC/SAMBA_4_0/source/lib/registry/common/reg_interface.c
   branches/SOC/SAMBA_4_0/source/lib/registry/common/reg_util.c
   branches/SOC/SAMBA_4_0/source/lib/registry/reg_backend_rpc.c
   branches/SOC/SAMBA_4_0/source/lib/registry/reg_samba.c
   branches/SOC/SAMBA_4_0/source/lib/replace/config.m4
   branches/SOC/SAMBA_4_0/source/lib/replace/replace.c
   branches/SOC/SAMBA_4_0/source/librpc/idl/winreg.idl
   branches/SOC/SAMBA_4_0/source/librpc/ndr/libndr.h
   branches/SOC/SAMBA_4_0/source/librpc/ndr/ndr.c
   branches/SOC/SAMBA_4_0/source/librpc/ndr/ndr_compression.c
   branches/SOC/SAMBA_4_0/source/librpc/ndr/ndr_krb5pac.c
   branches/SOC/SAMBA_4_0/source/librpc/ndr/ndr_obfuscate.c
   branches/SOC/SAMBA_4_0/source/librpc/ndr/ndr_sec.c
   branches/SOC/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c
   branches/SOC/SAMBA_4_0/source/passdb/secrets.c
   branches/SOC/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c
   branches/SOC/SAMBA_4_0/source/script/tests/test_ldap.sh
   branches/SOC/SAMBA_4_0/source/scripting/ejs/config.mk
   branches/SOC/SAMBA_4_0/source/scripting/ejs/ejsrpc.c
   branches/SOC/SAMBA_4_0/source/scripting/ejs/ejsrpc.h
   branches/SOC/SAMBA_4_0/source/scripting/ejs/mprutil.c
   branches/SOC/SAMBA_4_0/source/scripting/ejs/smbcalls.c
   branches/SOC/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c
   branches/SOC/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c
   branches/SOC/SAMBA_4_0/source/scripting/libjs/winreg.js
   branches/SOC/SAMBA_4_0/source/setup/newuser
   branches/SOC/SAMBA_4_0/source/smb_server/request.c
   branches/SOC/SAMBA_4_0/source/torture/rpc/winreg.c
   branches/SOC/SAMBA_4_0/source/utils/ntlm_auth.c
   branches/SOC/SAMBA_4_0/swat/esptest/registry.esp
   branches/SOC/SAMBA_4_0/swat/style/qooxdoo/core.css
   branches/SOC/SAMBA_4_0/testprogs/ejs/echo.js
   branches/SOC/SAMBA_4_0/testprogs/ejs/winreg.js


Changeset:
Sorry, the patch is too large (2814 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9375


More information about the samba-cvs mailing list