samba.git
16 years agor7882: Looks like a large patch - but what it actually does is make Samba
Jeremy Allison [Fri, 24 Jun 2005 20:25:18 +0000 (20:25 +0000)]
r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
(This used to be commit 9506b8e145982b1160a2f0aee5c9b7a54980940a)

16 years agor7880: fix a typo and memleak on failures cases (patch from marcin)
Gerald Carter [Fri, 24 Jun 2005 15:49:02 +0000 (15:49 +0000)]
r7880: fix a typo and memleak on failures cases (patch from marcin)
(This used to be commit 6ff0fa0b4385481f2212047d80ca17b55d996def)

16 years agor7879: fix compile issue caused by not statoc value for intializing cpp macros
Gerald Carter [Fri, 24 Jun 2005 15:13:25 +0000 (15:13 +0000)]
r7879: fix compile issue caused by not statoc value for intializing cpp macros
(This used to be commit 9af07b243005db76b6490856b4e0bbc4a8af0dba)

16 years agor7878: mostly just a rename of REG_INFO to REG_QUERY_VALUE for better clarity
Gerald Carter [Fri, 24 Jun 2005 14:55:09 +0000 (14:55 +0000)]
r7878: mostly just a rename of REG_INFO to REG_QUERY_VALUE for better clarity
(This used to be commit d50f0ba07e285728605c8e8aae9d9a251a525e78)

16 years agor7877: Attempt to fix a smb_panic reported by Pavel Rochnyack.
Volker Lendecke [Fri, 24 Jun 2005 14:25:18 +0000 (14:25 +0000)]
r7877: Attempt to fix a smb_panic reported by Pavel Rochnyack.

Volker
(This used to be commit 7d1b890fead61551465e2a972e4097d9c1a4d6fd)

16 years agor7876: Now that we have "net rpc share migrate security" completly remove the
Günther Deschner [Fri, 24 Jun 2005 14:15:31 +0000 (14:15 +0000)]
r7876: Now that we have "net rpc share migrate security" completly remove the
share-acl from "net rpc share migrate shares".

God, how ugly does this syntax get.

Guenther
(This used to be commit 6f4d4acc868ee67f8434d904fa51c57d1b847135)

16 years agor7852: Correct fix from Lars for the argv issue.
Jeremy Allison [Thu, 23 Jun 2005 23:23:16 +0000 (23:23 +0000)]
r7852: Correct fix from Lars for the argv issue.
Jeremy.
(This used to be commit a667d9e474302e888a0cc009a342da471318928c)

16 years agor7849: Dodgy fix - we shouldn't be assuming argc++ points to a valid argv.
Jeremy Allison [Thu, 23 Jun 2005 22:20:37 +0000 (22:20 +0000)]
r7849: Dodgy fix - we shouldn't be assuming argc++ points to a valid argv.
Jeremy.
(This used to be commit 5fbabaef8cab894c6d349b0535a06c2c9d1437db)

16 years agor7846: Fix from bugzilla@kevinjamieson.com Kevin Jamieson - typo
Jeremy Allison [Thu, 23 Jun 2005 17:00:11 +0000 (17:00 +0000)]
r7846: Fix from bugzilla@kevinjamieson.com Kevin Jamieson - typo
in checking for .. in statcache. Bugid #2819.
Jeremy.
(This used to be commit a5619d717954ad2a3ffaa549b11bfa738720e325)

16 years agor7842: With the patch I sent Steve yesterday this gives us complete POSIX pathnames.
Jeremy Allison [Wed, 22 Jun 2005 21:20:41 +0000 (21:20 +0000)]
r7842: With the patch I sent Steve yesterday this gives us complete POSIX pathnames.
ie. files containing : and \ can be accessed from Linux.
Jeremy.
(This used to be commit e9b8d23d6138d909a65ea70b2e801881e8333b38)

16 years agor7839: remove C++ style comment
Gerald Carter [Wed, 22 Jun 2005 20:33:30 +0000 (20:33 +0000)]
r7839: remove C++ style comment
(This used to be commit e04fd56e0097dc8007394bf295b227b454e524b4)

16 years agor7838: lie about the printer status when doing the queryvalue() registry call. Note...
Gerald Carter [Wed, 22 Jun 2005 18:03:38 +0000 (18:03 +0000)]
r7838: lie about the printer status when doing the queryvalue() registry call.  Note that if you migrate a printer to a Windows server, the win spooler will remove any printers that have an invalid status value in the registry
(This used to be commit 0a22ea9eb7fd5aa8c57d2bf1ea2a171b377cab5a)

16 years agor7836: Fix the bug where users show up as trusting domains.
Volker Lendecke [Wed, 22 Jun 2005 14:16:10 +0000 (14:16 +0000)]
r7836: Fix the bug where users show up as trusting domains.

Volker
(This used to be commit 61585fa56b4f838f416815598f4a301aa9ee12d7)

16 years agor7835: Add the forgotten GPL header. This source code file is distributed with Samba
Volker Lendecke [Wed, 22 Jun 2005 07:00:26 +0000 (07:00 +0000)]
r7835: Add the forgotten GPL header. This source code file is distributed with Samba
and interfaces to the Linux kernel (both GPL programs), so it was always our
(Paal-Kr. Engstad and Volker Lendecke) intent that this program is covered by
the GPL.

