gd/samba-autobuild/.git
12 years agor2520: - finished implementing the server side of the old style search requests
Andrew Tridgell [Wed, 22 Sep 2004 12:38:19 +0000 (12:38 +0000)]
r2520: - finished implementing the server side of the old style search requests
(This used to be commit 4e4859c06b9de5fe60ebd17cfb09eed480b79ec1)

12 years agor2519: Registry RPC pipe fixes (use struct registry_key instead of REG_KEY, etc)
Jelmer Vernooij [Wed, 22 Sep 2004 12:33:39 +0000 (12:33 +0000)]
r2519: Registry RPC pipe fixes (use struct registry_key instead of REG_KEY, etc)
(This used to be commit 00de28876df70dbb6ca67c1a90aa9793583351bf)

12 years agor2518: Some long overdue changes:
Jelmer Vernooij [Wed, 22 Sep 2004 12:32:31 +0000 (12:32 +0000)]
r2518: Some long overdue changes:
 - Samba4-style code in lib/registry (struct registry_key instead of REG_KEY, etc)
 - Use hives (like Windows has drives) instead of one root key (like a Unix FS)
 - usability fixes in the GTK utilities (autodetect the username,
enable/disable options, etc)
 - fix gwsam compile
 - several bugfixes in the registry rpc code
 - do charset conversion in nt4 registry backend
(This used to be commit 2762ed3b9bf1d67dd54d63e02cddbfd71ea89892)

12 years agor2516: Remove duplicate line.
Tim Potter [Wed, 22 Sep 2004 12:25:53 +0000 (12:25 +0000)]
r2516: Remove duplicate line.
(This used to be commit dff6262e4f9d48ed753e00faf081e52c03c7129c)

12 years agor2515: Fixes from smbtorture - these session keys are not individually encrypted.
Andrew Bartlett [Wed, 22 Sep 2004 12:17:51 +0000 (12:17 +0000)]
r2515: Fixes from smbtorture - these session keys are not individually encrypted.

Andrew Bartlett
(This used to be commit 131420b45e88cb72090c9b28a53295edfa364cfe)

12 years agor2514: Remove unused funcions, and add static.
Andrew Bartlett [Wed, 22 Sep 2004 12:15:27 +0000 (12:15 +0000)]
r2514: Remove unused funcions, and add static.

Andrew Bartlett
(This used to be commit fd10c9dd536bde497829aaed9e0ba2d51ffe2315)

12 years agor2513: Avoid strupper/strlower when you can. This developers module
Andrew Bartlett [Wed, 22 Sep 2004 12:14:44 +0000 (12:14 +0000)]
r2513: Avoid strupper/strlower when you can.  This developers module
certainly doesn't need it.

Andrew Bartlett
(This used to be commit 77d7c76c9bc7a4fa109056140a5f4107b4410838)

12 years agor2512: Remove unused stub functions.
Andrew Bartlett [Wed, 22 Sep 2004 12:02:16 +0000 (12:02 +0000)]
r2512: Remove unused stub functions.

Andrew Bartlett
(This used to be commit f543de80b1dff25f32cd415c6f4d3bfda6c919be)

12 years agor2511: Add NT status codes.
Tim Potter [Wed, 22 Sep 2004 11:48:10 +0000 (11:48 +0000)]
r2511: Add NT status codes.
(This used to be commit 471b13da2b0893a58977154dbe4d004d5c06aed4)

12 years agor2510: Make C++ compilers happy, use ifdef instead of if
Jelmer Vernooij [Wed, 22 Sep 2004 11:24:07 +0000 (11:24 +0000)]
r2510: Make C++ compilers happy, use ifdef instead of if
(This used to be commit 7c31998da148cca53e798e3d89b9b754de2e64ac)

12 years agor2509: add a struct ldapsrv_call which is simular to the dcesrv_call_state struct
Stefan Metzmacher [Wed, 22 Sep 2004 10:48:32 +0000 (10:48 +0000)]
r2509: add a struct ldapsrv_call which is simular to the dcesrv_call_state struct
and related stuff...

metze
(This used to be commit dc1f8212ff717765c40ea5668e841db50e636748)

12 years agor2508: - implemented ldap_decode() for UnbindRequest and ExtendedRequest
Stefan Metzmacher [Wed, 22 Sep 2004 10:42:58 +0000 (10:42 +0000)]
r2508: - implemented ldap_decode() for UnbindRequest and ExtendedRequest
- fail when we got a wrong tag in ldap_decode()

metze
(This used to be commit e942f414c5f9130c7ac9996612caaefd29f5eeca)

12 years agor2507: Allow a case-insensitive lookup when converting strings into NTSTATUS
Andrew Bartlett [Wed, 22 Sep 2004 10:42:09 +0000 (10:42 +0000)]
r2507: Allow a case-insensitive lookup when converting strings into NTSTATUS
values.

