samba.git
16 years agor2448: use SO_REUSEADDR=1 for the server
Stefan Metzmacher [Mon, 20 Sep 2004 12:40:11 +0000 (12:40 +0000)]
r2448: use SO_REUSEADDR=1 for the server

metze

16 years agor2447: let the server code use the new lib/socket/ stuff
Stefan Metzmacher [Mon, 20 Sep 2004 12:31:07 +0000 (12:31 +0000)]
r2447: let the server code use the new lib/socket/ stuff

metze

16 years agor2446: implement socket_get_<peer|my>_<addr|port>() for ipv4
Stefan Metzmacher [Mon, 20 Sep 2004 12:03:49 +0000 (12:03 +0000)]
r2446: implement socket_get_<peer|my>_<addr|port>() for ipv4

metze

16 years agor2443: check return code of event_loop_once() to catch thet cases where the server
Stefan Metzmacher [Mon, 20 Sep 2004 10:40:11 +0000 (10:40 +0000)]
r2443: check return code of event_loop_once() to catch thet cases where the server
closes the connetion and we got EBADF from select() and event_loop_once() fails

metze

16 years agor2442: remove unused event_loop_once() call
Stefan Metzmacher [Mon, 20 Sep 2004 10:29:13 +0000 (10:29 +0000)]
r2442: remove unused event_loop_once() call

metze

16 years agor2441: set exit code correct when we got EBADF from select()
Stefan Metzmacher [Mon, 20 Sep 2004 10:20:26 +0000 (10:20 +0000)]
r2441: set exit code correct when we got EBADF from select()

metze

16 years agor2439: - function that return just an int don't need a TALLOC_CTX
Stefan Metzmacher [Mon, 20 Sep 2004 09:13:17 +0000 (09:13 +0000)]
r2439: - function that return just an int don't need a TALLOC_CTX
- fix some return and state bugs

metze

