bbaumbach/samba-autobuild/.git
16 years agor2465: modify the autoidl hack to work for DRSUAPI
Andrew Tridgell [Tue, 21 Sep 2004 07:32:01 +0000 (07:32 +0000)]
r2465: modify the autoidl hack to work for DRSUAPI
(This used to be commit 59b3d68bd047231d72fa3299e7289aef25702e9b)

16 years agor2464: fix the build
Stefan Metzmacher [Tue, 21 Sep 2004 07:03:16 +0000 (07:03 +0000)]
r2464: fix the build

metze
(This used to be commit 518bd32ed5e2d2dcf0b8c5743dd71d79f32159a8)

16 years agor2463: make sure we don't send the password in a tconx unless we really have to
Andrew Tridgell [Tue, 21 Sep 2004 04:41:17 +0000 (04:41 +0000)]
r2463: make sure we don't send the password in a tconx unless we really have to
(This used to be commit 3e84c06f4c76d62f4f2606b457d9a76b6c1a061d)

16 years agor2462: added a test for the error code for no matching filename
Andrew Tridgell [Tue, 21 Sep 2004 04:11:48 +0000 (04:11 +0000)]
r2462: added a test for the error code for no matching filename
(This used to be commit 7bfbbc38ed9aac93d288aba183f7a925f170f81e)

16 years agor2461: Update samr.py torture test after policy handle parameter renames.
Tim Potter [Tue, 21 Sep 2004 04:11:41 +0000 (04:11 +0000)]
r2461: Update samr.py torture test after policy handle parameter renames.

I thought of another exception to the policy name rule - samr_Close
can operate on any kind of samr handle.
(This used to be commit 632b7cc0d6b8349a9db1e57c305c359aa500c9e6)

16 years agor2460: fixed the spnego code that I recently broke
Andrew Tridgell [Tue, 21 Sep 2004 04:11:16 +0000 (04:11 +0000)]
r2460: fixed the spnego code that I recently broke
(This used to be commit 9a708e2281b87e41032e8a0b12bb5ac3b0e151ce)

16 years agor2459: added STATUS_NO_MORE_FILES nt status code
Andrew Tridgell [Tue, 21 Sep 2004 04:10:43 +0000 (04:10 +0000)]
r2459: added STATUS_NO_MORE_FILES nt status code
(This used to be commit 3bf55c9e1129d8036a968c49ac2de7260e657f53)

16 years agor2458: Rename policy handle parameters for the SAMR pipe. Parameters now
Tim Potter [Tue, 21 Sep 2004 03:51:38 +0000 (03:51 +0000)]
r2458: Rename policy handle parameters for the SAMR pipe.  Parameters now
have the handle type implied by the parameter name.  There are four
types of handle: connect, domain, user and group handles.  The
various samr_Connect functions return a connect handle, and the
samr_OpenFoo functions return a foo handle.

There is one exception - the samr_{Get,Set}Security function can
take any type of handle.

Fix up all C callers.
(This used to be commit 32f0f3154a8eb63de83145cbc8806b8906ccdc3e)

16 years agor2457: expanded the RAW-SEARCH test to test for what happens when a directory
Andrew Tridgell [Tue, 21 Sep 2004 02:41:32 +0000 (02:41 +0000)]
r2457: expanded the RAW-SEARCH test to test for what happens when a directory
is modified while being searched, and whether the server always
returns sorted directory listings.
(This used to be commit e23514c78f1f15a61dadaa5c4de5de7cd0593ea0)

16 years agor2456: got rid of some outdated global macros
Andrew Tridgell [Tue, 21 Sep 2004 01:43:53 +0000 (01:43 +0000)]
r2456: got rid of some outdated global macros
(This used to be commit ea7eac5e3fb8f0db8d412a95ef4dc7889a07bc73)

16 years agor2455: don't use the uninitialised sess structure when auth fails
Andrew Tridgell [Tue, 21 Sep 2004 01:43:08 +0000 (01:43 +0000)]
r2455: don't use the uninitialised sess structure when auth fails
(This used to be commit 93d444e6fd6b0e86a17a9aa8fa72408435cab3e0)

16 years agor2454: fixed the accelerated StrCaseCmp() so it compares in the right order
Andrew Tridgell [Tue, 21 Sep 2004 01:42:04 +0000 (01:42 +0000)]
r2454: fixed the accelerated StrCaseCmp() so it compares in the right order
(This used to be commit 4b795cbf12108e56e5e84e3073c24ce6b625e3c3)

16 years agor2449: use a blocking fd for smbsrv code
Stefan Metzmacher [Mon, 20 Sep 2004 13:17:51 +0000 (13:17 +0000)]
r2449: use a blocking fd for smbsrv code

metze
(This used to be commit fba1637710138b0f2fae148e88b91a9cd1665465)

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
(This used to be commit e20cfb705f5ba0bef095a969f097a510bf314995)

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
(This used to be commit 2fd577d2417e117a7e8c1a56feb147eae805df34)

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
(This used to be commit a8ebb5c5bc6a8651867b46e87cf223cddf444e89)

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
(This used to be commit 9c0e50a6f3d628156b4543d5ded89e06be696f64)

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
(This used to be commit 3cd63030b1433ddc3ae89e2f45c6f7a27b7d1756)

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
(This used to be commit 36bf2f3eaf2e7568563cd98dc941d20f4574d271)

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
(This used to be commit 2757c593ab746b9dd7090f2cf5fcc31686adf67f)

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)
(This used to be commit 5e2027f8ec7248e48d1dfb94c3688c78c64a85c5)

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.
(This used to be commit 2fa6ab9fe30aeacd7b1421fd83c409acf31c98aa)

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.
(This used to be commit f2fa7fe565e89360dba3bb5434d3a6a36f398348)

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()
(This used to be commit 1b4cee825e6e3d3710eda15cc25cdf6450feec17)

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
(This used to be commit 5fcad57128e47d4d6c0f387d5563d9de2fc08351)

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)
(This used to be commit bb6bb2735eef58a135ba5cc3d64d75588a505d66)

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.
(This used to be commit cef08d5789277bdaa25d5bf0e7cfca8615230f1b)

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
(This used to be commit a1b5880b2e548832eaf4a136aab1aead525c938f)

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)
(This used to be commit 869b757bba729c9ecd720e3956958efc7541f353)

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.
(This used to be commit 1dc86e466dc546a5509fe5195444e48dc026e9a1)

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.
(This used to be commit 46b3d4cfd8effcc75293b8b0af04203fa25742b2)

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.
(This used to be commit 086740c178c80ccb8d8eaff9f97007cb021bca20)

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.
(This used to be commit a17aaadb7d57dbe4cf0a62634f405c61b79a953f)

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.
(This used to be commit bcee3860554260bca2bbb6fd73d8770a4997c041)

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.
(This used to be commit aaef6eaf6e0c38fb277d1be0617dfdff559a0115)

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.
(This used to be commit 7a7cf9f3521535da47895d1a516c8572f7f34e40)

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().
(This used to be commit 9ea5574bb12161733afb592425724cff8c4bbedd)

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.
(This used to be commit 57edfd605bffcf8a0feb5ccc5ec69cf5f35b677b)

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().
(This used to be commit aa15fd1ecba2163a077f398cecfb49d71a49cc9d)

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.
(This used to be commit e135265d1d91ff9a6a4e7ec0079ecd88f0afe784)

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.
(This used to be commit 36320c694162a58665ace10576ad18c13a7850fe)

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.
(This used to be commit fc5443af9c271baf189ebe0b098e190b5eda4e14)

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)