Andrew Bartlett
(This used to be commit 59e361f7cca1bbaeba5d5952173b90665a76ab2d)

12 years agor2506: Add more printf attributes for format checking.
Andrew Bartlett [Wed, 22 Sep 2004 10:36:55 +0000 (10:36 +0000)]
r2506: Add more printf attributes for format checking.

Andrew Bartlett
(This used to be commit 1640272dc36a0cb5bc8e647d06c7cee46022f077)

12 years agor2505: Remove unused function. If/when we implement plaintext authenticaton
Andrew Bartlett [Wed, 22 Sep 2004 10:34:49 +0000 (10:34 +0000)]
r2505: Remove unused function.  If/when we implement plaintext authenticaton
in Samba4, I want to redo this.

Andrew Bartlett
(This used to be commit 139cc702ac7ce0c6e3bfdfe37199299cc1bc53c2)

12 years agor2504: Add printf attribute, for format argument checking.
Andrew Bartlett [Wed, 22 Sep 2004 10:32:56 +0000 (10:32 +0000)]
r2504: Add printf attribute, for format argument checking.

Andrew Bartlett
(This used to be commit 543401990aa9eb650cb93fa6cb60d2a0adf7b274)

12 years agor2503: the RAW-SEARCH test now mostly passes against the posix backend
Andrew Tridgell [Wed, 22 Sep 2004 08:17:26 +0000 (08:17 +0000)]
r2503: the RAW-SEARCH test now mostly passes against the posix backend
(This used to be commit 9710f24b1fd103d5656c9585cdfed96449cf9f97)

12 years agor2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo,
Tim Potter [Wed, 22 Sep 2004 07:04:44 +0000 (07:04 +0000)]
r2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo,
samr_QueryAliasInfo, samr_SetAliasInfo, samr_AddMemberToAlias,
samr_AddMultipleMembersToAlias, samr_QueryDisplayInfo,
samr_QueryDisplayInfo2, samr_QueryDisplayInfo3,
samr_GetDisplayEnumerationIndex, samr_GetDisplayEnumerationIndex2,
samr_TestPrivateFunctionsDomain, samr_RidToSid,
samr_GetBootKeyInformation, samr_DeleteUser, samr_DeleteAlias,
samr_Close.
(This used to be commit 808e0708a9601bb94246311e03a1d5adcf654022)

12 years agor2501: The AddMemberToAlias test doesn't need a domain_handle.
Tim Potter [Wed, 22 Sep 2004 06:46:30 +0000 (06:46 +0000)]
r2501: The AddMemberToAlias test doesn't need a domain_handle.
(This used to be commit 90a9e754db91647607eef3a2ccb08d3651fca9df)

12 years agor2500: disable the sleep test in echo until we have a win32 echo server that
Andrew Tridgell [Wed, 22 Sep 2004 05:17:55 +0000 (05:17 +0000)]
r2500: disable the sleep test in echo until we have a win32 echo server that
does Microsoft style async rpc serving
(This used to be commit 050dcd9b95576e1a9c0cb2144fc01c690853abc0)

12 years agor2499: - use more efficient wildcard delete in smbclient
Andrew Tridgell [Wed, 22 Sep 2004 05:15:56 +0000 (05:15 +0000)]
r2499: - use more efficient wildcard delete in smbclient

- use "*.*" instead of "*" when connected to ancient servers
(This used to be commit e28f2027580f31b392ecc9e115ee2eb5fc80f933)

12 years agor2498: added STATUS_NO_MORE_FILES to nt status codes that we can map to a string
Andrew Tridgell [Wed, 22 Sep 2004 05:14:59 +0000 (05:14 +0000)]
r2498: added STATUS_NO_MORE_FILES to nt status codes that we can map to a string
(This used to be commit b7191999634cf3817dc69dd3743d185ae41dbdc3)

12 years agor2497: fixed an uninitialised 4 bytes in old style session setup (found with valgrind)
Andrew Tridgell [Wed, 22 Sep 2004 05:14:20 +0000 (05:14 +0000)]
r2497: fixed an uninitialised 4 bytes in old style session setup (found with valgrind)
(This used to be commit b2bb41721817256618124907a6922a00d50643dc)

12 years agor2496: Check that reference parameters are not None.
Tim Potter [Wed, 22 Sep 2004 05:14:15 +0000 (05:14 +0000)]
r2496: Check that reference parameters are not None.
(This used to be commit a2ab6c5ef9cc6db27fc8c73e6117f0f7a116d563)

12 years agor2495: cope properly with STATUS_NO_MORE_FILES in old search client code
Andrew Tridgell [Wed, 22 Sep 2004 05:13:32 +0000 (05:13 +0000)]
r2495: cope properly with STATUS_NO_MORE_FILES in old search client code
(This used to be commit 878729b7d97869a3d6dacea115ed4af2fd18e93c)

