sfrench/samba-autobuild/.git
14 years agor6361: Update howto and provisioning script with the moves made in r6207.
Tim Potter [Sun, 17 Apr 2005 00:45:49 +0000 (00:45 +0000)]
r6361: Update howto and provisioning script with the moves made in r6207.
(This used to be commit e2f127b4d822c98668e20e724a4ca91b320092b3)

14 years agor6360: Quieten unused variable warning.
Tim Potter [Sun, 17 Apr 2005 00:07:40 +0000 (00:07 +0000)]
r6360: Quieten unused variable warning.
(This used to be commit 5a598f5da17b60ad52b2ae9d8e4484286e492a1f)

14 years agor6359: Fix compiler warning with struct sockaddr. I'm sure I fixed this a few
Tim Potter [Sun, 17 Apr 2005 00:06:46 +0000 (00:06 +0000)]
r6359: Fix compiler warning with struct sockaddr.  I'm sure I fixed this a few
weeks ago - weird.
(This used to be commit 1738761d895461260dcba0dd81630cfa0ec43ae8)

14 years agor6353: we need the english output from the svn commands
Stefan Metzmacher [Fri, 15 Apr 2005 15:36:53 +0000 (15:36 +0000)]
r6353: we need the english output from the svn commands

metze
(This used to be commit ccedfc9fe72d837186e80a54e6ecd8406e83d1fa)

14 years agor6352: Two new composite calls:
Alexander Bokovoy [Fri, 15 Apr 2005 14:45:00 +0000 (14:45 +0000)]
r6352: Two new composite calls:

- qfsinfo (query file system information)
- appendacl (append an ACL to existing file's security descriptor and get new
full ACL)

The second one also includes an improvement to security descriptor handling
which allows to copy security descriptor. Written by Peter Novodvorsky
<peter.novodvorsky@ru.ibm.com>

Both functions have corresponding torture tests added. Tested under valgrind and
work against Samba 4 and Windows XP.

ToDo: document composite call creation process in prog_guide.txt
(This used to be commit 441cff62ac75ed16851ce7b8daf9d03eb4c3ec79)

14 years agor6350: Add a newline to make things look prettier.
Tim Potter [Fri, 15 Apr 2005 07:15:45 +0000 (07:15 +0000)]
r6350: Add a newline to make things look prettier.
(This used to be commit 0e6be68dafb8979bcc2cb633c816e3f80e9441c1)

14 years agor6342: fixed a bad union assumption that caused ACLs to fail on 64 bit machines
Andrew Tridgell [Thu, 14 Apr 2005 13:19:40 +0000 (13:19 +0000)]
r6342: fixed a bad union assumption that caused ACLs to fail on 64 bit machines

Thanks to lars and agruen for finding this
(This used to be commit 2acc06918574b1178eecf3d61026f84f85bb40e1)

14 years agor6341: fixed the schannel idl to handle dotted names correctly
Andrew Tridgell [Thu, 14 Apr 2005 08:44:28 +0000 (08:44 +0000)]
r6341: fixed the schannel idl to handle dotted names correctly
(This used to be commit 2873c0e917e172f8f3186ad93c154f51198c352b)

14 years agor6340: - added an easy to use function to initialise a temporary ldb with some ldif
Andrew Tridgell [Thu, 14 Apr 2005 08:24:36 +0000 (08:24 +0000)]
r6340: - added an easy to use function to initialise a temporary ldb with some ldif

- init the schannel.ldb with some CASE_INSENSITIVE attributes
(This used to be commit e6376b24303dc513e15c7e640c8c1c8d8ca11091)

14 years agor6339: set the NBT_SERVER_LDAP and NBT_SERVER_KDC bits based on config
Andrew Tridgell [Thu, 14 Apr 2005 08:00:45 +0000 (08:00 +0000)]
r6339: set the NBT_SERVER_LDAP and NBT_SERVER_KDC bits based on config
(andrew, please fix the method of sseeing if we do krb5, if you can
think of a better one)
(This used to be commit 4c2207c946fa7bb6a8ba32ac82256c424b5d0d3c)

14 years agor6338: ADS style GETDC response now works well enough that WinXP can join
Andrew Tridgell [Thu, 14 Apr 2005 07:40:23 +0000 (07:40 +0000)]
r6338: ADS style GETDC response now works well enough that WinXP can join
Samba4 without Samba3 nmbd
(This used to be commit f4d07d7d3b6973b503d8c98f177471dd6cebfa92)

14 years agor6335: at debug level 10, save netlogon and ntlogon packets that fail to parse
Andrew Tridgell [Thu, 14 Apr 2005 05:55:32 +0000 (05:55 +0000)]
r6335: at debug level 10, save netlogon and ntlogon packets that fail to parse
(This used to be commit c29279355c679e821665d028f207ee9ed6f857ef)

14 years agor6333: removed an extraneous line (pointed out by metze)
Andrew Tridgell [Thu, 14 Apr 2005 05:52:54 +0000 (05:52 +0000)]
r6333: removed an extraneous line (pointed out by metze)
(This used to be commit 61d65d100d38529966f3f1803f66ed47540dc852)

