bbaumbach/samba-autobuild/.git
16 years agor2415: Throw a TypeError exception if a scalar value doesn't have the correct
Tim Potter [Sun, 19 Sep 2004 05:28:59 +0000 (05:28 +0000)]
r2415: Throw a TypeError exception if a scalar value doesn't have the correct
type, or the argument to a to_python function isn't a dictionary.
(This used to be commit 0f58ffb142a9b8c5c745b3a2c93a1659ea8282e5)

16 years agor2414: samr_Connect.system_name is now an array.
Tim Potter [Sun, 19 Sep 2004 04:59:56 +0000 (04:59 +0000)]
r2414: samr_Connect.system_name is now an array.
(This used to be commit e1166c210004b090c5922b2f9b10b86ebc3fc11d)

16 years agor2411: The other half of getting autogenerated code working using misc.idl:
Tim Potter [Sat, 18 Sep 2004 12:51:36 +0000 (12:51 +0000)]
r2411: The other half of getting autogenerated code working using misc.idl:
use Python lists for arrays when marshaling and unmarshaling arrays.
This gets samr_SetSecurity() working.
(This used to be commit 9bc55de42ab9f0d71abcea65a7f4cf24db452381)

16 years agor2410: Add test for samr_SetSecurity().
Tim Potter [Sat, 18 Sep 2004 12:47:57 +0000 (12:47 +0000)]
r2410: Add test for samr_SetSecurity().
(This used to be commit e822979e84d33015c937e22174288a3f2c2ff04b)

16 years agor2409: Convert NULL pointers to Py_None, and vice versa.
Tim Potter [Sat, 18 Sep 2004 10:08:43 +0000 (10:08 +0000)]
r2409: Convert NULL pointers to Py_None, and vice versa.

This gets samr_QuerySecurity() working again.
(This used to be commit 810bce2fe517969e62d87497bbe4ae645badfdf6)