Volker
(This used to be commit 72bc9de68646a8a9a4787d6681524f1a77cf2cdf)

16 years agor7830: fix directory typo with testprns manpage
Gerald Carter [Wed, 22 Jun 2005 03:05:54 +0000 (03:05 +0000)]
r7830: fix directory typo with testprns manpage
(This used to be commit c2d0c7edc0f1538296f18bd66af4c4b7bf9c81ea)

16 years agor7829: fix unitialized printer status field that was breaking migration of print...
Gerald Carter [Wed, 22 Jun 2005 02:51:22 +0000 (02:51 +0000)]
r7829: fix unitialized printer status field that was breaking migration of print queues
(This used to be commit ada1d326aeef4a2f33a360a8ea4a874e59fcfee6)

16 years agor7825: Fedora packaging fixes after docs change
Gerald Carter [Tue, 21 Jun 2005 22:46:34 +0000 (22:46 +0000)]
r7825: Fedora packaging fixes after docs change
(This used to be commit ebefc950b6c7a18ab80e145a4b5a5735502960c6)

16 years agor7822: fixing specfiles after removing testprns
Gerald Carter [Tue, 21 Jun 2005 22:13:58 +0000 (22:13 +0000)]
r7822: fixing specfiles after removing testprns
(This used to be commit 9ca00d6b5abba7ff3ecd3de88215129d8f4640e3)

16 years agor7821: Don't check permissions for setting POSIX pathname request.
Jeremy Allison [Tue, 21 Jun 2005 21:26:29 +0000 (21:26 +0000)]
r7821: Don't check permissions for setting POSIX pathname request.
Jeremy.
(This used to be commit 06b40024f3784778a81ae7c69881a516d183a1c3)

16 years agor7817: Eliminate use of ctime_r() in libsmbclient DEBUG statement. It seems that
Derrell Lipman [Tue, 21 Jun 2005 20:34:24 +0000 (20:34 +0000)]
r7817: Eliminate use of ctime_r() in libsmbclient DEBUG statement.  It seems that
ctime_r() takes different parameters on Solaris than it does on Linux, and
it's easier to just eliminate the use of it than to write a configure test.
(This used to be commit 513ea79b2ebc9a78c118042abca942da061d4647)

16 years agor7807: Allow to touch mtime in vfs-recycle with
Günther Deschner [Tue, 21 Jun 2005 11:27:17 +0000 (11:27 +0000)]
r7807: Allow to touch mtime in vfs-recycle with

        recycle:touch_mtime = true

Guenther
(This used to be commit fa8e2c4b04786a77356bb4e310d59d7475d8bd87)

16 years agor7798: CIFSFS client assumes wcnt == 10 for successful trans2 reply.
Jeremy Allison [Tue, 21 Jun 2005 05:27:02 +0000 (05:27 +0000)]
r7798: CIFSFS client assumes wcnt == 10 for successful trans2 reply.
Jeremy.
(This used to be commit aea58e6bb60565430aec69598c47b2a8f4667e89)

16 years agor7796: Prepare for client setting capabilities to select posix pathnames on
Jeremy Allison [Tue, 21 Jun 2005 05:18:09 +0000 (05:18 +0000)]
r7796: Prepare for client setting capabilities to select posix pathnames on
the wire. Jerry do not merge this please. New SMB_SET_FS_INFO - level
0x200 as was discussed on the mailing list.
Jeremy.
(This used to be commit 55029b1a0c9ae5b941eecd699dd905ea3d42b99c)

16 years agor7789: fix overparanoid assert() call when checking spolss buffer pointers
Gerald Carter [Mon, 20 Jun 2005 22:13:19 +0000 (22:13 +0000)]
r7789: fix overparanoid assert() call when checking spolss buffer pointers
(This used to be commit e81e6e653aecdd0e4cfd2ea7ced16070bc376292)

16 years agor7788: Update install swat message to reflect the fact that swat/README
Tim Potter [Mon, 20 Jun 2005 21:20:47 +0000 (21:20 +0000)]
r7788: Update install swat message to reflect the fact that swat/README
no longer exists.  Bugzilla #2808.
(This used to be commit 88a3faf84eb74a2a8c5a100170f82102c74e9939)

16 years agor7787: Fix from Fernando Schapachnik <fernando@mecon.gov.ar> to add logon hours
Jeremy Allison [Mon, 20 Jun 2005 19:36:12 +0000 (19:36 +0000)]
r7787: Fix from Fernando Schapachnik <fernando@mecon.gov.ar> to add logon hours
support for the Postgres backend.
Jeremy.
(This used to be commit dd5d36c95f97356be1b76c1ace641861022e2aa3)

16 years agor7785: This looks much larger than it is. It changes the top-level functions of the
Volker Lendecke [Mon, 20 Jun 2005 13:42:29 +0000 (13:42 +0000)]
r7785: This looks much larger than it is. It changes the top-level functions of the
parent winbind not to return winbindd_result. This is to hopefully fix all the
problems where a result has been scheduled for write twice.