14 years agor6331: added IDL and test suite for the ADS style response to a datagram netlogon...
Andrew Tridgell [Thu, 14 Apr 2005 02:36:30 +0000 (02:36 +0000)]
r6331: added IDL and test suite for the ADS style response to a datagram netlogon query.

Note that this response is almost identical to the CLDAP netlogon
response, so adding that will now be quite easy.
(This used to be commit 1ea4ed4ad1d9336f8288283688fa2d7bebfa533c)

14 years agor6329: Write tests for newly implemented alias functions.
Tim Potter [Wed, 13 Apr 2005 07:15:43 +0000 (07:15 +0000)]
r6329: Write tests for newly implemented alias functions.
(This used to be commit 30d0c9fb2ededb86e40b985820a426f8df84053b)

14 years agor6328: Fix bug in OpenAlias.
Tim Potter [Wed, 13 Apr 2005 07:14:33 +0000 (07:14 +0000)]
r6328: Fix bug in OpenAlias.

Implement DeleteDomAlias, QueryAliasInfo, SetAliasInfo,
AddAliasMember, and AddMultipleMembersToAlias.

Fix one of those annoying large integer warnings.
(This used to be commit 25ed39651b020c9e4bda1d8aa8e2d78f918be3a2)

14 years agor6327: Add LSA objects to dcerpc swig library.
Tim Potter [Wed, 13 Apr 2005 07:13:00 +0000 (07:13 +0000)]
r6327: Add LSA objects to dcerpc swig library.
(This used to be commit b6e883a613e35ec3d5541a45efb80345578e2460)

14 years agor6326: Add %array_functions for struct lsa_SidPtr.
Tim Potter [Wed, 13 Apr 2005 07:12:17 +0000 (07:12 +0000)]
r6326: Add %array_functions for struct lsa_SidPtr.

Pull in the auto-generated interface file for the lsa pipe
(whaddayaknow it compiled first go!)
(This used to be commit fd884ec433c825759624a47541521cbd3d07f5a1)

14 years agor6325: Rename aliasname -> alias_name in CreateDomAlias function.
Tim Potter [Wed, 13 Apr 2005 06:26:43 +0000 (06:26 +0000)]
r6325: Rename aliasname -> alias_name in CreateDomAlias function.
(This used to be commit 63dfa9b80649928baf72687381fcfb6dd4d20032)