16 years agor2438: compile on systems without O_DIRECTORY (probably won't work, but I'll get...
Andrew Tridgell [Mon, 20 Sep 2004 08:53:45 +0000 (08:53 +0000)]
r2438: compile on systems without O_DIRECTORY (probably won't work, but I'll get to that later)

16 years agor2437: implemented a suggestion from abartlet that if we cannot convert
Andrew Tridgell [Mon, 20 Sep 2004 07:31:54 +0000 (07:31 +0000)]
r2437: implemented a suggestion from abartlet that if we cannot convert
strings to UTF16 in StrCaseCmp() that we fall back to a simpler
comparison.

16 years agor2436: the second big lump of posix vfs code.
Andrew Tridgell [Mon, 20 Sep 2004 07:28:43 +0000 (07:28 +0000)]
r2436: the second big lump of posix vfs code.

this is still just a skeleton, and many of the functions are just
based on the simple vfs backend, they are there to allow me to run
smbtorture tests against the real parts of the posix backend.

16 years agor2435: got rid of another pointless strnequal()
Andrew Tridgell [Mon, 20 Sep 2004 07:26:35 +0000 (07:26 +0000)]
r2435: got rid of another pointless strnequal()

16 years agor2434: separate "attrib" and "ex_attrib" elements for DOS attributes is pointless
Andrew Tridgell [Mon, 20 Sep 2004 07:26:01 +0000 (07:26 +0000)]
r2434: separate "attrib" and "ex_attrib" elements for DOS attributes is pointless

16 years agor2433: attrib_string() is now a generally available library function (it will be...
Andrew Tridgell [Mon, 20 Sep 2004 07:25:06 +0000 (07:25 +0000)]
r2433: attrib_string() is now a generally available library function (it will be used by the new RAW-SEARCH test)

16 years agor2432: more string function updates.
Andrew Tridgell [Mon, 20 Sep 2004 07:24:00 +0000 (07:24 +0000)]
r2432: more string function updates.

btw, the reason I want to use strncasecmp() instead of StrnCaseCmp()
is that the Samba internal functions are built to deal with
multi-byte, whereas in the cases I am converting we know we are
dealing with solely ascii string constants, so going via the slow
conversion libraries is pointless.

16 years agor2431: got rid of strnequal() in a couple of places
Andrew Tridgell [Mon, 20 Sep 2004 07:22:00 +0000 (07:22 +0000)]
r2431: got rid of strnequal() in a couple of places

16 years agor2430: got rid of StrnCaseCmp and added an accelerated version of StrCaseCmp()
Andrew Tridgell [Mon, 20 Sep 2004 07:21:26 +0000 (07:21 +0000)]
r2430: got rid of StrnCaseCmp and added an accelerated version of StrCaseCmp()

for places where known ascii strings are being compared we should just
use strncasecmp() and other standard library functions (with
replacements via lib/replace.c if needed)

16 years agor2429: Add tests for samr_QueryUserInfo(), samr_QueryUserInfo2(),
Tim Potter [Mon, 20 Sep 2004 06:31:59 +0000 (06:31 +0000)]
r2429: Add tests for samr_QueryUserInfo(), samr_QueryUserInfo2(),
samr_GetUserPwInfo(), samr_TestPrivateFunctionsUser().  Add stubs for
the rest of the functions in test_OpenDomain() from smbtorture.

16 years agor2428: Handle unions as [out] parameters by passing the value of the switch_is
Tim Potter [Mon, 20 Sep 2004 05:41:31 +0000 (05:41 +0000)]
r2428: Handle unions as [out] parameters by passing the value of the switch_is
parameter down to the various conversion functions.

16 years agor2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,
Tim Potter [Mon, 20 Sep 2004 02:51:54 +0000 (02:51 +0000)]
r2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,
samr_LookupName, samr_OpenUser, samr_DeleteUser, samr_CreateUse and
samr_OpenDomain.

16 years agor2426: Handle pointer to scalars converting C to Python.
Tim Potter [Mon, 20 Sep 2004 02:50:43 +0000 (02:50 +0000)]
r2426: Handle pointer to scalars converting C to Python.

Peeked at parser.pm for some hints at getting array lengths right
when the length_is property is present.

16 years agor2425: Found another place for a type check. When convert a dictionary value
Tim Potter [Mon, 20 Sep 2004 01:18:10 +0000 (01:18 +0000)]
r2425: Found another place for a type check.  When convert a dictionary value
to an array, check that the value exists and it is of list type.

Fix a typo.

16 years agor2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.
Tim Potter [Mon, 20 Sep 2004 00:55:53 +0000 (00:55 +0000)]
r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.

16 years agor2423: Add some instructions for building extensions.
Tim Potter [Sun, 19 Sep 2004 23:34:20 +0000 (23:34 +0000)]
r2423: Add some instructions for building extensions.

16 years agor2422: Convert PyDict_{Get,Set}Item() calls to PyDict_{Get,Set}ItemString().
Tim Potter [Sun, 19 Sep 2004 22:30:49 +0000 (22:30 +0000)]
r2422: Convert PyDict_{Get,Set}Item() calls to PyDict_{Get,Set}ItemString().

16 years agor2421: Fix test for lookupdomain for a non-existent domain.
Tim Potter [Sun, 19 Sep 2004 22:22:51 +0000 (22:22 +0000)]
r2421: Fix test for lookupdomain for a non-existent domain.

Export NTSTATUS exception from wrapper module so it can be used by scripts.

16 years agor2419: Write tests for samr_EnumDomains() and samr_LookupDomain().
Tim Potter [Sun, 19 Sep 2004 12:38:06 +0000 (12:38 +0000)]
r2419: Write tests for samr_EnumDomains() and samr_LookupDomain().

16 years agor2418: Handle a pointer to a scalar when converting a field from Python.
Tim Potter [Sun, 19 Sep 2004 12:37:32 +0000 (12:37 +0000)]
r2418: Handle a pointer to a scalar when converting a field from Python.

Handle a pointer to an array of structures when converting to Python.

16 years agor2417: Add comments to the interface generator as well as some commentary in
Tim Potter [Sun, 19 Sep 2004 11:41:19 +0000 (11:41 +0000)]
r2417: Add comments to the interface generator as well as some commentary in
the generated interface code.

Get rid of global variables within the perl generator code.

16 years agor2416: More argument checks. Raise an exception instead of segfaulting if a
Tim Potter [Sun, 19 Sep 2004 08:58:56 +0000 (08:58 +0000)]
r2416: More argument checks.  Raise an exception instead of segfaulting if a
dictionary does not contain a required key.

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.

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.

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.

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().

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.

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).

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()

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

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

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.

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

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

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

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.

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.

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.

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

16 years agor2386: fixed some indentation
Andrew Tridgell [Fri, 17 Sep 2004 11:26:57 +0000 (11:26 +0000)]
r2386: fixed some indentation

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

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

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)

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.

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

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()

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.

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

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

metze

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.

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.

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.

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

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

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()

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).

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

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

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

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.

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.

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

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

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.

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.

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.

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.

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

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

metze

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

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

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

metze

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

metze

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

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

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.

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

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

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

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

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

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.

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'

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.

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.

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.

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.

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.

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.

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.

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.

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

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