The problematic ones have been the functions that might have been delayed as
well as under other circumstances immediately gets answered from the cache.

Now a request needs to be explicitly replied to with a request_error() or
request_ok().

Volker
(This used to be commit 7365c9accf98ec1dd78a59dd7f62462bbb8528d4)

16 years agor7730: Some merges
Volker Lendecke [Sat, 18 Jun 2005 16:47:27 +0000 (16:47 +0000)]
r7730: Some merges
(This used to be commit 5b4720598b4c7f4af1027a181fbe9c1568e71361)

16 years agor7718: Remove some unused code
Volker Lendecke [Sat, 18 Jun 2005 09:27:40 +0000 (09:27 +0000)]
r7718: Remove some unused code
(This used to be commit 10606be0509743b1acfcafbf826b1a02765db158)

16 years agor7708: Hint from Luke Howard (thanks Luke). Ensure the schannel authenticator is 8
Jeremy Allison [Sat, 18 Jun 2005 04:23:06 +0000 (04:23 +0000)]
r7708: Hint from Luke Howard (thanks Luke). Ensure the schannel authenticator is 8
byte aligned, just like the NTLMSSP ones. Trying to fix 64-bit Windows domain
logon.
Jeremy.
(This used to be commit 475d5a277db7709c1b0f851ce8ec4dd8de5e25fc)

16 years agor7703: Fix the problem with MAP_PRIVATE not updating the file.
Richard Sharpe [Fri, 17 Jun 2005 21:52:58 +0000 (21:52 +0000)]
r7703: Fix the problem with MAP_PRIVATE not updating the file.
(This used to be commit 55038d931863a1c44794a7df4c8badbecfb382c7)

16 years agor7701: Patch from James Peach | jpeach@sgi.com to make wrepld use new
Jeremy Allison [Fri, 17 Jun 2005 20:32:33 +0000 (20:32 +0000)]
r7701: Patch from James Peach | jpeach@sgi.com to make wrepld use new
talloc interfaces.
Jeremy.
(This used to be commit 9c36eef3469107aa66d90a8c8340a46381ade8b7)

16 years agor7698: * clean upserver frontend for RegDeleteKey()
Gerald Carter [Fri, 17 Jun 2005 18:57:37 +0000 (18:57 +0000)]
r7698: * clean upserver frontend for RegDeleteKey()
* implement RegDeleteKey() for reg_db backend
(This used to be commit 91b81a23b8e2a096747e02fd9392ef590e7f0d61)

16 years agor7696: Don't try and be clever and read an 8 byte int and 3 pad bytes
Jeremy Allison [Fri, 17 Jun 2005 18:05:46 +0000 (18:05 +0000)]
r7696: Don't try and be clever and read an 8 byte int and 3 pad bytes
as a uint32 - you'll just get it wrong (as I did :-).
Second attempt to fix the Apple client issues.
Jeremy.
(This used to be commit d2aa5bc7aaa9fe11fa4748f99e4ba49be08aa639)

16 years agor7693: Fix from James Peach @ SGI for null pointer ACL free.
Jeremy Allison [Fri, 17 Jun 2005 15:54:10 +0000 (15:54 +0000)]
r7693: Fix from James Peach @ SGI for null pointer ACL free.
Jeremy.
(This used to be commit 000477943c3dd41fd44f2aef3755aa603ba5d595)

16 years agor7692: start versioning the registry.tdb file since it can be modified now
Gerald Carter [Fri, 17 Jun 2005 15:53:01 +0000 (15:53 +0000)]
r7692: start versioning the registry.tdb file since it can be modified now
(This used to be commit a091b37d59d1e0228a9c8d4bd2a31e9bbaafde99)

16 years agor7691: * add .gdbinit to the svn:ignore files
Gerald Carter [Fri, 17 Jun 2005 15:35:31 +0000 (15:35 +0000)]
r7691: * add .gdbinit to the svn:ignore files
* start adding write support to the Samba registry
  Flesh out the server implementations of
  RegCreateKey(), RegSetValue(), RegDeleteKey() and RegDeleteValue()

I can create a new key using regedit.exe now but the 'New Key #1'
key cannot be deleted yet.
(This used to be commit e188fdbef8f0ad202b0ecf3c30be2941ebe6d5b1)

16 years agor7664: add access check hooks to _reg_open_entry which are passed off
Gerald Carter [Fri, 17 Jun 2005 01:57:18 +0000 (01:57 +0000)]
r7664: add access check hooks to _reg_open_entry which are passed off
to the reg_XXX backend.  If the backend does not define
a regkey_access_check() function, we default to using the
standard registry_access_check()
(This used to be commit 2f08a904eee772e7d99ae6e3e4c922f74732284f)

16 years agor7662: Allow someone with SeTakeOwnershipPrivilege to chown the user
Jeremy Allison [Fri, 17 Jun 2005 01:02:11 +0000 (01:02 +0000)]
r7662: Allow someone with SeTakeOwnershipPrivilege to chown the user
of a file to themself.
Jeremy.
(This used to be commit f3319e224db8f79baa10413e0e2a96d2bc871f38)