14 years agor6324: Pass server name instead of binding string on command line (always use
Tim Potter [Wed, 13 Apr 2005 05:57:51 +0000 (05:57 +0000)]
r6324: Pass server name instead of binding string on command line (always use
ncacn_np for the moment).

Fix rpcclient to work with struct cli_credentials.
(This used to be commit 162d3609a1f46683151d201a5404d0456d76b726)

14 years agor6323: added server side support for dgram NTLOGON requests. NT4 workstations can...
Andrew Tridgell [Wed, 13 Apr 2005 05:50:02 +0000 (05:50 +0000)]
r6323: added server side support for dgram NTLOGON requests. NT4 workstations can now login
to a Samba4 domain.
(This used to be commit df146d64ebce6b462c08a1f30919390fcf8196cb)

14 years agor6322: Fix compile warning for struct sockaddr.
Tim Potter [Wed, 13 Apr 2005 05:42:07 +0000 (05:42 +0000)]
r6322: Fix compile warning for struct sockaddr.
(This used to be commit 9c45f8d7bc21a4426091ea03f9f0681d7dad3edd)

14 years agor6321: added IDL and test suite for NBT dgram 'sam logon' request (sent by
Andrew Tridgell [Wed, 13 Apr 2005 05:07:04 +0000 (05:07 +0000)]
r6321: added IDL and test suite for NBT dgram 'sam logon' request (sent by
clients when a user tries to login)
(This used to be commit 08ded62156b387457bc56b5910e1ddc813b375bd)

14 years agor6320: some minor netlogon datagram fixes - NT4 can now join a Samba4 domain without
Andrew Tridgell [Wed, 13 Apr 2005 03:43:17 +0000 (03:43 +0000)]
r6320: some minor netlogon datagram fixes - NT4 can now join a Samba4 domain without
Samba3 nmbd
(This used to be commit 4507bdc339505e91118d403948946f4a98a4f562)

14 years agor6315: Allow sane session setup behaviour on SPNEGO regarding VUIDs.
Andrew Bartlett [Tue, 12 Apr 2005 07:56:56 +0000 (07:56 +0000)]
r6315: Allow sane session setup behaviour on SPNEGO regarding VUIDs.

Andrew Bartlett
(This used to be commit 6e2327ee9bb3a9695eb85c6891f73f46d382919f)

14 years agor6314: A more complete RAW-CONTEXT test. This Samba4 currently fails, but it
Andrew Bartlett [Tue, 12 Apr 2005 07:43:38 +0000 (07:43 +0000)]
r6314: A more complete RAW-CONTEXT test.  This Samba4 currently fails, but it
now tests areas in extended security handling (SPNEGO) that are just
plain odd...

Andrew Bartlett
(This used to be commit d8d63e8c79f80a0cc64e2264a2671005752c34c4)

14 years agor6313: Much better handling of LogoffAndX when the vuid is invalid (ie, don't
Andrew Bartlett [Tue, 12 Apr 2005 07:29:12 +0000 (07:29 +0000)]
r6313: Much better handling of LogoffAndX when the vuid is invalid (ie, don't
segfault).  This should fix another of the issues that Richard came up
with last week.

Andrew Bartlett
(This used to be commit c2c8b6abf3ffa39c8677cab4fda415d66df0c4ff)

14 years agor6312: Metze reminds me this header is no longer required.
Andrew Bartlett [Tue, 12 Apr 2005 06:51:36 +0000 (06:51 +0000)]
r6312: Metze reminds me this header is no longer required.

Andrew Bartlett
(This used to be commit c67a9370c4e8f94aad68abba073779bb0edf742b)

14 years agor6310: Rename password.c to session.c, and remove the linked list of all
Andrew Bartlett [Tue, 12 Apr 2005 05:36:28 +0000 (05:36 +0000)]
r6310: Rename password.c to session.c, and remove the linked list of all
outstanding sessions, as we don't use it.

Andrew Bartlett
(This used to be commit 0cbd11a0f2448f2021fa1d8ad85a0a6f52192ee8)

14 years agor6309: Remove this file it is empty and unreferenced. (In preperation for
Andrew Bartlett [Tue, 12 Apr 2005 05:21:38 +0000 (05:21 +0000)]
r6309: Remove this file it is empty and unreferenced.  (In preperation for
renaming password.c over the top, as it deals with sessions, not
passwords).

Andrew Bartlett
(This used to be commit 0bba8da460f77946ba9ee5db58ae2329e9e57e1a)

14 years agor6306: Add simple WMI client test script
Jelmer Vernooij [Tue, 12 Apr 2005 01:14:54 +0000 (01:14 +0000)]
r6306: Add simple WMI client test script
(This used to be commit 690a7d71d8d7c98d2002ab04c289c57ccac835c4)

14 years agor6295: - add idl for EcDoRpc from the exchange_emsmdb interface
Stefan Metzmacher [Mon, 11 Apr 2005 13:28:22 +0000 (13:28 +0000)]
r6295: - add idl for EcDoRpc from the exchange_emsmdb interface
  this one uses a obfuscation(0xA5) subcontext

this is taken from the openchange.org project

metze
(This used to be commit 4632b37d0c35c02875264db07f9c4477b3b8e040)

14 years agor6294: - add obfuscate support, which is used in MAPI rpc's, (the ^= 0xA5 stuff),
Stefan Metzmacher [Mon, 11 Apr 2005 13:25:38 +0000 (13:25 +0000)]
r6294: - add obfuscate support, which is used in MAPI rpc's, (the ^= 0xA5 stuff),
  based on a patch from j.kerihuel@openchange.org

- remove unused $ndr_flags argument for the ParseCompression*Start() function's

metze
(This used to be commit 27ccdd61822ba1a24244086522b9f8fe97fe0a78)

14 years agor6293: fix formating
Stefan Metzmacher [Mon, 11 Apr 2005 12:38:00 +0000 (12:38 +0000)]
r6293: fix formating

metze
(This used to be commit f5424d2dad00abbb11262a2b4b9468497c1f81a7)

14 years agor6288: the nbt dgram server now responds to GETDC requests. It works with our
Andrew Tridgell [Sun, 10 Apr 2005 23:09:38 +0000 (23:09 +0000)]
r6288: the nbt dgram server now responds to GETDC requests. It works with our
test suite, but doesn't yet seem to satisfy a nt4 client. I'm
investigating.
(This used to be commit 406217262dff5adb5d0cb0028198e08f66cc85f4)

14 years agor6287: sorted out a small but surprisingly tricky dependency problem with the
Andrew Tridgell [Sun, 10 Apr 2005 23:08:04 +0000 (23:08 +0000)]
r6287: sorted out a small but surprisingly tricky dependency problem with the
ndr code for handling sids and security descriptors now that we have a
sid in the nbt IDL
(This used to be commit f8e77fcdeac704aed5e501aa9108f3ed0ab26ca4)

14 years agor6286: Add back metze's test of setting a trust password to ''. I removed
Andrew Bartlett [Sun, 10 Apr 2005 22:23:02 +0000 (22:23 +0000)]
r6286: Add back metze's test of setting a trust password to ''.  I removed
this because I don't want our torture suite to leave behind accounts
with known passwords if it is stopped in the wrong place.  It is now
run behind the -X (dangerous) wrapper.

Andrew Bartlett
(This used to be commit 057a81d81ed8dfaf323be118e32df2cf1c92cc09)

14 years agor6272: For 'programmed' use of an anonymous account, we should use
Andrew Bartlett [Sun, 10 Apr 2005 10:13:57 +0000 (10:13 +0000)]
r6272: For 'programmed' use of an anonymous account, we should use
cli_credentials_set_conf(), not cli_credentials_guess().

Also, clarify why for particular flags, we don't do a DCERPC-level
authentication.

Andrew Bartlett
(This used to be commit 838925761d004a1426107f4c5c84d0276fddb2c0)

14 years agor6271: Don't zero the cli_credentials structure - instead allow valgrind to
Andrew Bartlett [Sun, 10 Apr 2005 10:11:36 +0000 (10:11 +0000)]
r6271: Don't zero the cli_credentials structure - instead allow valgrind to
track the use of un-initialised values.

This change will require a recompile from clean, as the enum
describing the status of each element now has a default of
CRED_UNINITIALISED.

Andrew Bartlett
(This used to be commit 83c2eb806d43f588bd06336aa7e2dbdc00dc2c67)

14 years agor6270: Move the VUID handling to a IDR tree. This should avoid O(n)
Andrew Bartlett [Sun, 10 Apr 2005 07:39:51 +0000 (07:39 +0000)]
r6270: Move the VUID handling to a IDR tree.  This should avoid O(n)
behaviour on session setups, and because we no longer need do deal
with the linked list as much, the code is much simpiler too.

We may be able to compleatly remove the tid and vuid linked lists, but
I need to check.

This patch also tries to clean up the VUID handling and session setups
in general.  To avoid security issues, we now have a distinction
between VUIDs allocated for the session setup (to tie togeather the
multiple round trips) and those used after authentication.

Andrew Bartlett
(This used to be commit 3e5775146d9ce6f0ac43aecae7e899b5324399ad)

14 years agor6248: added parsing of type 10 UAS announce netlogon packets
Andrew Tridgell [Fri, 8 Apr 2005 09:38:16 +0000 (09:38 +0000)]
r6248: added parsing of type 10 UAS announce netlogon packets
(This used to be commit d7e6e395cedef47dc182094c91f764e248b9b149)

14 years agor6247: added the server side code for receiving mailslot requests, and
Andrew Tridgell [Fri, 8 Apr 2005 08:57:09 +0000 (08:57 +0000)]
r6247: added the server side code for receiving mailslot requests, and
parsing incoming netlogon requests. No replies are sent yet.
(This used to be commit 3b34df6a674cd2aeddc354cdadae3f0e1c000d45)

14 years agor6246: stop waiting when we get a reply
Andrew Tridgell [Fri, 8 Apr 2005 05:46:00 +0000 (05:46 +0000)]
r6246: stop waiting when we get a reply
(This used to be commit 8b9a5d8336da43619fc1ea8f081d5ade98f0599b)

14 years agor6245: receive and parse the GETDC response in the NBT-DGRAM test. The test
Andrew Tridgell [Fri, 8 Apr 2005 05:34:13 +0000 (05:34 +0000)]
r6245: receive and parse the GETDC response in the NBT-DGRAM test. The test
now tries to bind to port 138 if possible, so if you run it as root
and smbd/nmbd is not running then it works against windows servers
(This used to be commit 52ccdb79bc922be52c24dd393323dbbee83a2aea)

14 years agor6238: Ensure if realloc fails on an internal
Jeremy Allison [Thu, 7 Apr 2005 19:50:54 +0000 (19:50 +0000)]
r6238: Ensure if realloc fails on an internal
tdb we fail gracefully.
Jeremy.
(This used to be commit d69f7c05468ae54e0474b188fedabe14e7297d53)

14 years agor6229: Back out these changes ...
Richard Sharpe [Wed, 6 Apr 2005 23:22:52 +0000 (23:22 +0000)]
r6229: Back out these changes ...
(This used to be commit 321fbae51267153102e47845736f2c3a5abfe0be)

14 years agor6226: A couple of small typos ...
Richard Sharpe [Wed, 6 Apr 2005 16:48:28 +0000 (16:48 +0000)]
r6226: A couple of small typos ...
(This used to be commit d2c5320a18821439e49d3f7bffebc47129b8b057)

14 years agor6223: added a bit more datagram infrastructure and the beginnings of a test
Andrew Tridgell [Wed, 6 Apr 2005 11:17:08 +0000 (11:17 +0000)]
r6223: added a bit more datagram infrastructure and the beginnings of a test
suite. The NBT-DGRAM test does a UDP/138 netlogon request, to which a
windows server sends a reply, but the windows server sends the reply
to the wrong port (it always sends to 138), so the test suite doesn't
see it.
(This used to be commit a7634625dbc944dd8256a822be290010f341a571)

14 years agor6222: fixed the socket wrapper code for getsockname()
Andrew Tridgell [Wed, 6 Apr 2005 10:06:08 +0000 (10:06 +0000)]
r6222: fixed the socket wrapper code for getsockname()
(This used to be commit 11e245a3f0e1523eba3a042db140dec8732aa985)

14 years agor6219: This change allows us to fall back to authenticating without
Richard Sharpe [Tue, 5 Apr 2005 19:53:07 +0000 (19:53 +0000)]
r6219: This change allows us to fall back to authenticating without
DCERPC_SCHANNEL_128 if we fail. Thus, it allows us to work with Windows
NT DCs ...
(This used to be commit 3034b226705c4736d57c9bf4e9470c4d44c72e8e)

14 years agor6215: Add test for LookupNames. Fix CreateUser2 test.
Tim Potter [Tue, 5 Apr 2005 11:54:53 +0000 (11:54 +0000)]
r6215: Add test for LookupNames.  Fix CreateUser2 test.
(This used to be commit e3a69a73222ae3277c2d10d33c5c71b7a14da789)

14 years agor6214: Fix typo in DomainHandle.OpenUser() function.
Tim Potter [Tue, 5 Apr 2005 11:50:47 +0000 (11:50 +0000)]
r6214: Fix typo in DomainHandle.OpenUser() function.

Implement DomainHandle.LookupNames() function.

UserHandle.DeleteUser() closes the handle so don't try and close it
when the GC destroys the class instance.
(This used to be commit 57680163bcc1aa5c707a64dcd1d0998dbc9f0659)

14 years agor6213: Add %array_functions for struct samr_String so we can create and
Tim Potter [Tue, 5 Apr 2005 11:48:16 +0000 (11:48 +0000)]
r6213: Add %array_functions for struct samr_String so we can create and
access arrays of them.
(This used to be commit fc2b73d4d75f383108632935ba047890c816b283)

14 years agor6212: Treat uint8 and int8's as integers instead of chars. Swig maps a char
Tim Potter [Tue, 5 Apr 2005 11:47:21 +0000 (11:47 +0000)]
r6212: Treat uint8 and int8's as integers instead of chars.  Swig maps a char
to a string when we really want an integer.
(This used to be commit 86c62b92e84a6eb1e756a7125777587583a9276e)

14 years agor6211: Use cli_credentials_set_{domain,username,password}() to fill in
Tim Potter [Tue, 5 Apr 2005 09:38:51 +0000 (09:38 +0000)]
r6211: Use cli_credentials_set_{domain,username,password}() to fill in
command line arguments for credentials typemap.  Neat!
(This used to be commit a3e7d71463053101e743a930f2648269d63ecaca)

14 years agor6210: Call cli_credentials_set_conf() when initialising credentials in
Tim Potter [Tue, 5 Apr 2005 09:18:36 +0000 (09:18 +0000)]
r6210: Call cli_credentials_set_conf() when initialising credentials in
cli_credentials typemap.
(This used to be commit 1c88e71ec645d10648f01e0405d29a4a83bc4036)

14 years agor6209: started added code to support mailslot requests over UDP/138
Andrew Tridgell [Tue, 5 Apr 2005 08:35:02 +0000 (08:35 +0000)]
r6209: started added code to support mailslot requests over UDP/138
datagrams. This adds the IDL to parse mailslot packets, plus mailslot
dispatch and listener registration code.

mailslots are used for UDP/138 browse and netlogon packets
(This used to be commit f20e7e5200de736b3451d748ed716be638f93502)

14 years agor6208: Add cli_credentials support for swig wrappers. For the moment it
Tim Potter [Tue, 5 Apr 2005 07:58:02 +0000 (07:58 +0000)]
r6208: Add cli_credentials support for swig wrappers.  For the moment it
only does anonymous connections.
(This used to be commit b09a4723539235fc924134aa50fc4aed040afb33)

14 years agor6207: - clean up source topdir
Stefan Metzmacher [Tue, 5 Apr 2005 07:03:31 +0000 (07:03 +0000)]
r6207: - clean up source topdir
- move provision stuff to setup/
- remove unused scripts

metze
(This used to be commit c35887ca649675f28ca986713a08082420418d74)

14 years agor6206: go baack 10 revisions to get DatabaseDeltas, this shows that the bdc only
Stefan Metzmacher [Tue, 5 Apr 2005 06:55:10 +0000 (06:55 +0000)]
r6206: go baack 10 revisions to get DatabaseDeltas, this shows that the bdc only
need one call to get in sync again (except something like NT_STATUS_MORE_ENTRIES is returned)

also the pdc only need to know the current state values

metze
(This used to be commit f4e12b38937bd8c16fd1a8b13401a65565d4bd00)

14 years agor6197: fix for my last commit, I removed SPOOLSS_ARCHITECTURE, which was "Architecture"
Stefan Metzmacher [Mon, 4 Apr 2005 17:04:03 +0000 (17:04 +0000)]
r6197: fix for my last commit, I removed SPOOLSS_ARCHITECTURE, which was "Architecture"
(sorry richard:-)

disable lookup for DefaultSpoolDirectory until, I have fixed the parsing when WERR_MORE_DATA
is returned

metze
(This used to be commit d5993337b814560cd59d8d08b30fe31e2fb9fd28)

14 years agor6196: Make the comparisons consistent with in the same expression.
Richard Sharpe [Mon, 4 Apr 2005 16:42:31 +0000 (16:42 +0000)]
r6196: Make the comparisons consistent with in the same expression.
(This used to be commit 6f7337163e2eaae2d24ccebcd31787e48f543fbf)

14 years agor6195: I think Metze meant SPOOLSS_ARCHITECTURE_NT_X86, but I could be wrong.
Richard Sharpe [Mon, 4 Apr 2005 16:40:23 +0000 (16:40 +0000)]
r6195: I think Metze meant SPOOLSS_ARCHITECTURE_NT_X86, but I could be wrong.
(This used to be commit 85c2b8b9447efdcefe16517a5509357262c6229c)

14 years agor6194: - fix some spoolss_*Form names and types
Stefan Metzmacher [Mon, 4 Apr 2005 15:19:27 +0000 (15:19 +0000)]
r6194: - fix some spoolss_*Form names and types

- fix GetPrinterData(), look inside the datablob

- add idl for RemoteFindFirstChangeNotify(), without meaning yet, just to not return a DCERPC_FAULT
  when receiving this request

metze
(This used to be commit 92f3d5bd9c700032612ac20dc7635730c555c4da)

14 years agor6193: we don't need to store the handle type here,
Stefan Metzmacher [Mon, 4 Apr 2005 15:15:18 +0000 (15:15 +0000)]
r6193: we don't need to store the handle type here,
it's in handle->wire_handle.handle_type

metze
(This used to be commit 539286bc9fa1638dd564fb2f8ba924a0ede8db08)

14 years agor6192: remove handle->destroy function pointer, this should be done by talloc destruc...
Stefan Metzmacher [Mon, 4 Apr 2005 14:58:52 +0000 (14:58 +0000)]
r6192: remove handle->destroy function pointer, this should be done by talloc destructors now

metze
(This used to be commit 862226f557dddf989cbbdbfd5aa2bf6f2312fdf0)

14 years agor6191: fix spoolss_Enum* push code
Stefan Metzmacher [Mon, 4 Apr 2005 14:25:29 +0000 (14:25 +0000)]
r6191: fix spoolss_Enum* push code

metze
(This used to be commit e66aa87f148d04f4c44b08555345600b8a6278d4)

14 years agor6190: fix gensize on unions
Stefan Metzmacher [Mon, 4 Apr 2005 14:23:34 +0000 (14:23 +0000)]
r6190: fix gensize on unions

metze
(This used to be commit 661e64e9ce91e8029e1a36ef6825e56e5460e32b)

14 years agor6189: move function to the right place
Stefan Metzmacher [Mon, 4 Apr 2005 14:22:28 +0000 (14:22 +0000)]
r6189: move function to the right place

metze
(This used to be commit 08d22a07cfa84fe959320058e8574c8983e1d71f)

14 years agor6188: correct fix for rev 6182
Stefan Metzmacher [Mon, 4 Apr 2005 05:52:53 +0000 (05:52 +0000)]
r6188: correct fix for rev 6182

we should start with an empty switch_list
in ndr_print as we do for ndr_pull/ndr_push

metze
(This used to be commit 848f553117b369fc6697086b3f7d36dd17b60f5b)

14 years agor6187: 1. Make sure that we don't try to delete . and .. in a more portable way.
Richard Sharpe [Sun, 3 Apr 2005 21:37:13 +0000 (21:37 +0000)]
r6187: 1. Make sure that we don't try to delete . and .. in a more portable way.

2. Also, don't try to delete directories.

I am not entirely happy with this patch, and the fact that there is a
define for HAVE_SYS_STAT_H suggests that there are some systems for which
stat will not be defined, which means that the patch is not entirely
portable.
(This used to be commit fe7ddad7d44a49b2efe81cb3d0a5b2d09d1892ab)

14 years agor6185: added LIBCLI_DGRAM to the list of libs to be built as part of LIBCLI
Andrew Tridgell [Sun, 3 Apr 2005 04:36:00 +0000 (04:36 +0000)]
r6185: added LIBCLI_DGRAM to the list of libs to be built as part of LIBCLI
(This used to be commit 47e1452da08d06b0b9f15545b3b2b0631f15bac2)

14 years agor6184: the beginnings of the libcli/dgram/ library, and the dgram
Andrew Tridgell [Sun, 3 Apr 2005 04:32:37 +0000 (04:32 +0000)]
r6184: the beginnings of the libcli/dgram/ library, and the dgram
server. Currently just listens on port 138 and parses the packets
(using IDL like the rest of NBT). This allows me to develop the
structures and test with real packets
(This used to be commit 10d64a525349ff96695ad961a3cfeb5bc7c8844f)

14 years agor6182: Jelmer, I think we need to initialize the switch_list, else we are
Richard Sharpe [Sun, 3 Apr 2005 03:58:45 +0000 (03:58 +0000)]
r6182: Jelmer, I think we need to initialize the switch_list, else we are
crash city.
(This used to be commit 6526f21fb72094e8ff62bfc2693a49a3b1679a95)

14 years agor6181: Use ndr_print_set_switch_value() here as well.
Jelmer Vernooij [Sat, 2 Apr 2005 22:46:21 +0000 (22:46 +0000)]
r6181: Use ndr_print_set_switch_value() here as well.
(This used to be commit 4da9d1d5c277eb65d0fe5bf5c4690531dcfb85de)

14 years agor6180: Use token_lists for storing switch values
Jelmer Vernooij [Sat, 2 Apr 2005 20:57:27 +0000 (20:57 +0000)]
r6180: Use token_lists for storing switch values
(This used to be commit f66e11137eed69b44f0739f1064625cbd96243bd)

14 years agor6179: - add new spoolss tests for all spoolss_Enum*() calls which didn't need
Stefan Metzmacher [Sat, 2 Apr 2005 06:51:54 +0000 (06:51 +0000)]
r6179: - add new spoolss tests for all spoolss_Enum*() calls which didn't need
  a handle as parameter,

  EnumPorts
  EnumPrinterDrivers
  EnumMonitors
  EnumPrintProcessors
  EnumPrinters

  we now do cross checks between the different info levels
  and sore the results in a global context,
  so that we later can add cross checks between the different object types

- add idl for EnumMonitors and EnumPrintProcessors

metze
(This used to be commit 92a3721bc7a28d521090b10eb3b1eed089036432)

14 years agor6178: fix ncacn_np connection without sign or seal against NT4
Stefan Metzmacher [Sat, 2 Apr 2005 06:10:45 +0000 (06:10 +0000)]
r6178: fix ncacn_np connection without sign or seal against NT4

metze
(This used to be commit d92100fcc2066454df441a1ea2c7b9940fa19fa1)

14 years agor6177: Use here documents instead of print() statements to generate the
Tim Potter [Sat, 2 Apr 2005 01:43:54 +0000 (01:43 +0000)]
r6177: Use here documents instead of print() statements to generate the
Makefile fragments for the build system.  This allows the file to be
edited without using quite as many backslashes.  Some are still necessary
for interpolation of perl variables though.

I've diffed the new Makefile against the old and there are only some
extra newlines as a result of making things more consistent.
(This used to be commit 3808c5e092e1a11d453d0a043818a10e28c78961)

14 years agor6165: fixed up the userinfo composite code. Fixes include:
Andrew Tridgell [Fri, 1 Apr 2005 11:24:52 +0000 (11:24 +0000)]
r6165: fixed up the userinfo composite code. Fixes include:

- talloc should always be done in the right context. For example, when creating
  the userinfo_state structure, place it inside the composite
  structure, not directly on the pipe. If this isn't done then
  correct cleanup can't happen on errors (as cleanup destroys the top
  level composite context only)

- define private structures like userinfo_state in the userinfo.c
  code, not in the public header

- only keep the parameters we need in the state structure. For
  example, the domain_handle is only needed in the first call, so we
  don't need to keep it around in the state structure, but the level is
  needed in later calls, so we need to keep it

- always initialise [out,ref] parameters in RPC calls. The [ref] part
  means that the call assumes the pointer it has been given is
  valid. If you don't initialise it then you will get a segv on
  recv. This is why the code was dying.

- don't use internal strucrure elements like the pipe
  pipe->conn->pending outside of the internal rpc implementation. That
  is an internal list, trying to use it from external code will cause crashes.

- rpc calls assume that rpc call strucrures remain valid for the
  duration of the call. This means you need to keep the structures
  (such as "struct samr_Close") in the userinfo_state strucrure,
  otherwise it will go out of scope during the async processing

- need to remember to change c->state to SMBCLI_REQUEST_DONE when the
  request has finished in the close handler, otherwise it will loop
  forever trying to close

Mimir, please look at the diff carefully for more detailed info on the fixes
(This used to be commit 01ea1e7762e214e87e74d6f28d6efeb6cdea9736)

14 years agor6164: More comments in the code.
Rafal Szczesniak [Fri, 1 Apr 2005 08:14:57 +0000 (08:14 +0000)]
r6164: More comments in the code.

rafal
(This used to be commit 01cbed98b32c2050a665aec51a99288e4afb29c1)

14 years agor6159: Move some more general ndr stuff (alignment calculations) to ndr.pm
Jelmer Vernooij [Thu, 31 Mar 2005 22:50:28 +0000 (22:50 +0000)]
r6159: Move some more general ndr stuff (alignment calculations) to ndr.pm
(This used to be commit f4d550c348e9604439f07329ddbc3cf65891d578)

14 years agor6150: fixed a few socket_wrapper bugs.
Andrew Tridgell [Thu, 31 Mar 2005 12:40:12 +0000 (12:40 +0000)]
r6150: fixed a few socket_wrapper bugs.

  - now works properly with UDP, so the NBT tests work
  - fixed byte order in a few places
  - connect() now fails to non-localhost
  - fixed some places that tested for < 0, which should be == -1 (most syscalls
    return -1 on error, not "negative")
(This used to be commit 61e1eea0fdb13577de2506472c5443ee92656263)

14 years agor6148: Add a showflags target to display the various compiler flags a la
Tim Potter [Thu, 31 Mar 2005 02:40:08 +0000 (02:40 +0000)]
r6148: Add a showflags target to display the various compiler flags a la
showlayout.  There seems to be a bunch of -D and -I stuff in LD_FLAGS
which I don't think should be there.
(This used to be commit 87f88aaceeacf57b4a8a31e005894cbff4a21779)

14 years agor6147: The maxfd was being recalculated on every event loop, which made us
Andrew Tridgell [Thu, 31 Mar 2005 02:14:31 +0000 (02:14 +0000)]
r6147: The maxfd was being recalculated on every event loop, which made us
less scalable. It only needs to be recalculated when we the highest fd
is destroyed.
(This used to be commit 568b9175f329f594404c9091ee5946670c40697e)

14 years agor6144: Apparently there are more systems that have AF_UNIX then
Jelmer Vernooij [Thu, 31 Mar 2005 00:43:26 +0000 (00:43 +0000)]
r6144: Apparently there are more systems that have AF_UNIX then
AF_LOCAL (we already use AF_UNIX in other places).
(This used to be commit 88d93b9782766ab1159a233307ef508881caa615)

14 years agor6143: Put compression support in the subcontext handling functions rather
Jelmer Vernooij [Thu, 31 Mar 2005 00:37:01 +0000 (00:37 +0000)]
r6143: Put compression support in the subcontext handling functions rather
then at the element level.
(This used to be commit fac5edd2b71759c82232713f77ab91b41ed09250)

14 years agor6140: - Add configure option for enabling the socket-wrapper library, so it
Jelmer Vernooij [Wed, 30 Mar 2005 23:28:15 +0000 (23:28 +0000)]
r6140: - Add configure option for enabling the socket-wrapper library, so it
  can be enabled on the buildfarm without requiring --enable-developer
- Support tcp and udp being used on the same port
- FIx some portability issues (should fix the build on
   some hosts on the buildfarm)
- Ignore setting TCP_NODELAY on (semi-)TCP sockets rather then complain about
  it not being supported (saves us from a couple of error messages for each
  connection that is opened)
(This used to be commit 443fb7853b8d3cb516c442fdc595038544b75738)

14 years agor6139: Move socket_wrapper to a seperate directory
Jelmer Vernooij [Wed, 30 Mar 2005 22:09:16 +0000 (22:09 +0000)]
r6139: Move socket_wrapper to a seperate directory
(This used to be commit a2ef9225f15e369af7b884262b997ab321fd24d6)

14 years agor6135: - make use of the new dom_sid28 type
Stefan Metzmacher [Wed, 30 Mar 2005 15:07:14 +0000 (15:07 +0000)]
r6135: - make use of the new dom_sid28 type
  (this fixes parsing of w2k blob, which some times have random gargabe data in the sid buffer)

- make the names of the DsReplicaCoursor*Ctr* 's more consistent
  and fix DsGetNCchangesCtr6 parsing

metze
(This used to be commit 75e427dca9f6b129ead100f7265794189f257c67)

14 years agor6134: add a new type dom_sid28 which is a 28 byte fixed buffer with a dom_sid in it
Stefan Metzmacher [Wed, 30 Mar 2005 15:04:19 +0000 (15:04 +0000)]
r6134: add a new type dom_sid28 which is a 28 byte fixed buffer with a dom_sid in it

metze
(This used to be commit 460d1b089e494efaeb0c8c7fd4601a9ef57123c5)

14 years agor6132: allow up to 15 sub_auth in a dom_sid
Stefan Metzmacher [Wed, 30 Mar 2005 12:27:01 +0000 (12:27 +0000)]
r6132: allow up to 15 sub_auth in a dom_sid
(tridge: asked me for that commit)

metze
(This used to be commit 2791de069a571aaa53283d68b5cc957d82e7ce41)

14 years agor6131: decompression of DsGetNCChanges level 2 responses works now
Stefan Metzmacher [Wed, 30 Mar 2005 11:26:02 +0000 (11:26 +0000)]
r6131: decompression of DsGetNCChanges level 2 responses works now
(and the push side isn't used currently...)

metze
(This used to be commit 2d121c84312723ef6a7a3250a204efa8488f6303)

14 years agor6130: More work on the NDR tree generator
Jelmer Vernooij [Wed, 30 Mar 2005 11:15:51 +0000 (11:15 +0000)]
r6130: More work on the NDR tree generator
(This used to be commit ad7ea50eb29402d213438e5fcaa56f853c00487e)

14 years agor6129: - add our own MSZIP decompression implementation
Stefan Metzmacher [Wed, 30 Mar 2005 10:48:52 +0000 (10:48 +0000)]
r6129: - add our own MSZIP decompression implementation
  (taken from cabextract.c from KDE)
  this code maybe need to be rewritten and the
  compression side needs to be done,
  but for now it seems to works

- remove the dependency to zlib

metze
(This used to be commit 5e8558c5b4365a494aa054c3e08d4084b319e6e5)

14 years agor6128: fix the build
Stefan Metzmacher [Wed, 30 Mar 2005 04:55:02 +0000 (04:55 +0000)]
r6128: fix the build

metze
(This used to be commit 80593150341852af0816e69bd653c93228862e9b)

14 years agor6118: Make it so that we can do --with-zlib=no in configure and also a couple
Richard Sharpe [Wed, 30 Mar 2005 00:15:16 +0000 (00:15 +0000)]
r6118: Make it so that we can do --with-zlib=no in configure and also a couple
of small typos.
(This used to be commit 9b4069e84573f85ce4341ceacd35737a18726a0b)

14 years agor6115: don't try to decompress level 7 buffers yet
Stefan Metzmacher [Tue, 29 Mar 2005 13:07:20 +0000 (13:07 +0000)]
r6115: don't try to decompress level 7 buffers yet

metze
(This used to be commit bbc0f6c5525b03deb9374fd96cb22cff4d3fb2e1)

14 years agor6114: the marker is const and is 0x434B 'CK'
Stefan Metzmacher [Tue, 29 Mar 2005 10:01:34 +0000 (10:01 +0000)]
r6114: the marker is const and is 0x434B 'CK'

metze
(This used to be commit 4b88ff29715a98c728cf70db4889daafed8eeeb2)

14 years agor6113: Move GENSEC and the kerberos code out of libcli/auth, and into
Andrew Bartlett [Tue, 29 Mar 2005 08:24:03 +0000 (08:24 +0000)]
r6113: Move GENSEC and the kerberos code out of libcli/auth, and into
auth/gensec and auth/kerberos.

This also pulls the kerberos configure code out of libads (which is
otherwise dead), and into auth/kerberos/kerberos.m4

Andrew Bartlett
(This used to be commit e074d63f3dcf4f84239a10879112ebaf1cfa6c4f)