16 years agor2408: Tridge suggested that all the structures from misc.idl (policy handles,
Tim Potter [Sat, 18 Sep 2004 08:41:26 +0000 (08:41 +0000)]
r2408: Tridge suggested that all the structures from misc.idl (policy handles,
sids, security descriptors and acls) can be automatically generated
instead of hand-written.  Fix up the swig wrapper generator and helper
routines to do this.  (Only works for policy handles right now though and
arrays are to be converted into lists instead of being binary blobs).

Fix up wrapper generation for modules that don't define an interface
(e.g misc.idl).
(This used to be commit 160dc90921ecc136a25ae88e5c28800ddda5722a)

16 years agor2407: extend mkproto.pl to handle smb_ucs2_t for toupper_w()
Andrew Tridgell [Sat, 18 Sep 2004 08:18:44 +0000 (08:18 +0000)]
r2407: extend mkproto.pl to handle smb_ucs2_t for toupper_w()
(This used to be commit fe60e899d71b18ee1cd6e2e05cf1ac0fa3a043bd)

16 years agor2406: fixed a couple of typos
Andrew Tridgell [Sat, 18 Sep 2004 08:18:10 +0000 (08:18 +0000)]
r2406: fixed a couple of typos
(This used to be commit 87a6c678fac0b5e740a9a739ef1ad113f2b508fd)

16 years agor2405: expose unix_perms_to_wire() for use by the posix backend, in supporting the...
Andrew Tridgell [Sat, 18 Sep 2004 08:17:32 +0000 (08:17 +0000)]
r2405: expose unix_perms_to_wire() for use by the posix backend, in supporting the UNIX extensions
(This used to be commit a3fd9a911f8852372a57146cde04971263fac7c9)

16 years agor2404: the first large lump of posix vfs stuff.
Andrew Tridgell [Sat, 18 Sep 2004 08:16:14 +0000 (08:16 +0000)]
r2404: the first large lump of posix vfs stuff.

this is still very much a skeleton (with many limbs missing too!). I
am committing this early to get some feedback on the approach taken.
(This used to be commit 40d5cae5ebbfe328e193eadb685df6a370730299)

16 years agor2403: got rid of a unnecessary mem_ctx in the simple backend
Andrew Tridgell [Sat, 18 Sep 2004 08:14:10 +0000 (08:14 +0000)]
r2403: got rid of a unnecessary mem_ctx in the simple backend
(This used to be commit a4dcf005f30afcb2edd57d450ff9b90341c318a2)

16 years agor2402: to make ms_fnmatch() case-insensitive we need toupper_w() exposed
Andrew Tridgell [Sat, 18 Sep 2004 08:13:28 +0000 (08:13 +0000)]
r2402: to make ms_fnmatch() case-insensitive we need toupper_w() exposed
(This used to be commit 69413bdcfcf40e9ae2e5bcb00863cc7ef0ee8da1)

16 years agor2401: make our LDAP server useable:
Stefan Metzmacher [Sat, 18 Sep 2004 08:13:06 +0000 (08:13 +0000)]
r2401: make our LDAP server useable:
- we need to mark the fd event as writable otherwise we'll never senda packet to the client
- a search response have to ended by a LDAP result message
- return currentTime, supportedLDAPVersion and dnsHostName for testing

ldap -x -s base -h ldap://localhost/ is now works against our LDAP server

metze
(This used to be commit 3a9ca351166cf56de878e4408e221df299271c32)

16 years agor2400: make ms_fnmatch() case insensitive. This is much more efficient than
Andrew Tridgell [Sat, 18 Sep 2004 08:12:55 +0000 (08:12 +0000)]
r2400: make ms_fnmatch() case insensitive. This is much more efficient than
uppercasing the two whole strings before the call is made, is less
error-prone, and also copes with strings where the upper case version
is longer than the lower case version due to different multi-byte lengths.
(This used to be commit e227ac1edfd48596a9d5096b6965ddd0beb969a5)

16 years agor2399: Display text description of rpc fault in debug message.
Tim Potter [Sat, 18 Sep 2004 06:31:56 +0000 (06:31 +0000)]
r2399: Display text description of rpc fault in debug message.
(This used to be commit 04aec4c0a3f559f6a9ccfaf990f3a2ff2e6f48df)

16 years agor2398: Import Data::Dumper module safely so it doesn't hurt the build farm.
Tim Potter [Sat, 18 Sep 2004 06:09:33 +0000 (06:09 +0000)]
r2398: Import Data::Dumper module safely so it doesn't hurt the build farm.
(This used to be commit f88996540cfecf830595425735d2f1d4ad623c3d)

16 years agor2387: fix segfault
Stefan Metzmacher [Fri, 17 Sep 2004 14:30:17 +0000 (14:30 +0000)]
r2387: fix segfault

seems that [in,out,ref] vars should be initialize
the [in] and [out] part

metze
(This used to be commit 47e613a5a1063d8e93e831252db03f19cdb08590)

16 years agor2386: fixed some indentation
Andrew Tridgell [Fri, 17 Sep 2004 11:26:57 +0000 (11:26 +0000)]
r2386: fixed some indentation
(This used to be commit 1de5aa5b1d6a9b4b3ed18935c562b0bf03a4d94e)

16 years agor2385: the gensec:krb5 test is not needed here any more, as we do it in the registrat...
Andrew Tridgell [Fri, 17 Sep 2004 11:26:30 +0000 (11:26 +0000)]
r2385: the gensec:krb5 test is not needed here any more, as we do it in the registration code
(This used to be commit bcf9d787d6bced4c4482fa3e51ccea258563d89e)

16 years agor2384: i missed "nt status support" in my change to the new globals init code
Andrew Tridgell [Fri, 17 Sep 2004 11:24:37 +0000 (11:24 +0000)]
r2384: i missed "nt status support" in my change to the new globals init code
(This used to be commit 7478f50c2f5c011a1eec04be06f9ecdc48e85f17)

16 years agor2383: fixed the handling of sending zero length dcerpc packets (I broke this
Andrew Tridgell [Fri, 17 Sep 2004 10:45:21 +0000 (10:45 +0000)]
r2383: fixed the handling of sending zero length dcerpc packets (I broke this
recently, and this broke the autoidl code)
(This used to be commit 01d66f68f6b21dc9b5c0702edcd4f56daeae9b9d)

16 years agor2382: considerably improved the Bind and Unbind IDL and test code. We can
Andrew Tridgell [Fri, 17 Sep 2004 10:44:28 +0000 (10:44 +0000)]
r2382: considerably improved the Bind and Unbind IDL and test code. We can
now do these two calls successfully against w2k3.

note that you must use ncacn_ip_tcp, and must enable dcerpc sealing,
otherwise w2k3 refuses the first DRSUAPI call.
(This used to be commit 7d3e34742277f264e41739721dbf08036eebb598)

16 years agor2381: added a -v debugging option to ldbedit
Andrew Tridgell [Fri, 17 Sep 2004 10:42:33 +0000 (10:42 +0000)]
r2381: added a -v debugging option to ldbedit
(This used to be commit 03d4a7832cd3670a8166820a1b9b4aaf2307bd1a)

16 years agor2380: nicer error reporting in convert_string()
Andrew Tridgell [Fri, 17 Sep 2004 10:41:53 +0000 (10:41 +0000)]
r2380: nicer error reporting in convert_string()
(This used to be commit 6807d336c2365e4e7f45605d75667dbf05715b34)

16 years agor2377: added a more generic way of disabling gensec subsystems. For example,
Andrew Tridgell [Fri, 17 Sep 2004 06:49:24 +0000 (06:49 +0000)]
r2377: added a more generic way of disabling gensec subsystems. For example,
"gensec:ntlmssp=no" will disable ntlmssp.
(This used to be commit 66f88c7d89154155b27bf8b7839c580fb1cd1e7c)

16 years agor2376: added a way to disable krb5 on the command line. Just use
Andrew Tridgell [Fri, 17 Sep 2004 06:33:19 +0000 (06:33 +0000)]
r2376: added a way to disable krb5 on the command line. Just use

  --option 'gensec:krb5=no'

or put "gensec:krb5 = no" in smb.conf

Given the frustration I've had with kerberos I was very tempted to name
this option --nfk, but resisted the temptation
(This used to be commit 2d710a5eb5b36e46fa8f652305fa9ab2e09e02f3)

16 years agor2365: remove MSG_NOSIGNAL
Stefan Metzmacher [Thu, 16 Sep 2004 05:30:19 +0000 (05:30 +0000)]
r2365: remove MSG_NOSIGNAL

metze
(This used to be commit 8ade8ab65fffea9172a768a60fe2bd32493c068f)

16 years agor2359: More consistency fixes: pass a talloc context to every function that
Tim Potter [Wed, 15 Sep 2004 22:35:15 +0000 (22:35 +0000)]
r2359: More consistency fixes: pass a talloc context to every function that
doesn't convert scalar types, more renaming of function names.

Implement conversion fns for dom_sid, dom_sid2 (to struct version stubbed
out).  Also from Python conversions for security_acl and security_descriptors.
(This used to be commit 945a4681051132c13f9235f676464fffb3bfadc8)

16 years agor2358: More renaming of functions to keep things consistent.
Tim Potter [Wed, 15 Sep 2004 22:03:53 +0000 (22:03 +0000)]
r2358: More renaming of functions to keep things consistent.
(This used to be commit 84513e4ed14e60b4cd09fcc2e596bc72d3a8807c)

16 years agor2357: Start coding conversion routines for security descriptors, acls and sids.
Tim Potter [Wed, 15 Sep 2004 21:17:26 +0000 (21:17 +0000)]
r2357: Start coding conversion routines for security descriptors, acls and sids.
(This used to be commit c8d13a809b5b01823a62e5868bac47e1f2f25092)

16 years agor2347: merge LDAP ASN.1 fixes from trunk
Stefan Metzmacher [Wed, 15 Sep 2004 13:29:59 +0000 (13:29 +0000)]
r2347: merge LDAP ASN.1 fixes from trunk

metze
(This used to be commit 492a00d909d6f3ff8305f102551f60d91d988ccd)

16 years agor2346: fix some minor stuff
Stefan Metzmacher [Wed, 15 Sep 2004 13:02:16 +0000 (13:02 +0000)]
r2346: fix some minor stuff

metze
(This used to be commit 56e21d0ce29b13808bbbd2a6c0464948886d317d)

16 years agor2345: Add test for samr_QuerySecurity()
Tim Potter [Wed, 15 Sep 2004 12:25:51 +0000 (12:25 +0000)]
r2345: Add test for samr_QuerySecurity()
(This used to be commit f6978a007a79c97910856b3c639844495f16ebab)

16 years agor2344: Return PyDict_New() in stub functions instead of Py_None to avoid
Tim Potter [Wed, 15 Sep 2004 12:24:53 +0000 (12:24 +0000)]
r2344: Return PyDict_New() in stub functions instead of Py_None to avoid
crashing in garbage collector (hmm - all that was required was probably
a Py_INCREF(Py_None) though).
(This used to be commit a3eac318a624d214084741839faa2ad485902f6f)

16 years agor2343: - make socket_get_*_addr() return char * not const char *
Stefan Metzmacher [Wed, 15 Sep 2004 12:14:47 +0000 (12:14 +0000)]
r2343: - make socket_get_*_addr() return char * not const char *
- add some error mappings
- use some flags SOCKET_FLAG_PEEK ans SOCKET_FLAG_BLOCK

metze
(This used to be commit a375c6b0b1ec4d63251f63993f7798c1f2e7c717)

16 years agor2342: Remove obsolete file.
Tim Potter [Wed, 15 Sep 2004 12:12:48 +0000 (12:12 +0000)]
r2342: Remove obsolete file.
(This used to be commit b7ef3d0a006ab8c07354ca83fcaf6018c3b595af)

16 years agor2339: my first python commit!
Andrew Tridgell [Wed, 15 Sep 2004 04:36:13 +0000 (04:36 +0000)]
r2339: my first python commit!

added command line options for binding string, domain, username and password
(This used to be commit e94bec1079f266fdb869642eab24f542a81f8e5a)

16 years agor2336: Add another conversion function to allow union arms that contain structures
Tim Potter [Tue, 14 Sep 2004 12:19:59 +0000 (12:19 +0000)]
r2336: Add another conversion function to allow union arms that contain structures
not pointers to structures.  Do some renaming of hand-written functions
as a result.

Include lsa interface before samr interface as samr depends on some lsa
structures.

Build up a nice hashed index of interfaces, functions, structs and
unions.

Add test for samr_Connect5() function which contains a union.
(This used to be commit 30f068164a5125f84a34f28ed0f2586a2bdec7e4)

16 years agor2335: Zero function parameter struct so we can do a bit more testing. To be removed...
Tim Potter [Tue, 14 Sep 2004 10:42:52 +0000 (10:42 +0000)]
r2335: Zero function parameter struct so we can do a bit more testing.  To be removed later.

Generate more stub code for union arms.
(This used to be commit f8a14e808eb9ec2910fb22f35d828a7eeea14aec)

16 years agor2328: add the start of a new system and protocol
Stefan Metzmacher [Mon, 13 Sep 2004 14:17:41 +0000 (14:17 +0000)]
r2328: add the start of a new system and protocol
independent socket library.

this is not used, but compiled currently

there're maybe some api changes later...

metze
(This used to be commit de4447d7a57c614b80d0ac00dca900ea7e1c21ea)

16 years agor2326: remove definition and usage of struct socket_context
Stefan Metzmacher [Mon, 13 Sep 2004 13:13:21 +0000 (13:13 +0000)]
r2326: remove definition and usage of struct socket_context

metze
(This used to be commit 1854907da8d577db41de9aa14573d5c8c0092f47)

16 years agor2325: Generate conversion stubs for IDL unions.
Tim Potter [Mon, 13 Sep 2004 12:44:36 +0000 (12:44 +0000)]
r2325: Generate conversion stubs for IDL unions.
(This used to be commit a06727b79228865e03430e41fc991c3d39eca220)

16 years agor2324: Add hand-written versions of functions from misc.idl.
Tim Potter [Mon, 13 Sep 2004 12:42:25 +0000 (12:42 +0000)]
r2324: Add hand-written versions of functions from misc.idl.
(This used to be commit d6876701cc027ec2b14923e3483e0432e7011138)

16 years agor2323: More tweaks to get things building again.
Tim Potter [Mon, 13 Sep 2004 12:14:48 +0000 (12:14 +0000)]
r2323: More tweaks to get things building again.

Now to get unions working as they are currently broken.
(This used to be commit 8072d7f1a4f72d91d54c0e6056819ba5f99ce734)

16 years agor2322: More renames of autogenerated functions so they all have approximately
Tim Potter [Mon, 13 Sep 2004 11:55:36 +0000 (11:55 +0000)]
r2322: More renames of autogenerated functions so they all have approximately
the same signature.

Start to handle structures with no pointers.
(This used to be commit c1dc9842683628e05fa66a930a074e741c4a7101)

16 years agor2321: add complately untested LDAP server start
Stefan Metzmacher [Mon, 13 Sep 2004 10:36:59 +0000 (10:36 +0000)]
r2321: add complately untested LDAP server start
based on volker's patch

this is compiled by default but not started by default

metze
(This used to be commit 5387bc423d4dc669cbac6626f8dd3a5498a6519d)

16 years agor2320: add my copyright
Stefan Metzmacher [Mon, 13 Sep 2004 10:33:07 +0000 (10:33 +0000)]
r2320: add my copyright

metze
(This used to be commit 45b77064bfeae1d4db2fa83c5513bdafa0c237e4)

16 years agor2319: let event_merge_contexts() return a pointer to the final context
Stefan Metzmacher [Mon, 13 Sep 2004 10:15:55 +0000 (10:15 +0000)]
r2319: let event_merge_contexts() return a pointer to the final context

metze
(This used to be commit 71aa5eeea73ea42e04ae224914b6815d72c1690a)

16 years agor2318: - remove the --with-ads option
Stefan Metzmacher [Mon, 13 Sep 2004 08:54:17 +0000 (08:54 +0000)]
r2318: - remove the --with-ads option

- LDAP and KRB5 support are independend in samba4

- make the krb5 tests more readable with reformat

metze
(This used to be commit 75b393275d954e807a23754d44046fc78c43d631)

16 years agor2315: change format
Stefan Metzmacher [Mon, 13 Sep 2004 08:46:38 +0000 (08:46 +0000)]
r2315: change format

metze
(This used to be commit 9177cd4285315175913aa2c9359f1173fa7d6eb7)

16 years agor2314: fix compiler warning
Stefan Metzmacher [Mon, 13 Sep 2004 08:45:41 +0000 (08:45 +0000)]
r2314: fix compiler warning

metze
(This used to be commit 75c3108955bab44ffda308406bae153e3a92cedf)

16 years agor2313: Make these attributes case insensitive in the default provision.ldif
Andrew Bartlett [Mon, 13 Sep 2004 08:13:44 +0000 (08:13 +0000)]
r2313: Make these attributes case insensitive in the default provision.ldif

Andrew Bartlett
(This used to be commit e7115c6b95e221f0bf4e3a5d02ae356738b2ebd5)

16 years agor2310: fixed some broken if statements in handling --with-krb5
Andrew Tridgell [Mon, 13 Sep 2004 07:20:25 +0000 (07:20 +0000)]
r2310: fixed some broken if statements in handling --with-krb5

they did not handle the fact that FOUND_KRB5 was not set at all at this point
(This used to be commit d8c97ed02c1215f2cced836fd369db5a3f97f403)

16 years agor2309: make loadparm handling much more consistent, by using do_parameter()
Andrew Tridgell [Mon, 13 Sep 2004 05:05:46 +0000 (05:05 +0000)]
r2309: make loadparm handling much more consistent, by using do_parameter()
to process init_globals(). This also allows all global options to be
set using lp_set_cmdline() or --option

a side effect is that init_globals() is slower. If this turns out to
be a problem we can try a different approach.
(This used to be commit ccfc2106a03bd5143d28e6fdedab773cf7abbe5a)

16 years agor2308: make talloc_vasprintf() available outside talloc.c
Andrew Tridgell [Mon, 13 Sep 2004 05:01:15 +0000 (05:01 +0000)]
r2308: make talloc_vasprintf() available outside talloc.c
(This used to be commit a3a15f9d1a3b51cb7099b5f3adb8401dfc37793d)

16 years agor2307: Fix the use of 'raw' NTLMSSP to hosts that support extended security,
Andrew Bartlett [Mon, 13 Sep 2004 04:28:10 +0000 (04:28 +0000)]
r2307: Fix the use of 'raw' NTLMSSP to hosts that support extended security,
but do not support SPNEGO (such as XP, when not joined to a domain).

This is triggered by the presense or lack of a security blob in the
negprot reply.

Andrew Bartlett
(This used to be commit 99f7a38c077725b22475f2ba68d0955114879c24)

16 years agor2306: in lp_set_cmdline(), also set any aliases as having been set by the commandline
Andrew Tridgell [Mon, 13 Sep 2004 03:55:28 +0000 (03:55 +0000)]
r2306: in lp_set_cmdline(), also set any aliases as having been set by the commandline
(This used to be commit 2c0b5e119eddc6389500bcc80d1ae417dd9bfbb9)

16 years agor2305: a useful test script for trying a wide variety of DCE/RPC options with the...
Andrew Tridgell [Mon, 13 Sep 2004 02:37:39 +0000 (02:37 +0000)]
r2305: a useful test script for trying a wide variety of DCE/RPC options with the echo pipe
and smbtorture
(This used to be commit 42bdee690bca2e818901fde412d5fb9631b2303f)

16 years agor2304: fixed a bug in old style NTLM signing
Andrew Tridgell [Mon, 13 Sep 2004 02:36:38 +0000 (02:36 +0000)]
r2304: fixed a bug in old style NTLM signing
(This used to be commit 09651b831d085345dd385bc9777f97e1c0d57c6f)

16 years agor2303: allow setting of many ntlmssp options from smb.conf or the command
Andrew Tridgell [Mon, 13 Sep 2004 02:35:55 +0000 (02:35 +0000)]
r2303: allow setting of many ntlmssp options from smb.conf or the command
line. This makes testing much easier.
(This used to be commit 0a4723d250ba13e6374700fc6e80854ec6a3eddc)

16 years agor2302: added a '--option' option, allowing any global or default option in
Andrew Tridgell [Mon, 13 Sep 2004 01:27:37 +0000 (01:27 +0000)]
r2302: added a '--option' option, allowing any global or default option in
smb.conf to be set on the command line. For example, you can use:

  smbtorture --option 'unicode=false'
or
  smbtorture --option 'netbios name=myname'
(This used to be commit 360a6b530e2295976ddefc138d1333411a94484d)

16 years agor2301: add a server side warning when we receive more RPC data than we
Andrew Tridgell [Mon, 13 Sep 2004 01:23:09 +0000 (01:23 +0000)]
r2301: add a server side warning when we receive more RPC data than we
expect. It isn't an error as w2k3 does this on its first packet when
NTLM2 signing is used.
(This used to be commit daaee86d1441afec9915e5f2ffc10b200a1ff564)

16 years agor2300: Start writing a Python torture test suite based on the smbtorture rpc tests.
Tim Potter [Sun, 12 Sep 2004 11:47:24 +0000 (11:47 +0000)]
r2300: Start writing a Python torture test suite based on the smbtorture rpc tests.
(This used to be commit 73e087f11e401ef8da7c53148444b2745a94dbaf)

16 years agor2299: Map a (C) NULL pointer to (Python) None and vice versa.
Tim Potter [Sun, 12 Sep 2004 11:45:37 +0000 (11:45 +0000)]
r2299: Map a (C) NULL pointer to (Python) None and vice versa.
(This used to be commit 05cff58070b7070157aea47c5da8512145c2774a)

16 years agor2298: Convert to and from string parameters.
Tim Potter [Sun, 12 Sep 2004 10:56:11 +0000 (10:56 +0000)]
r2298: Convert to and from string parameters.

Correct function name used when generating function to convert in
typemap so it is consistent with the others.
(This used to be commit ec23bae00fedbd1651800a8f4559dee3bd6c7025)

16 years agor2297: Add string conversion functions.
Tim Potter [Sun, 12 Sep 2004 10:50:23 +0000 (10:50 +0000)]
r2297: Add string conversion functions.
(This used to be commit cbfb177394aaf2a382b481ffb3152ad3fe81de5a)

16 years agor2296: Correct setting of access_mask in test program.
Tim Potter [Sun, 12 Sep 2004 10:49:41 +0000 (10:49 +0000)]
r2296: Correct setting of access_mask in test program.
(This used to be commit e4a5840ff84553c67c87e002e9e074095f4d18c5)

16 years agor2295: Convert simple scalar types and policy handles between dcerpc function
Tim Potter [Sun, 12 Sep 2004 10:13:24 +0000 (10:13 +0000)]
r2295: Convert simple scalar types and policy handles between dcerpc function
call request and response structures.
(This used to be commit d31d23b944b7e4ef300d75dad5038727e9133af1)

16 years agor2294: this fixes the NTLM2 sign+seal combination. I have now tested:
Andrew Tridgell [Sun, 12 Sep 2004 06:38:00 +0000 (06:38 +0000)]
r2294: this fixes the NTLM2 sign+seal combination. I have now tested:

 NTLM sign
 NTLM sign+seal
 NTLM2 sign
 NTLM2 sign+seal

and all of the above both with and without key exchange

the NTLM2 seal case is ugly and involves an extra data copy, which
some API changes in gensec or the ndr layer might avoid in future.
(This used to be commit fce7a4218b3136d880dd1a123e8525e3091bbed8)

16 years agor2293: fixed older NTLM sign/seal in the server
Andrew Tridgell [Sun, 12 Sep 2004 06:04:03 +0000 (06:04 +0000)]
r2293: fixed older NTLM sign/seal in the server
(This used to be commit d8825b69aca5f4d0edf70945d64b4d1780e121c4)

16 years agor2290: Fix 'lsakey' for the server-side, it is static for
Andrew Bartlett [Sun, 12 Sep 2004 03:18:24 +0000 (03:18 +0000)]
r2290: Fix 'lsakey' for the server-side, it is static for
'authenticated' connections.

Fix kerberos session key issues - we need to call the
routine for extracting the session key, not just read the cache.

Andrew Bartlett
(This used to be commit b80d849b6b586869fc7d3d4153db1a316f2867a9)

16 years agor2289: Autogenerate some more attractive looking stubs for converting
Tim Potter [Sun, 12 Sep 2004 02:37:15 +0000 (02:37 +0000)]
r2289: Autogenerate some more attractive looking stubs for converting
function argument structures and idl structures to and from Python
dictionaries.
(This used to be commit e4729949c61a8df23b5132c6136ae8c3777c348a)

16 years agor2288: Remove the claim/yield connection code - this will need to be redone
Andrew Bartlett [Sun, 12 Sep 2004 02:25:58 +0000 (02:25 +0000)]
r2288: Remove the claim/yield connection code - this will need to be redone
in a more samba4 style at some point (along with the session code).

Andrew Bartlett
(This used to be commit b8fe29dc7ac6fc60e5171a29788ae56968c1098b)

16 years agor2287: Add static.
Andrew Bartlett [Sat, 11 Sep 2004 23:13:35 +0000 (23:13 +0000)]
r2287: Add static.

Andrew Bartlett
(This used to be commit 49171e420337136d3e66300f99fa1885051e5b61)

16 years agor2286: Fixes towards krb5 logins into Samba's CIFS server.
Andrew Bartlett [Sat, 11 Sep 2004 23:09:26 +0000 (23:09 +0000)]
r2286: Fixes towards krb5 logins into Samba's CIFS server.

These fixes aim particularly at allowing PAC-less logins, as I don't
yet generate a PAC in the lorikeet-heimdal KDC.

This is for the benifit of a Kerbeors-enabled domain join, which seems
to be progressing quite well!

Andrew Bartlett
(This used to be commit f5a381094dd5bcbd795a134bc4b8b89901b5e3eb)

16 years agor2285: Remove more static data, fix spelling in a comment.
Andrew Bartlett [Sat, 11 Sep 2004 23:05:08 +0000 (23:05 +0000)]
r2285: Remove more static data, fix spelling in a comment.
(This used to be commit 2c701f59a7f232fed624f7cec62dd494dd32c2d9)

16 years agor2284: Thanks to some great detective work by tridge, NTLM2 signing now works.
Andrew Bartlett [Sat, 11 Sep 2004 15:11:36 +0000 (15:11 +0000)]
r2284: Thanks to some great detective work by tridge, NTLM2 signing now works.

This means that 'require NTLMv2 session security' now works for RPC
pipe signing.  We don't yet have sealing, but it can't be much further.

This is almost all tridge's code, munged into a form that can work
with the GENSEC API.

This commit also includes more lsakey fixes - that key is used for all
DCE-RPC level authenticated connections, even over CIFS/ncacn_np.

No doubt I missed something, but I'm going to get some sleep :-)

Andrew Bartlett
(This used to be commit a1fe175eec884280fb7e9ca8f528134cf4600beb)

16 years agor2283: Change from tridge (in his ntlm2 patch).
Andrew Bartlett [Sat, 11 Sep 2004 15:05:49 +0000 (15:05 +0000)]
r2283: Change from tridge (in his ntlm2 patch).

I think the idea here is to bail out correctly when we get signing
broken on TCP, rather than keeping on hammering the socket.

Andrew Bartlett
(This used to be commit 553b529a0991ccf2f1be14cc6a27695223f02e65)

16 years agor2282: Remove one more magic constant from the source, replace with sizeof().
Andrew Bartlett [Sat, 11 Sep 2004 15:04:40 +0000 (15:04 +0000)]
r2282: Remove one more magic constant from the source, replace with sizeof().

Andrew Bartlett
(This used to be commit a089bcf503bfc91eead08d10539367886b7927cd)

16 years agor2281: Add a few comments.
Andrew Bartlett [Sat, 11 Sep 2004 12:48:27 +0000 (12:48 +0000)]
r2281: Add a few comments.
(This used to be commit 7be16e503616d9b339390a253357114c510729d0)

16 years agor2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server
Andrew Tridgell [Sat, 11 Sep 2004 12:32:05 +0000 (12:32 +0000)]
r2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server
(This used to be commit 3b4ed24f4ba467a77bef8d6c25695fdbdb42b2ac)

16 years agor2278: Add some more helper functions.
Tim Potter [Fri, 10 Sep 2004 12:20:25 +0000 (12:20 +0000)]
r2278: Add some more helper functions.
(This used to be commit 5a64449599beb7b46484f1c3aef10f7e7b878319)

16 years agor2277: Generate stubs for input and output typemaps.
Tim Potter [Fri, 10 Sep 2004 12:18:56 +0000 (12:18 +0000)]
r2277: Generate stubs for input and output typemaps.
(This used to be commit 69710bbcb8123e5f9cb882723350506e77307419)

16 years agor2276: Remove garbage collection debugs.
Tim Potter [Fri, 10 Sep 2004 12:16:42 +0000 (12:16 +0000)]
r2276: Remove garbage collection debugs.
(This used to be commit b7ebafbbe0ada17748ad4bb36da4c0d63a2b10f5)

16 years agor2275: don't crash on a rpc BIND_NAK response ...
Andrew Tridgell [Fri, 10 Sep 2004 07:14:02 +0000 (07:14 +0000)]
r2275: don't crash on a rpc BIND_NAK response ...
(This used to be commit 22a6e5d50d2d40c2dfc5e36bce1132b92723dd81)

16 years agor2274: fixed some popt option clashes between smbtorture and the standard options
Andrew Tridgell [Fri, 10 Sep 2004 03:39:11 +0000 (03:39 +0000)]
r2274: fixed some popt option clashes between smbtorture and the standard options
(This used to be commit b7db909e8e8194366ff93f68adbd68a8f1dcbe9a)

16 years agor2273: disable the async samr tests unless -X option is used, as windows
Andrew Tridgell [Fri, 10 Sep 2004 03:38:16 +0000 (03:38 +0000)]
r2273: disable the async samr tests unless -X option is used, as windows
fails this and it kills the pipe, so we can't run the rest of the test
(This used to be commit bdb49f01b75aa5b3a458ee4629e867bee1d03358)

16 years agor2272: fixed another couple of errors in the popt option arrays
Andrew Tridgell [Fri, 10 Sep 2004 03:37:29 +0000 (03:37 +0000)]
r2272: fixed another couple of errors in the popt option arrays
(This used to be commit 89acbf4f02ae03f0546e1633c030765a563ce958)

16 years agor2271: fixed the popt argument array for smbtorture, getting rid of some
Andrew Tridgell [Fri, 10 Sep 2004 02:16:41 +0000 (02:16 +0000)]
r2271: fixed the popt argument array for smbtorture, getting rid of some
clashes

metze, please note that the 'val' field in popt is not the default
value, its the integer to switch on in the argument loop.
(This used to be commit 0f3b01bebadc9f949a663dc40280945536bc86fd)

16 years agor2267: we no longer need to force the domain join to happen on NCACN_NP - it
Andrew Tridgell [Thu, 9 Sep 2004 14:34:58 +0000 (14:34 +0000)]
r2267: we no longer need to force the domain join to happen on NCACN_NP - it
now works on NCACN_IP_TCP as well.
(This used to be commit 9cc33d936407255b5c5fb9bde37d918cf268c784)

16 years agor2266: yay! LSA session keys on TCP now work!
Andrew Tridgell [Thu, 9 Sep 2004 14:31:27 +0000 (14:31 +0000)]
r2266: yay! LSA session keys on TCP now work!
(This used to be commit f6ea24296acaaadcd2d59740bc88ef1a93fb1c28)

16 years agor2257: Tab completion support in regshell (complete command names and key names
Jelmer Vernooij [Wed, 8 Sep 2004 13:44:45 +0000 (13:44 +0000)]
r2257: Tab completion support in regshell (complete command names and key names
in the current key)
(This used to be commit 83f9f8eaa4825bb49e2b160a1a810080ecae4d39)

16 years agor2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps are currently
Tim Potter [Wed, 8 Sep 2004 12:56:57 +0000 (12:56 +0000)]
r2256: Include autogenerated interfaces for lsa and samr pipes.  Typemaps are currently
not working though.
(This used to be commit 55bd2dc02de13ee3da1cde20694f452df0899a9f)

16 years agor2255: Don't do experimental swig stuff by default.
Tim Potter [Wed, 8 Sep 2004 12:51:46 +0000 (12:51 +0000)]
r2255: Don't do experimental swig stuff by default.
(This used to be commit db191572ff9351ae84dc0c3d6302fa60b61cd179)

16 years agor2254: Fix a couple of compiler warnings...
Jelmer Vernooij [Wed, 8 Sep 2004 12:41:12 +0000 (12:41 +0000)]
r2254: Fix a couple of compiler warnings...
(This used to be commit 8056f4a9a7f5065eeb3a3bec81977c5e4163bf8e)

16 years agor2253: Add test program, as small example of what's going on.
Tim Potter [Wed, 8 Sep 2004 11:54:01 +0000 (11:54 +0000)]
r2253: Add test program, as small example of what's going on.
(This used to be commit fd31ae38dfe2d005b3e01ac059c2e15fa389aad4)

16 years agor2252: don't register the same name twice
Andrew Tridgell [Wed, 8 Sep 2004 11:01:18 +0000 (11:01 +0000)]
r2252: don't register the same name twice
(This used to be commit fdb675bbad1322ddd94c646f67803b9678468a64)

16 years agor2251: forgot to add vfs_posix.h in my last commit
Andrew Tridgell [Wed, 8 Sep 2004 07:59:52 +0000 (07:59 +0000)]
r2251: forgot to add vfs_posix.h in my last commit

note that this is just a skeleton so far. More to come soon.
(This used to be commit efc8850b9aa9348f5f7c4b342aa76dab1635e7d4)

16 years agor2250: removed unnecessary mem_ctx
Andrew Tridgell [Wed, 8 Sep 2004 07:48:55 +0000 (07:48 +0000)]
r2250: removed unnecessary mem_ctx
(This used to be commit c455a3a61d587f5126236d8c11ba84e19d4f038a)

16 years agor2249: got rid of some more mem_ctx elements in structures
Andrew Tridgell [Wed, 8 Sep 2004 05:39:06 +0000 (05:39 +0000)]
r2249: got rid of some more mem_ctx elements in structures
(This used to be commit 21ef338cbbe96acc8594ffc550ef60c6a40fb951)