16 years agor7649: * fix compile breakage (sorry, should have done a make clean before the
Gerald Carter [Thu, 16 Jun 2005 20:59:39 +0000 (20:59 +0000)]
r7649: * fix compile breakage (sorry, should have done a make clean before the
  last checking).
* rename unknown field in REG_GETVERSION
* add server stubs for RegDeleteKey() and RegDeleteValue()
(This used to be commit 023728c0595eaef60e357d32a25e2c4cee9e21f4)

16 years agor7648: adding REGISTRY_HOOK->reg_access_check() for authprization checks on RegOpenKe...
Gerald Carter [Thu, 16 Jun 2005 20:45:55 +0000 (20:45 +0000)]
r7648: adding REGISTRY_HOOK->reg_access_check() for authprization checks on RegOpenKey(); passing it off to the backend code for a given path
(This used to be commit 867fd3052bbfdd45856886999619e2ebc6552675)

16 years agor7647: add access checks to the top level hive open calls; will need to pass the...
Gerald Carter [Thu, 16 Jun 2005 20:29:15 +0000 (20:29 +0000)]
r7647: add access checks to the top level hive open calls; will need to pass the open request through the backend access check for the subkey open calls
(This used to be commit 23acef44e978f3bace762cc98c310b11f0021d31)

16 years agor7645: adding server stubs for RegCreateKey() and RegSetValue()
Gerald Carter [Thu, 16 Jun 2005 20:04:16 +0000 (20:04 +0000)]
r7645: adding server stubs for RegCreateKey() and RegSetValue()
(This used to be commit ce82566badfb907a2f72e2f7d90a7bbbe3811177)

16 years agor7640: Fix based on work from "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
Jeremy Allison [Thu, 16 Jun 2005 16:39:49 +0000 (16:39 +0000)]
r7640: Fix based on work from  "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
loops in corrupted tdb files.
Jeremy.
(This used to be commit b438cb0a85217c978f1d7cb9f2a4fd97f38a3193)

16 years agor7636: Docu for "net rpc share migrate security" is now valid.
Günther Deschner [Thu, 16 Jun 2005 12:17:07 +0000 (12:17 +0000)]
r7636: Docu for "net rpc share migrate security" is now valid.

Guenther
(This used to be commit a11bb4476c8607a497ed09d2411ee8ef3f458390)

16 years agor7632: Cleanup "net share migrate"-code.
Günther Deschner [Thu, 16 Jun 2005 09:36:53 +0000 (09:36 +0000)]
r7632: Cleanup "net share migrate"-code.

* Allow to copy share security descriptors to already existing shares
  separatly.

* Added abstraction function to enum all or a single share info

Guenther
(This used to be commit 97097497ae42d7a03286bbe16bcffb8224137688)

16 years agor7624: * removed unmatched tdb_lock_by_string() call (should fix build farm issues)
Gerald Carter [Thu, 16 Jun 2005 00:46:43 +0000 (00:46 +0000)]
r7624: * removed unmatched tdb_lock_by_string() call (should fix build farm issues)
* comment out services.tdb code until I finish rewriting it
(This used to be commit 707b7822286a6c7e9d1e4ca3d15b99c976f6e704)

16 years agor7620: when adding a new printer driver, we should copy the files
Gerald Carter [Wed, 15 Jun 2005 19:28:14 +0000 (19:28 +0000)]
r7620: when adding a new printer driver, we should copy the files
(not move) to the W32X86/{2,3}/ directory.  Printmig.exe
copies the driver files for all drivers to print$/W32X86
and the calls AddPrinterDriver() for each driver.  If we
move the file, then adding a driver which shares a file with
a previous driver will fail.

I can now restore drivers in bulk to a Samba 3 server.
(This used to be commit 46cd95c9b48a00a51139d3654352d4399b774a9b)

16 years agor7618: Typo...
Jeremy Allison [Wed, 15 Jun 2005 18:49:43 +0000 (18:49 +0000)]
r7618: Typo...
Jeremy.
(This used to be commit 65d1365700588949fc5576c7dd525fc530a15ff4)

16 years agor7617: Fix for bug #2801 - delete veto files was broken with the new
Jeremy Allison [Wed, 15 Jun 2005 18:37:34 +0000 (18:37 +0000)]
r7617: Fix for bug #2801 - delete veto files was broken with the new
large directory code.
Jeremy.
(This used to be commit f397cc08b5628913af4d7f9c2c6d20c778e5d8ca)

16 years agor7614: convert move_driver_to_download_area() to return WERROR in order to provide...
Gerald Carter [Wed, 15 Jun 2005 17:03:34 +0000 (17:03 +0000)]
r7614: convert move_driver_to_download_area() to return WERROR in order to provide better error messages to clients when a AddPrinterDriver[Ex]() call fails
(This used to be commit c98e17446afffc4b12f1a31f6e5cce517fc0a95b)

16 years agor7613: small changes to _svcctl_open_service() and create_open_service_handle() to...
Gerald Carter [Wed, 15 Jun 2005 16:32:12 +0000 (16:32 +0000)]
r7613: small changes to _svcctl_open_service() and create_open_service_handle() to prevent invalid service names from being accepted; printmig.exe now migrates drivers successfully
(This used to be commit dafb32c01f06c42f44aeb0d16681c5def4903244)

16 years agor7610: can successfully stop and start the 'spooler' service by setting the state...
Gerald Carter [Wed, 15 Jun 2005 15:18:18 +0000 (15:18 +0000)]
r7610: can successfully stop and start the 'spooler' service by setting the state for the 'disable spoolss' parameter in memory for an individual smbd
(This used to be commit f19c10d0c3e7701066b765c712df0636e914bf7e)

16 years agor7609: Move top level dir handling in from of the loop. This makes the code
Lars Müller [Wed, 15 Jun 2005 14:24:11 +0000 (14:24 +0000)]
r7609: Move top level dir handling in from of the loop.  This makes the code
much straither.

copy_top_level_perms() is jra's work.

I modified the copy_top_level_perms() function to use the copy_clistate.

And I don't forget trunk.

Lars
(This used to be commit 2c68568e5232c057d4f76f4bb044c54d18272602)

16 years agor7607: Some minor fixes (typos, const)
Günther Deschner [Wed, 15 Jun 2005 13:01:19 +0000 (13:01 +0000)]
r7607: Some minor fixes (typos, const)

Guenther
(This used to be commit 11504681861c9c8b509589d6d22551202d98e390)

16 years agor7606: add WERR_NET_NAME_NOT_FOUND. This is what windows returns when
Günther Deschner [Wed, 15 Jun 2005 12:43:36 +0000 (12:43 +0000)]
r7606: add WERR_NET_NAME_NOT_FOUND. This is what windows returns when
trying to manipulate non-existing shares.

Guenther
(This used to be commit 2e5cb531ab8a8babbc425b22d17a39c18f602d4f)

16 years agor7603: * fix a bug in the SERVICE_ALL_ACCESS security mask
Gerald Carter [Wed, 15 Jun 2005 03:10:36 +0000 (03:10 +0000)]
r7603: * fix a bug in the SERVICE_ALL_ACCESS security mask
* add calls to start and stop a service (to be filled
  in by the backend routines in services/svc_*.c
(This used to be commit 793d28a946d83beb2576c5c8ce808d32c71c880a)

16 years agor7595: start trying to split out the svcctl functions into separate files for better...
Gerald Carter [Wed, 15 Jun 2005 00:54:43 +0000 (00:54 +0000)]
r7595: start trying to split out the svcctl functions into separate files for better maintenance; add SERVICE_CONTROL_OPS for spoolss service
(This used to be commit 2b0ea30a1a3aebaabd5d328de50e6ad2ef18d45d)

16 years agor7591: Don't call getpeeraddr on a disconnected socket.
Jeremy Allison [Wed, 15 Jun 2005 00:22:59 +0000 (00:22 +0000)]
r7591: Don't call getpeeraddr on a disconnected socket.
Jeremy.
(This used to be commit a9cd218eb607066a65818b534ec5e3ecb55da4cf)

16 years agor7584: cleanup the default printer security descriptor
Gerald Carter [Tue, 14 Jun 2005 20:50:37 +0000 (20:50 +0000)]
r7584: cleanup the default printer security descriptor
(This used to be commit 26387fc74c1157157e7e8728003a39d10aeb4cc1)

16 years agor7583: * more rearranging and renaming of functions
Gerald Carter [Tue, 14 Jun 2005 20:11:59 +0000 (20:11 +0000)]
r7583: * more rearranging and renaming of functions
* add access checks to _svcctl_XXX() calls based on
  the access granted on the handle
(This used to be commit 82b76d4b34834b7f64389b85befe8bfcae04a404)

16 years agor7581: fix bad merge
Gerald Carter [Tue, 14 Jun 2005 19:04:39 +0000 (19:04 +0000)]
r7581: fix bad merge
(This used to be commit 55d08311032b75724b525d8e0df506de3e988b15)

16 years agor7578: use global well known DOM_SID objects when possible
Gerald Carter [Tue, 14 Jun 2005 18:38:15 +0000 (18:38 +0000)]
r7578: use global well known DOM_SID objects when possible
(This used to be commit 643dc05eb5a8e41cf9cb1768ef42f5dbc0320846)

16 years agor7577: switching to macro for IS_DC
Gerald Carter [Tue, 14 Jun 2005 18:31:06 +0000 (18:31 +0000)]
r7577: switching to macro for IS_DC
(This used to be commit e6df9a7ac74a4e4f8de15fc01799bf42dfdd530c)

16 years agor7576: implement access checks for open_scm and open_service
Gerald Carter [Tue, 14 Jun 2005 18:08:39 +0000 (18:08 +0000)]
r7576: implement access checks for open_scm and open_service
according to default security descriptor described in MSDN.

no one can get in to due to the permissions, but i'll fix
that next.
(This used to be commit 11902e503ed4f6d6991a9fe7521fe44168274ec8)

16 years agor7573: you can't make an omlette without break a few eggs....start reworking the...
Gerald Carter [Tue, 14 Jun 2005 15:40:51 +0000 (15:40 +0000)]
r7573: you can't make an omlette without break a few eggs....start reworking the svcctl code
(This used to be commit 24b369d12f8d5dbfdc317e5f088b8ae2583f4483)

16 years agor7563: svcctl patches from Marcin; have cleaned up formating and am checking the...
Gerald Carter [Tue, 14 Jun 2005 03:17:31 +0000 (03:17 +0000)]
r7563: svcctl patches from Marcin; have cleaned up formating and am checking the code in to snapshot it before I start changing more things
(This used to be commit 560ce111ce8de37d02bce64d2ca60a5f471d5477)

16 years agor7554: Refactor very messy code in util_sock.c Remove write_socket_data/read_socket_data
Jeremy Allison [Mon, 13 Jun 2005 22:26:08 +0000 (22:26 +0000)]
r7554: Refactor very messy code in util_sock.c Remove write_socket_data/read_socket_data
as they do nothing that write_socket/read_socket don't do. Add a more useful
error message when read_socket/write_socket error out on the main client fd
for a process (ie. try and list the IP of the client that errored).
Jeremy.
(This used to be commit cbd7578e7c226e6a8002542141b914ed4c7a8269)

16 years agor7550: Steal the correct error return for invalid TID on NTcreateX from Samba4
Jeremy Allison [Mon, 13 Jun 2005 20:42:21 +0000 (20:42 +0000)]
r7550: Steal the correct error return for invalid TID on NTcreateX from Samba4
(thanks tridge !).
Jeremy.
(This used to be commit 0288823aacdbec6ba99e944c9f06f051e55c64b8)

16 years agor7547: removing unused fields in the REGISTRY_KEY structure associated with open...
Gerald Carter [Mon, 13 Jun 2005 19:53:09 +0000 (19:53 +0000)]
r7547: removing unused fields in the REGISTRY_KEY structure associated with open handles
(This used to be commit ffc7bd87d8a03d8269ae6d0b9e314f8f20003a06)

16 years agor7544: Fix for bug #2196 from Denis Sbragion <d.sbragion@infotecna.it>.
Jeremy Allison [Mon, 13 Jun 2005 18:45:17 +0000 (18:45 +0000)]
r7544: Fix for bug #2196 from Denis Sbragion <d.sbragion@infotecna.it>.
Allow absolute path (system wide) recycle bin.
Jeremy.
(This used to be commit 451fbbf1d603cb99b0c9f0d39de9ad71a6a12833)

16 years agor7542: Patch from Renaud Duhaut <rd@duhaut.com> for a parameter
Jeremy Allison [Mon, 13 Jun 2005 17:41:52 +0000 (17:41 +0000)]
r7542: Patch from Renaud Duhaut <rd@duhaut.com> for a parameter
"directory_mode" when creating recycle directories.
Bug #1040.
Jeremy.
(This used to be commit 1c94cbd72d93ff8f17d6e1971ff984fa9581f1ce)

16 years agor7541: Patch from core@road-star.jp for bug #2792. Ensure the shadow copy
Jeremy Allison [Mon, 13 Jun 2005 16:49:57 +0000 (16:49 +0000)]
r7541: Patch from core@road-star.jp for bug #2792. Ensure the shadow copy
module hooks seekdir, telldir, rewinddir to match updated large
directory code.
Jeremy.
(This used to be commit 0cdc62b60b6152cb67e517d70f4e4681dca8f4df)

16 years agor7537: Print passwords in display charset.
Günther Deschner [Mon, 13 Jun 2005 14:39:40 +0000 (14:39 +0000)]
r7537: Print passwords in display charset.

Guenther
(This used to be commit f3bdc20ba3de77ceacfd328ff85322666bd81ca8)

16 years agor7534: Add missing cli_srvsvc_net_share_set_info-function and
Günther Deschner [Mon, 13 Jun 2005 13:16:55 +0000 (13:16 +0000)]
r7534: Add missing cli_srvsvc_net_share_set_info-function and
rpcclient-testers.

Needed in preparation of share-ACL migration in net.

Guenther
(This used to be commit 08d124079f4ed1ad008a83510c05b430c86fbf78)

16 years agor7532: compile fix.
Günther Deschner [Mon, 13 Jun 2005 11:18:00 +0000 (11:18 +0000)]
r7532: compile fix.

Guenther
(This used to be commit 1815e0745e4707f608a4803e67c7a3bd0c0b844a)

16 years agor7529: Apply some const, remove unused variable.
Günther Deschner [Mon, 13 Jun 2005 09:33:09 +0000 (09:33 +0000)]
r7529: Apply some const, remove unused variable.

Guenther
(This used to be commit bc419472e295945559cf83f6ed9febff29adcfc1)

16 years agor7512: Fix net share migrate files to also migrate the ACLs of the top level
Lars Müller [Sun, 12 Jun 2005 21:18:16 +0000 (21:18 +0000)]
r7512: Fix net share migrate files to also migrate the ACLs of the top level
dir of a share.  Till now we excluded '.' and '..' in general.  For the
fix the information about top or lower level dir is stored in the
copy_clistate.  src and dst share are now also part of this struct and
we only pass a pointer to the struct to the functions.

This bug was found by Bill Calero of Novell.  Thanks Bill!

With this checkin no new functionality was added.  But the copy_clistate
already knows about a mode. Later beside the migrate an additional
report mode will be added.

This changes are coordinated with Günther <gd>.

Lars
(This used to be commit 506aaefa3716c7683eef9afe0d1bb5b6e2533c4b)

16 years agor7511: Add three new command line switches to testparm:
Lars Müller [Sun, 12 Jun 2005 16:00:29 +0000 (16:00 +0000)]
r7511: Add three new command line switches to testparm:

--show-all-parameters
        Enumerates all available parameters, grouped in to sections
        [local] and [global] by the class of the parameter.  Each line
        is formated name=type[,enum values],flags
--parameter-name
        Display the setting of the named parameter.  The global section
        is assumed if no other is set with --section-name
--section-name
        Limit the view of testparm to the named section.  Use 'global'
        to only view the settings of the global section.

This fixes bug #2767.

Lars
(This used to be commit a1b82624d739b1066c356dd4b689233f3c36814e)

16 years agor7474: A *foul* and *disgusting* hack to ensure that, at the very lowest
Jeremy Allison [Fri, 10 Jun 2005 23:13:25 +0000 (23:13 +0000)]
r7474: A *foul* and *disgusting* hack to ensure that, at the very lowest
level, . and .. are the first two entries returned when reading a
directory. This also means we can't seek to these offsets, but we
will never be doing that anyway (as far as I can think). The reason
we have to do this is that the NT4 explorer will happily display a
folder marked ".." as a clickable folder (and probably would display
"." as a clickable folder too) if these are not in positions zero
and one of the returned file list. W2K seems to have fixed this but
there are too many older systems out there... Never mind, more for
the "Undocumented CIFS talk", coming to a CIFS2005 conference near
you soon.... :-).
Jeremy.
(This used to be commit 7b6e907922b7d98abe4430ea73712a9c6419ea08)

16 years agor7472: fix smbpasswd user password change (still worked by bad error messages) due...
Gerald Carter [Fri, 10 Jun 2005 22:03:33 +0000 (22:03 +0000)]
r7472: fix smbpasswd user password change (still worked by bad error messages) due to trying to strdup a NULL pointer
(This used to be commit a48ff479dd4fe99d199ff934aae14ac6e688d8f4)

16 years agor7470: fix block size caculation error when request size > 4096 bytes
Gerald Carter [Fri, 10 Jun 2005 18:34:36 +0000 (18:34 +0000)]
r7470: fix block size caculation error when request size > 4096 bytes
(This used to be commit 21e7baa5bc2fdc23c63302c96a40660bf805a5c9)

16 years agor7454: couple of winbindd fixes
Gerald Carter [Fri, 10 Jun 2005 03:26:39 +0000 (03:26 +0000)]
r7454: couple of winbindd fixes

* make sure to use our domain as the account name in the net_req_auth2()
  request when running on a Samba DC
* make sure to lookup the correct domain (not default to ours) when getting an async
  getpwnam() call
(This used to be commit c9c3e3c122a6a04847c448d298b6f1adb4f35a60)

16 years agor7452: Set sparse flag if needed. Based on code from jpeach@sgi.com.
Jeremy Allison [Fri, 10 Jun 2005 00:31:59 +0000 (00:31 +0000)]
r7452: Set sparse flag if needed. Based on code from jpeach@sgi.com.
Fixes bug #2774.
Jeremy.
(This used to be commit 5d366047debed68f36d44d34233ba4670e412d1e)

16 years agor7450: fix my bone head mistake with ntlm authentcation and 'map to guest = bad uid...
Gerald Carter [Thu, 9 Jun 2005 18:45:56 +0000 (18:45 +0000)]
r7450: fix my bone head mistake with ntlm authentcation and 'map to guest = bad uid'; make sure the authentication suceeds
(This used to be commit 5de1ffce2f2a0a340f6591939b8f63a3d96a627e)

16 years agor7447: Sync up a little between HEAD and 3.0 in preparation for moving
Jeremy Allison [Thu, 9 Jun 2005 18:15:23 +0000 (18:15 +0000)]
r7447: Sync up a little between HEAD and 3.0 in preparation for moving
the AIO code across.
Jeremy.
(This used to be commit e9604e65f4337a4163398f1f2c71e13da7993ed4)

16 years agor7440: * merge registry server changes from trunk (so far) for more
Gerald Carter [Thu, 9 Jun 2005 15:20:11 +0000 (15:20 +0000)]
r7440: * merge registry server changes from trunk (so far) for more
  printmig.exe work
* merge the sys_select_signal(char c) change from trunk
  in order to keeo the winbind code in sync
(This used to be commit a112c5570a7f8ddddde1af0fa665f40a6067e8cf)

16 years agor7423: Fix the build on sol10
Volker Lendecke [Thu, 9 Jun 2005 07:45:29 +0000 (07:45 +0000)]
r7423: Fix the build on sol10
(This used to be commit e8fde1bd92e8b19c8b5ce22f92cb048de773be1c)

16 years agor7415: * big change -- volker's new async winbindd from trunk
Gerald Carter [Wed, 8 Jun 2005 22:10:34 +0000 (22:10 +0000)]
r7415: * big change -- volker's new async winbindd from trunk
(This used to be commit a0ac9a8ffd4af31a0ebc423b4acbb2f043d865b8)

16 years agor7412: Now we're not memset'ing ensure we're valgrind clean.
Jeremy Allison [Wed, 8 Jun 2005 20:52:42 +0000 (20:52 +0000)]
r7412: Now we're not memset'ing ensure we're valgrind clean.
Jeremy.
(This used to be commit 0d303ab2f30f6047fc3f2f6fc4916e93704959d2)

16 years agor7398: commiting abartlet's patch for kerberos authentication when using a keytab...
Gerald Carter [Wed, 8 Jun 2005 14:57:37 +0000 (14:57 +0000)]
r7398: commiting abartlet's patch for kerberos authentication when using a keytab and security != ads
(This used to be commit 3faaa5c3eb3b2057984586e069a47cb210c99140)

16 years agor7396: cleaning up vestiges of winbind local accounts code
Gerald Carter [Wed, 8 Jun 2005 14:37:14 +0000 (14:37 +0000)]
r7396: cleaning up vestiges of winbind local accounts code
(This used to be commit c57c23cf52184171ac588c2919dc4ee4e68f2431)

16 years agor7395: * new feature 'map to guest = bad uid' (based on patch from
Gerald Carter [Wed, 8 Jun 2005 14:23:49 +0000 (14:23 +0000)]
r7395: * new feature 'map to guest = bad uid' (based on patch from
  aruna.prabakar@hp.com).

This re-enables the Samba 2.2 behavior where a user that was
successfully authenticated by a remote DC would be mapped
to the guest account if there was not existing UNIX account
for that user and we could not create one.
(This used to be commit b7455fbf81f4e47c087c861f70d492a328730a9b)

16 years agor7391: - Added client-support for various lsa_query_trust_dom_info-calls and a
Günther Deschner [Wed, 8 Jun 2005 13:59:03 +0000 (13:59 +0000)]
r7391: - Added client-support for various lsa_query_trust_dom_info-calls and a
  rpcclient-tester for some info-levels.

  Jerry, I tried to adopt to prs_pointer() where possible and to not
  interfere with your work for usrmgr.

- Add "net rpc trustdom vampire"-tool.

  This allows to retrieve Interdomain Trust(ed)-Relationships from
  NT4-Servers including cleartext-passwords (still stored in the local
  secrets.tdb).

  The net-hook was done in cooperation with Lars Mueller
  <lmuelle@suse.de>.

  To vampire trusted domains simply call:

        net rpc trustdom vampire -S nt4dc -Uadmin%pass

Guenther
(This used to be commit 512585293963a1737f831af697ea1dc092d63cb0)

16 years agor7390: Revision 7371 did not help :-(
Volker Lendecke [Wed, 8 Jun 2005 12:47:00 +0000 (12:47 +0000)]
r7390: Revision 7371 did not help :-(
(This used to be commit a405e7f479cb71be5634b79f2d7847fcf018f516)

16 years agor7385: Rewrite the RPC bind parsing functions to follow the spec. I haven't yet
Jeremy Allison [Wed, 8 Jun 2005 03:48:40 +0000 (03:48 +0000)]
r7385: Rewrite the RPC bind parsing functions to follow the spec. I haven't yet
tested this so I may have screwed this up - however it now follows the
DCE spec. valgrinded tests to follow....
Jeremy.
(This used to be commit 877e0a61f5821c89149b1403d08675dd7db8039e)

16 years agor7374: BUG 1261: remove unusable libbiconv after discussion with Timur (FreeBSD Samba...
Gerald Carter [Tue, 7 Jun 2005 19:01:45 +0000 (19:01 +0000)]
r7374: BUG 1261: remove unusable libbiconv after discussion with Timur (FreeBSD Samba maintainer)
(This used to be commit 2ead684635a21d737a385d38e0da0b6c53cb1f0d)

16 years agor7372: abartet's patch for BUG 2391 (segv caused by free a static pointer)
Gerald Carter [Tue, 7 Jun 2005 17:52:19 +0000 (17:52 +0000)]
r7372: abartet's patch for BUG 2391 (segv caused by free a static pointer)
(This used to be commit 4cda2bd035276bd090bf0fbd4e3b2eff657a80cb)

16 years agor7371: On one build farm box dirtest1 does not return, I think this might be due to
Volker Lendecke [Tue, 7 Jun 2005 15:59:14 +0000 (15:59 +0000)]
r7371: On one build farm box dirtest1 does not return, I think this might be due to
it being too slow. The build farm re-runs that with debuglevel 10, and this
ends up with a 400MB logfile which is not synced. Lets see if with this change
the machine pops up on build.samba.org....

Volker
(This used to be commit b4a6ace00dbf1a6b6200704197df7ecd460412e9)

16 years agor7344: Correctly return if malloc fails.
Volker Lendecke [Mon, 6 Jun 2005 15:21:09 +0000 (15:21 +0000)]
r7344: Correctly return if malloc fails.

Jeremy, you might want to check this.

Thanks,

Volker
(This used to be commit 560f9d37353f6b886996144215f99e06f2513007)