12 years agor2494: fixed connecting to a share mode server (tested and really works now)
Andrew Tridgell [Wed, 22 Sep 2004 05:13:00 +0000 (05:13 +0000)]
r2494: fixed connecting to a share mode server (tested and really works now)
(This used to be commit 25f725c9be8fe5a7fd85488214b598bc431d4c7f)

12 years agor2493: allow tdb to build standalone
Andrew Tridgell [Wed, 22 Sep 2004 05:12:21 +0000 (05:12 +0000)]
r2493: allow tdb to build standalone
(This used to be commit 0d5af5b70bd010e7107b18f73a4b899e05c4f025)

12 years agor2492: Some cleanups.
Tim Potter [Wed, 22 Sep 2004 04:17:25 +0000 (04:17 +0000)]
r2492: Some cleanups.

Add tests for samr_CreateDomainGroup, samr_DeleteDomainGroup,
samr_QueryDomainInfo, samr_SetDomainInfo, samr_EnumDomainUsers,
samr_EnumDomainAliases, samr_EnumDomainGroups.
(This used to be commit 991d783c1ade19443c92b85f2b5763b5f51c6d61)

12 years agor2491: Handle pointers to scalars when converting to a Python dictionary (i.e
Tim Potter [Wed, 22 Sep 2004 04:12:36 +0000 (04:12 +0000)]
r2491: Handle pointers to scalars when converting to a Python dictionary (i.e
resume handles).

Remove some now unused debugging code.
(This used to be commit f250203a5f54c689c09ba780e9e3af7f8f2311bb)

12 years agor2490: Some changes to take into account non-error NTSTATUS codes being returned:
Tim Potter [Wed, 22 Sep 2004 03:42:58 +0000 (03:42 +0000)]
r2490: Some changes to take into account non-error NTSTATUS codes being returned:

  - Only throw an exception if NT_STATUS_IS_ERR() instead of
    !NT_STATUS_IS_OK().

  - Add the NTSTATUS value to the returned dictionary under a key of
    'result' so calling functions can access it.
(This used to be commit 4ddcae90a2e9b93e58bd57932cd9ae4c95be6ae8)

12 years agor2489: Rename account_flags in EnumDomainAliases() to acct_flags.
Tim Potter [Wed, 22 Sep 2004 03:36:17 +0000 (03:36 +0000)]
r2489: Rename account_flags in EnumDomainAliases() to acct_flags.
(This used to be commit a0e571a9ddc01b8e90a93d591aec4b10c9926818)

12 years agor2486: Use correct type checks when checking 64-bit quantities (int64, uint64,
Tim Potter [Wed, 22 Sep 2004 02:39:38 +0000 (02:39 +0000)]
r2486: Use correct type checks when checking 64-bit quantities (int64, uint64,
NTTIME and HYPER_T).

Also use the correct conversion routines when creating 64 bit objects.
(This used to be commit f09fee92395e89c768e221728d5b0114d78f59fe)

12 years agor2485: - add a test case in ldbtest for a bug pointed out by Jon Haswell.
Andrew Tridgell [Wed, 22 Sep 2004 02:05:02 +0000 (02:05 +0000)]
r2485: - add a test case in ldbtest for a bug pointed out by Jon Haswell.

- fixed the bug shown with the above test, by initialising the
  sequence number to something different from the value used in
  ltdb_cache_free()
(This used to be commit 856cdf82f24aada074ee5c605cccb2e8ceeea487)

12 years agor2484: allow ldb to build standalone again
Andrew Tridgell [Wed, 22 Sep 2004 02:03:34 +0000 (02:03 +0000)]
r2484: allow ldb to build standalone again
(This used to be commit 05601a4c6f7c7a019fcac8743e2e4775a498b26a)

12 years agor2469: complete overhaul of the old-style RAW_SEARCH_ calls (the OS/2 and
Andrew Tridgell [Tue, 21 Sep 2004 08:46:47 +0000 (08:46 +0000)]
r2469: complete overhaul of the old-style RAW_SEARCH_ calls (the OS/2 and
original core level calls). The old code was completely wrong in many respects.

also fixed the EA_SIZE level in the server

extended the RAW-SEARCH test suite to test the new code properly
(This used to be commit 71480271ad84b57fcdde264a54bb2408cf783255)

12 years agor2468: print out the names of the fault codes#
Stefan Metzmacher [Tue, 21 Sep 2004 08:11:53 +0000 (08:11 +0000)]
r2468: print out the names of the fault codes#

metze
(This used to be commit a0c2a3a5d4fba2a6a78cc3d167cbc19941fb43dc)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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