Stefan Metzmacher [Mon, 20 Sep 2004 12:40:11 +0000 (12:40 +0000)]
r2448: use SO_REUSEADDR=1 for the server
metze
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
Stefan Metzmacher [Mon, 20 Sep 2004 12:03:49 +0000 (12:03 +0000)]
r2446: implement socket_get_<peer|my>_<addr|port>() for ipv4
metze
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
Stefan Metzmacher [Mon, 20 Sep 2004 10:29:13 +0000 (10:29 +0000)]
r2442: remove unused event_loop_once() call
metze
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
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
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)
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.
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.
Andrew Tridgell [Mon, 20 Sep 2004 07:26:35 +0000 (07:26 +0000)]
r2435: got rid of another pointless strnequal()
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
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)
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.
Andrew Tridgell [Mon, 20 Sep 2004 07:22:00 +0000 (07:22 +0000)]
r2431: got rid of strnequal() in a couple of places
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)
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.
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.
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.
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.
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.
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.
Tim Potter [Sun, 19 Sep 2004 23:34:20 +0000 (23:34 +0000)]
r2423: Add some instructions for building extensions.
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().
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.
Tim Potter [Sun, 19 Sep 2004 12:38:06 +0000 (12:38 +0000)]
r2419: Write tests for samr_EnumDomains() and samr_LookupDomain().
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.
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.
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.
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.
Tim Potter [Sun, 19 Sep 2004 04:59:56 +0000 (04:59 +0000)]
r2414: samr_Connect.system_name is now an array.
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.
Tim Potter [Sat, 18 Sep 2004 12:47:57 +0000 (12:47 +0000)]
r2410: Add test for samr_SetSecurity().
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.
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).
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()
Andrew Tridgell [Sat, 18 Sep 2004 08:18:10 +0000 (08:18 +0000)]
r2406: fixed a couple of typos
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
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.
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
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
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
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.
Tim Potter [Sat, 18 Sep 2004 06:31:56 +0000 (06:31 +0000)]
r2399: Display text description of rpc fault in debug message.
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.
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
Andrew Tridgell [Fri, 17 Sep 2004 11:26:57 +0000 (11:26 +0000)]
r2386: fixed some indentation
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
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
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)
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.
Andrew Tridgell [Fri, 17 Sep 2004 10:42:33 +0000 (10:42 +0000)]
r2381: added a -v debugging option to ldbedit
Andrew Tridgell [Fri, 17 Sep 2004 10:41:53 +0000 (10:41 +0000)]
r2380: nicer error reporting in convert_string()
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.
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
Stefan Metzmacher [Thu, 16 Sep 2004 05:30:19 +0000 (05:30 +0000)]
r2365: remove MSG_NOSIGNAL
metze
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.
Tim Potter [Wed, 15 Sep 2004 22:03:53 +0000 (22:03 +0000)]
r2358: More renaming of functions to keep things consistent.
Tim Potter [Wed, 15 Sep 2004 21:17:26 +0000 (21:17 +0000)]
r2357: Start coding conversion routines for security descriptors, acls and sids.
Stefan Metzmacher [Wed, 15 Sep 2004 13:29:59 +0000 (13:29 +0000)]
r2347: merge LDAP ASN.1 fixes from trunk
metze
Stefan Metzmacher [Wed, 15 Sep 2004 13:02:16 +0000 (13:02 +0000)]
r2346: fix some minor stuff
metze
Tim Potter [Wed, 15 Sep 2004 12:25:51 +0000 (12:25 +0000)]
r2345: Add test for samr_QuerySecurity()
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).
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
Tim Potter [Wed, 15 Sep 2004 12:12:48 +0000 (12:12 +0000)]
r2342: Remove obsolete file.
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
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.
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.
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
Stefan Metzmacher [Mon, 13 Sep 2004 13:13:21 +0000 (13:13 +0000)]
r2326: remove definition and usage of struct socket_context
metze
Tim Potter [Mon, 13 Sep 2004 12:44:36 +0000 (12:44 +0000)]
r2325: Generate conversion stubs for IDL unions.
Tim Potter [Mon, 13 Sep 2004 12:42:25 +0000 (12:42 +0000)]
r2324: Add hand-written versions of functions from misc.idl.
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.
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.
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
Stefan Metzmacher [Mon, 13 Sep 2004 10:33:07 +0000 (10:33 +0000)]
r2320: add my copyright
metze
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
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
Stefan Metzmacher [Mon, 13 Sep 2004 08:46:38 +0000 (08:46 +0000)]
r2315: change format
metze
Stefan Metzmacher [Mon, 13 Sep 2004 08:45:41 +0000 (08:45 +0000)]
r2314: fix compiler warning
metze
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
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
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.
Andrew Tridgell [Mon, 13 Sep 2004 05:01:15 +0000 (05:01 +0000)]
r2308: make talloc_vasprintf() available outside talloc.c
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
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
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
Andrew Tridgell [Mon, 13 Sep 2004 02:36:38 +0000 (02:36 +0000)]
r2304: fixed a bug in old style NTLM signing
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.
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'
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.
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.
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.
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.
Tim Potter [Sun, 12 Sep 2004 10:50:23 +0000 (10:50 +0000)]
r2297: Add string conversion functions.
Tim Potter [Sun, 12 Sep 2004 10:49:41 +0000 (10:49 +0000)]
r2296: Correct setting of access_mask in test program.
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.
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.
Andrew Tridgell [Sun, 12 Sep 2004 06:04:03 +0000 (06:04 +0000)]
r2293: fixed older NTLM sign/seal in the server
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