samba.git
22 years agoAdded sys_fcntl (not to be used everywhere). Added sys_read/sys_write
Jeremy Allison [Fri, 19 Apr 2002 03:05:38 +0000 (03:05 +0000)]
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
for transfer_file.
Jeremy.
(This used to be commit c7ff521bab838c070931f2b0ece4be3371fbcdbf)

22 years agofixed trust relationships in ADS winbindd after breaking them with my BDC changes ...
Andrew Tridgell [Fri, 19 Apr 2002 03:00:29 +0000 (03:00 +0000)]
fixed trust relationships in ADS winbindd after breaking them with my BDC changes ...
(This used to be commit 8096032663690eafb6bb8b4f405d6231389d4f80)

22 years agoFixed sendto in oplock code.
Jeremy Allison [Fri, 19 Apr 2002 02:20:04 +0000 (02:20 +0000)]
Fixed sendto in oplock code.
Jeremy.
(This used to be commit 64974fa334fd757ff5cfd1bd32d7300bf8a6208c)

22 years agoFix oplock recvfrom.
Jeremy Allison [Fri, 19 Apr 2002 02:16:54 +0000 (02:16 +0000)]
Fix oplock recvfrom.
Jeremy.
(This used to be commit 68c0eb5ca7bc96cfdc8df07bd84f3e49de024b81)

22 years agoFix send and recvfrom.
Jeremy Allison [Fri, 19 Apr 2002 02:15:10 +0000 (02:15 +0000)]
Fix send and recvfrom.
Jeremy.
(This used to be commit 8cbc24c3bd0e2d2349625c3b5d2e12ac092ec5a8)

22 years agoFirst cut at fix for the EINTR problem... More needs to be done I think.
Jeremy Allison [Fri, 19 Apr 2002 02:08:52 +0000 (02:08 +0000)]
First cut at fix for the EINTR problem... More needs to be done I think.
Jeremy.
(This used to be commit 48475a7a697242b9fd7b1aec24389afb112569c4)

22 years agofixed a namequery bug caused by my recent string length patches
Andrew Tridgell [Fri, 19 Apr 2002 00:16:18 +0000 (00:16 +0000)]
fixed a namequery bug caused by my recent string length patches
(This used to be commit b2329039d255928faf53474ee7ab06b6353b9fbe)

22 years agoBack out the wrong changes I made yesterday ...
Richard Sharpe [Thu, 18 Apr 2002 18:36:17 +0000 (18:36 +0000)]
Back out the wrong changes I made yesterday ...
(This used to be commit 6d52aa1fc892b48d72a790800ee00d6d7bdc4844)

22 years agofixed the fallback to a BDC for ADS connections
Andrew Tridgell [Thu, 18 Apr 2002 06:56:44 +0000 (06:56 +0000)]
fixed the fallback to a BDC for ADS connections
(This used to be commit 3e58a1ee83ea0b4347ce24e566445cc6cb67bb3a)

22 years agonicer strndup() function
Andrew Tridgell [Thu, 18 Apr 2002 03:59:02 +0000 (03:59 +0000)]
nicer strndup() function
(This used to be commit 546764f3cbbefaad312386280dd2ebbbe5b4446d)

22 years agoStarted working on setprinter code.
Tim Potter [Thu, 18 Apr 2002 03:35:05 +0000 (03:35 +0000)]
Started working on setprinter code.
(This used to be commit 38d2b1794a0942ac4c2787f06bc5e546508c2515)

22 years agomake proto
Tim Potter [Thu, 18 Apr 2002 03:24:02 +0000 (03:24 +0000)]
make proto
(This used to be commit a721843197d39c0edc6c464214123be3300d0b91)

22 years ago- fixed the is_mangled() interface to handle multiple components
Andrew Tridgell [Thu, 18 Apr 2002 02:13:55 +0000 (02:13 +0000)]
- fixed the is_mangled() interface to handle multiple components
- fixed the no-extension case of reverse mangling
(This used to be commit 64a2ae5cee4ffc5ae3c902705b6e1050f649e3a5)

22 years agoFix found by Li Shao @ HP - XP clients don't bother to set the devmode_ptr
Jeremy Allison [Thu, 18 Apr 2002 01:48:45 +0000 (01:48 +0000)]
Fix found by Li Shao @ HP - XP clients don't bother to set the devmode_ptr
in the SetPrinter() call - they send it in the devmode_ctr instead.
Jeremy.
(This used to be commit f988a1af034b4cea2412171a257a752192afaece)

22 years agoFix smbtorture so it can handle collisions etc ...
Richard Sharpe [Wed, 17 Apr 2002 22:50:02 +0000 (22:50 +0000)]
Fix smbtorture so it can handle collisions etc ...
(This used to be commit ba4d6c76aabd3d1fd8dc1e2335baf50c58d636a7)

22 years agoFixed the AFP_Resource:$DATA filename creation bug.
Jeremy Allison [Wed, 17 Apr 2002 21:59:55 +0000 (21:59 +0000)]
Fixed the AFP_Resource:$DATA filename creation bug.
Jeremy.
(This used to be commit b6c466e8800c03d154381c02a3893f338430b82d)

22 years agolibsmb/cli_netlogon.c: Fixed confusing debug messages.
Jeremy Allison [Wed, 17 Apr 2002 17:34:38 +0000 (17:34 +0000)]
libsmb/cli_netlogon.c: Fixed confusing debug messages.
param/loadparm.c: Added missing debugs that would have helped me find a misconfiguration
I lost a day on....
Jeremy.
(This used to be commit 6e9572379784c77f3c4e6a95e18a9641880a8ffc)

22 years agoFix unused warnings with deleted code.
Jeremy Allison [Wed, 17 Apr 2002 16:58:12 +0000 (16:58 +0000)]
Fix unused warnings with deleted code.
Jeremy.
(This used to be commit 255c68856eeccf75b152e15be66130175907188c)

22 years agoFixed command line argument parsing.
Tim Potter [Wed, 17 Apr 2002 06:43:47 +0000 (06:43 +0000)]
Fixed command line argument parsing.
(This used to be commit 28c1fae4d89399ec4d15bfb3ccd17d8b5b0495fc)

22 years agodisabled the traversal of the brlock database at startup and
Andrew Tridgell [Wed, 17 Apr 2002 05:43:05 +0000 (05:43 +0000)]
disabled the traversal of the brlock database at startup and
shutdown. I have just helped debug a very large Solaris server where
the traversal was taking so long that the clients timed out, created a
new process which in turn did a traversal!

we will need to find some other way of doing a brlock.tdb cleanup (if
its even needed at all)
(This used to be commit 2728d131356313db0d6341b0a01d6625d13367c3)

22 years agomake suure we get the return value from the pull_*() functions right
Andrew Tridgell [Wed, 17 Apr 2002 02:37:46 +0000 (02:37 +0000)]
make suure we get the return value from the pull_*() functions right
for both null terminated and buffer length terminated strings
(This used to be commit e8fbf853e0eed61bb7405be731f18fb2426f8dc4)

22 years agosync with 2.2
Simo Sorce [Tue, 16 Apr 2002 22:56:08 +0000 (22:56 +0000)]
sync with 2.2
(This used to be commit 18d5ffd835165d2570443c979d9157e2388b37d8)

22 years agostricter conditions on termination in strings
Andrew Tridgell [Tue, 16 Apr 2002 22:55:39 +0000 (22:55 +0000)]
stricter conditions on termination in strings
this was a very nasty bug with filename corruption and NT4 clients. The
exact termination conditions are quite critical ...
(This used to be commit a538efe7d00e7a61df194ca1c22e0583dcbb7a4a)

22 years agoFix incorrect zpadlen handling in fmtfp.
Simo Sorce [Tue, 16 Apr 2002 22:38:04 +0000 (22:38 +0000)]
Fix incorrect zpadlen handling in fmtfp.
Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it.
few mods to make it easier to compile the tests.
addedd the "Ollie" test to the floating point ones.
(This used to be commit 415f9d92bc0a37d38b81a653a4b4c5f0fefa2fe8)

22 years agofew fixes and regenerate
Gerald Carter [Tue, 16 Apr 2002 16:52:20 +0000 (16:52 +0000)]
few fixes and regenerate
(This used to be commit 0ffda9ffad2073a5995ce34fde5c3b5fc4859b90)

22 years agomerges from SAMBA_2_2
Gerald Carter [Tue, 16 Apr 2002 16:49:08 +0000 (16:49 +0000)]
merges from SAMBA_2_2
(This used to be commit 91929afbb0cad422cc6d05f9a10ba5c3d797d779)

22 years agowe did not initialise global_myname and global_myworkgroup which lead to
Jean-François Micouleau [Tue, 16 Apr 2002 15:49:24 +0000 (15:49 +0000)]
we did not initialise global_myname and global_myworkgroup which lead to
duplicate entries in secrets.tdb and false SID generated.

took me *hours* to understand.

J.F.
(This used to be commit bfc3a25b776a5a66e1bd0e2c60c101cea87ef4d5)

22 years agofixed a problem with the smb_buf() macro on some compilers
Andrew Tridgell [Tue, 16 Apr 2002 13:10:54 +0000 (13:10 +0000)]
fixed a problem with the smb_buf() macro on some compilers
(This used to be commit 66d6d4810ab7b0a1bf2039c387938aad69e01569)

22 years agoignore a few more files
Andrew Tridgell [Tue, 16 Apr 2002 12:27:54 +0000 (12:27 +0000)]
ignore a few more files
(This used to be commit 1c92fab4050f21b4c5cc962e0b80b5c551b24745)

22 years agoreran configure after adding a test for strnlen()
Andrew Tridgell [Tue, 16 Apr 2002 12:24:42 +0000 (12:24 +0000)]
reran configure after adding a test for strnlen()
(This used to be commit 78ead781261d397ace22640e3820d0f4fe17722c)

22 years agofixed the handling of STR_TERMINATE
Andrew Tridgell [Tue, 16 Apr 2002 12:07:12 +0000 (12:07 +0000)]
fixed the handling of STR_TERMINATE
(This used to be commit dbc6b137a83cf9fe0558625dd32f92f15296fba6)

22 years agoi forgot to commit these parts of the string handling patch earlier. Sorry.
Andrew Tridgell [Tue, 16 Apr 2002 10:40:23 +0000 (10:40 +0000)]
i forgot to commit these parts of the string handling patch earlier. Sorry.
(This used to be commit bac0093a9713416b1679d1bc167b70f02b06ef78)

22 years agomake sure we don't walk past the end of the current SMB buffer when
Andrew Tridgell [Tue, 16 Apr 2002 06:15:28 +0000 (06:15 +0000)]
make sure we don't walk past the end of the current SMB buffer when
pulling a string
this might explain a serious filename corruption bug that Quantum QA spotted
(This used to be commit a877eae24becad9e0cd5b33ffe0916a20d5ba227)

22 years agomake sure that we leave the tree unused after disconnecting
Andrew Tridgell [Mon, 15 Apr 2002 23:48:39 +0000 (23:48 +0000)]
make sure that we leave the tree unused after disconnecting
(This used to be commit e75e4ad7d3af5beee48b3001fd904eede8df033f)

22 years agoStubs for connect, domain, user, group and alias policy objects.
Tim Potter [Mon, 15 Apr 2002 23:33:09 +0000 (23:33 +0000)]
Stubs for connect, domain, user, group and alias policy objects.

Wrote samr connect fn.
(This used to be commit f2155aa3f4608b14777092002c39358b816dbea5)

22 years agomerge from SAMBA_2_2
Gerald Carter [Mon, 15 Apr 2002 13:35:18 +0000 (13:35 +0000)]
merge from SAMBA_2_2
(This used to be commit fedc11cab16dbecfdae858fc48d629b9172c0fb8)

22 years agoAnother patch from jelmer:
Andrew Bartlett [Mon, 15 Apr 2002 08:50:36 +0000 (08:50 +0000)]
Another patch from jelmer:

Doco for pdbedit and (ugly, but the best we could come up with) fix
for compiling pdbedit on some non-gcc compilers.

Andrew Bartlett
(This used to be commit 80adf1dbb56cf8bdbfbcc2c8c7b670c0a23c97f8)

22 years agoSkeleton for SAMR module.
Tim Potter [Mon, 15 Apr 2002 07:29:47 +0000 (07:29 +0000)]
Skeleton for SAMR module.
(This used to be commit 70bd1a0f94412236bf6603f16947336cb75c6415)

22 years agothis fixes the displaying of free disk space for DOS6 clients. Win2000
Andrew Tridgell [Mon, 15 Apr 2002 06:57:17 +0000 (06:57 +0000)]
this fixes the displaying of free disk space for DOS6 clients. Win2000
changes its behaviour based on the negotiated protocol for the
SMBdskattr SMB
(This used to be commit b693917530d649e22a677bd3bb1adedbfdd89bba)

22 years agobetter handling of DOS LANMAN2.1 protocol
Andrew Tridgell [Mon, 15 Apr 2002 06:56:01 +0000 (06:56 +0000)]
better handling of DOS LANMAN2.1 protocol
(This used to be commit 7f923d738b94eef042b21e4d0143861755620d91)

22 years agoby using a prompter function we can avoid the bug in the MIT kerberos
Andrew Tridgell [Mon, 15 Apr 2002 04:55:37 +0000 (04:55 +0000)]
by using a prompter function we can avoid the bug in the MIT kerberos
libraries with handling blank passwords.
(This used to be commit 59d755ffb57c322a104ff8f52819956cafff1bac)

22 years agoMerge of print server permission handling fixes from HEAD.
Tim Potter [Mon, 15 Apr 2002 04:07:13 +0000 (04:07 +0000)]
Merge ... print server permission handling fixes from HEAD.

Unit tests rock!
(This used to be commit bc673c42045ceb46d9569bc4d88f9c64897fc85a)

22 years agoFixed incorrect debug.
Tim Potter [Mon, 15 Apr 2002 01:55:57 +0000 (01:55 +0000)]
Fixed incorrect debug.
(This used to be commit 3b6df44ddc80d728c01511529ccb05c1ba3d414b)

22 years agoAdded hex values as comments for the standard access rights.
Tim Potter [Mon, 15 Apr 2002 01:11:40 +0000 (01:11 +0000)]
Added hex values as comments for the standard access rights.
(This used to be commit 00511ae2b4bc0ef3bfda89cc0ae3e1fba092b6d6)

22 years agoRename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
Tim Potter [Sun, 14 Apr 2002 23:42:54 +0000 (23:42 +0000)]
Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
(This used to be commit 4bf6a9830acde47994975dffd578454ebb75e45a)

22 years agoExplicitly return a list in py_ntstatus_tuple() and py_werror_typle(). Not
Tim Potter [Sun, 14 Apr 2002 23:39:02 +0000 (23:39 +0000)]
Explicitly return a list in py_ntstatus_tuple() and py_werror_typle().  Not
sure whether these should really be tuples or lists.

In open_pipe_creds() raise PyExc_RuntimeError exceptions if the pipe
connect function returns an error.
(This used to be commit 45cb1fed490d1fdafc5b63f2f5a33dfe5b334972)

22 years agoCall PyErr_SetString instead of fprintf to stderr.
Tim Potter [Sun, 14 Apr 2002 23:36:01 +0000 (23:36 +0000)]
Call PyErr_SetString instead of fprintf to stderr.

Don't clean up talloc and cli_state on close printer.  They will be
destroyed in the handle dealloc function.
(This used to be commit 4114fe5996f84dfd14855ffdf666e065446607b4)

22 years agoShutdown cli_state in the dealloc function. This happens automatically
Tim Potter [Sun, 14 Apr 2002 23:33:31 +0000 (23:33 +0000)]
Shutdown cli_state in the dealloc function.  This happens automatically
when a handle object falls out of scope.
(This used to be commit 39546dd241b36d5e7b8e239525a13b91e4e9db80)

22 years agoAdded enumerate trusted domains.
Tim Potter [Sun, 14 Apr 2002 12:26:09 +0000 (12:26 +0000)]
Added enumerate trusted domains.
(This used to be commit 3a11ce31ca3eed23f3bf82c46b2ebd2423be737d)

22 years agoMerge from 2_2.
Volker Lendecke [Sun, 14 Apr 2002 12:14:52 +0000 (12:14 +0000)]
Merge from 2_2.

Volker
(This used to be commit 8973a01f5efa547ed356e27fe1660da732b24cdd)

22 years agoThe cli_lsa_lookup_{names,sids} functions were returning useless
Tim Potter [Sun, 14 Apr 2002 11:21:25 +0000 (11:21 +0000)]
The cli_lsa_lookup_{names,sids} functions were returning useless
information when one or more of the names/sids being queried were not
resolvable.  We now return a list the same length as the parameters passed
instead of an array of just the resolvable names/sids.
(This used to be commit 245468dbabb7c849ce423cc3cb586fa913d0adfe)

22 years agoAdded error string for STATUS_SOME_UNMAPPED
Tim Potter [Sun, 14 Apr 2002 11:13:49 +0000 (11:13 +0000)]
Added error string for STATUS_SOME_UNMAPPED
(This used to be commit f736e115c00e02e3f131ccceb7769559dd4d908a)

22 years agoAdded a status code for lsa_lookup_{sids,names} returning the fact that
Tim Potter [Sun, 14 Apr 2002 10:50:32 +0000 (10:50 +0000)]
Added a status code for lsa_lookup_{sids,names} returning the fact that
only some of the entries could be resolved.
(This used to be commit 0722e71d1ef59a72567f383e3572546ab78e9e6a)

22 years agoExtra file for the tdb search code (linked list definition).
Andrew Bartlett [Sun, 14 Apr 2002 09:45:09 +0000 (09:45 +0000)]
Extra file for the tdb search code (linked list definition).

Andrew Bartlett
(This used to be commit c3312006009f5b312b285e3e679d01719012f29d)

22 years agoPartly based on the work by mimir (Rafal Szczesniak
Andrew Bartlett [Sun, 14 Apr 2002 09:44:16 +0000 (09:44 +0000)]
Partly based on the work by mimir (Rafal Szczesniak
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly
enumerate its trusted domains - by exaimining the keys in the secrets.tdb file.

This patch has been tested with both NT4 and rpcclient/wbinfo, and adds
some extra functionality to talloc and rpc_parse to allow it to deal with
already unicode strings.

Finally, this cleans up some const warnings that were in net_rpc.c by pushing
another dash of const into the rpc client code.

Andrew Bartlett
(This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)

22 years agoNew file to hold common prototypes.
Tim Potter [Sun, 14 Apr 2002 09:04:45 +0000 (09:04 +0000)]
New file to hold common prototypes.
(This used to be commit d5862891979678c4defb3e33791edca1f1f8c3e4)

22 years agoMoved security descriptor routines into their own file.
Tim Potter [Sun, 14 Apr 2002 09:04:12 +0000 (09:04 +0000)]
Moved security descriptor routines into their own file.
(This used to be commit 8e0457f8aa7b5ecababcdec4dfbc328d11513192)

22 years agoMoved function prototypes to py_common_proto.h
Tim Potter [Sun, 14 Apr 2002 09:03:05 +0000 (09:03 +0000)]
Moved function prototypes to py_common_proto.h
(This used to be commit f006bcf8e50e44b955678356039a6d6a7e16ab20)

22 years agoAdded copyright.
Tim Potter [Sun, 14 Apr 2002 09:00:13 +0000 (09:00 +0000)]
Added copyright.

Added lookup_names() and lookup_sids() functions.
(This used to be commit 2d2c925014374605b29e052729e959c0fd690586)

22 years agoit looks like it is possible for a w2k client to send a spnego auth without sending...
Andrew Tridgell [Sun, 14 Apr 2002 09:00:05 +0000 (09:00 +0000)]
it looks like it is possible for a w2k client to send a spnego auth without sending the negotiate - try to cope
(This used to be commit 95278aa41f654108d9d20cd0096a34caf175d32b)

22 years agowin2000 does not check the permissions on the share directory on
Andrew Tridgell [Sun, 14 Apr 2002 06:24:17 +0000 (06:24 +0000)]
win2000 does not check the permissions on the share directory on
tconx, so win2000 clients don't expect a permissions error in
tconx. We now match this behaviour, by only checking that the
directory exists during tconx and relying on the permissions on other
calls to protect directories
(This used to be commit 4fc476686476da31cc2b45badb05cb0765259f98)

22 years agopull_username() is a local function
Andrew Tridgell [Sun, 14 Apr 2002 05:51:13 +0000 (05:51 +0000)]
pull_username() is a local function
(This used to be commit fbf154bcfb68b90eb43ada9de317c93f43711608)

22 years agohanle the case where the win2000 username is completely different from
Andrew Tridgell [Sun, 14 Apr 2002 05:46:23 +0000 (05:46 +0000)]
hanle the case where the win2000 username is completely different from
the pre-win2000 username
(This used to be commit aa139ba507e4b898377fdfc9b27f7febf029d5a4)

22 years agomodified the ADS backend to accept either the long or short versions
Andrew Tridgell [Sun, 14 Apr 2002 05:14:50 +0000 (05:14 +0000)]
modified the ADS backend to accept either the long or short versions
of long usernames (win2000 usernames can be longer than 20 characters)
(This used to be commit 0719e756f60950b9ec04450fda5cc3776752e9a9)

22 years agoFixed debugs.
Tim Potter [Sun, 14 Apr 2002 04:58:49 +0000 (04:58 +0000)]
Fixed debugs.
(This used to be commit 6d9336f3b9b205e5916424ee844658b445439fdb)

22 years agoFixed comment.
Tim Potter [Sun, 14 Apr 2002 04:57:02 +0000 (04:57 +0000)]
Fixed comment.
(This used to be commit 06df6c79ae91cb4b1427a2a230fee288cff50e10)

22 years agoMade a comment clearer.
Tim Potter [Sun, 14 Apr 2002 04:55:18 +0000 (04:55 +0000)]
Made a comment clearer.
(This used to be commit 703e0a6ce2d283349f64cba72b36c1bef6a0d806)

22 years agoGenerate proto for lsa.
Tim Potter [Sun, 14 Apr 2002 01:01:39 +0000 (01:01 +0000)]
Generate proto for lsa.

Updated patch.
(This used to be commit 5dbd716b99c522eac89d9216eb4293084958b966)

22 years agoStarting work on lsa module.
Tim Potter [Sun, 14 Apr 2002 01:00:49 +0000 (01:00 +0000)]
Starting work on lsa module.
(This used to be commit 5c44397803622400390b13f1998b49f5da83d2a1)

22 years agoMore open_pipe_creds() refactoring.
Tim Potter [Sun, 14 Apr 2002 00:59:50 +0000 (00:59 +0000)]
More open_pipe_creds() refactoring.
(This used to be commit 7f2c814237f1df7008c9a91b7cf3b1de01e6ed87)

22 years agoMoved open_pipe_creds() function to common file.
Tim Potter [Sun, 14 Apr 2002 00:58:16 +0000 (00:58 +0000)]
Moved open_pipe_creds() function to common file.
(This used to be commit 14e4d889a236dd9c2ba6db68b3133e44195b8a47)

22 years agoAs always, vance looks after the grammer... :-)
Andrew Bartlett [Sat, 13 Apr 2002 22:52:28 +0000 (22:52 +0000)]
As always, vance looks after the grammer... :-)
(This used to be commit 206f1158bd059de9bf4290935d131f42e4639f99)

22 years agotwo time handling bugfixes
Andrew Tridgell [Sat, 13 Apr 2002 13:30:06 +0000 (13:30 +0000)]
two time handling bugfixes

- the pending mtime overrides the current file time in setfileinfo

- a later wtime can override a mtime on setfileinfo

this fixes the date of file copies in win2000
(This used to be commit 79630bb2c0a99c961a0a1c67223899e39685ee2c)

22 years agoFix the build on platforms that use our internal popt.
Andrew Bartlett [Sat, 13 Apr 2002 11:45:33 +0000 (11:45 +0000)]
Fix the build on platforms that use our internal popt.
(This used to be commit 3261a210dd0f89e3a8b8524747fa182bcc84bf9f)

22 years agoPatch for arbitary smb.conf paramaters (to make the life of plugin maintainers
Andrew Bartlett [Sat, 13 Apr 2002 10:52:31 +0000 (10:52 +0000)]
Patch for arbitary smb.conf paramaters (to make the life of plugin maintainers
sane) from ab.

Attached is his e-mail to the samba-technical list, as it describes it rather
well:

Andrew Bartlett

Subject:
         [PATCH] Parametrical options support for Samba 3.0
    Date:
         Fri, 12 Apr 2002 19:13:13 +0300
   From:
         Alexander Bokovoy <a.bokovoy@sam-solutions.net>
     To:
         samba-technical@samba.org
     CC:
         tridge@samba.org

Greetings!

Attached patch makes possible arbitrary options to be specified in
smb.conf and later queried from VFS modules (and other places)
without problems. Below such options are called 'parametrical options'.

Patch introduces new notation to smb.conf option's language, as discussed
today with Tridgell on @samba-technical:

        TYPE: OPTION = VALUE

Colon sign is important here, it is what distinguishes parametrical
options from ones hardcoded in param/loadparm.c.

TYPE is 'option domain', OPTION is option name itself.

In order to access values of parametrical options, lp_parm_string()
function was implemented:

char *lp_parm_string(const char *servicename, const char *type, const char
*option);

This function accepts service name, type and option name, and returns
value of option or NULL if this option is underfined. Service name can be
NULL, resulting in search in 'global' section only.

If option does not exist in specified service, 'global' section is
scanned. This allows propagation of globally specified options to all
services and later overloading of the option in some services.

Caution: 'TYPE: OPTION' combination is case sensitive.

So far, testparm is able to handle parametrical options, while SWAT
can't. Thus, everyone familiar with SWAT internals is welcomed to add
parametrical options support.
(This used to be commit bfd7cd43556bed3131d0d18869abfd1cbc30bcd0)

22 years agoFix the compile-bug in pdb_ldap from my last patch.
Andrew Bartlett [Sat, 13 Apr 2002 10:48:25 +0000 (10:48 +0000)]
Fix the compile-bug in pdb_ldap from my last patch.

Andrew Bartlett
(This used to be commit 81eaa7924b7bd3a13d049bce7fe7a16ab9174364)

22 years agoDoco update from Hasch@t-online.de (Juergen Hasch)
Andrew Bartlett [Sat, 13 Apr 2002 10:36:20 +0000 (10:36 +0000)]
Doco update from Hasch@t-online.de (Juergen Hasch)
(This used to be commit 1650bc969fbd36a02758fafd9addc66ea715e835)

22 years agoMore updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)
Andrew Bartlett [Sat, 13 Apr 2002 10:32:09 +0000 (10:32 +0000)]
More updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)

Andrew Bartlett
(This used to be commit 012b3326c40ca0f8f4c7673310d73f695cc4f79b)

22 years agoBetter handling of uid/gid -> RID and RID -> uid/gid code.
Andrew Bartlett [Sat, 13 Apr 2002 09:35:52 +0000 (09:35 +0000)]
Better handling of uid/gid -> RID and RID -> uid/gid code.

All uids and gids must create valid RIDs, becouse other code expects this, and
can't handle the failure case. (ACL code in particular)

Allow admins to adjust the base of the RID algorithm, so avoid clashes with
users brought in from NT (for example).

Put all the algorithm code back in one place, so that this change is global.

Better coping with NULL sid pointers - but it still breaks a lot of stuff.

BONUS: manpage entry for new paramater :-)

counter based rids for normal users in tdbsam is disabled for the timebeing,
idra and I will work out some things here soon I hope.

Andrew Bartlett
(This used to be commit 5275c94cdf0c64f347d4282f47088d084b1a7ea5)

22 years agoThis is the 'multiple pdb backends' patch from ctrlsoft, aka Jelmer Vernooij
Andrew Bartlett [Sat, 13 Apr 2002 08:16:41 +0000 (08:16 +0000)]
This is the 'multiple pdb backends' patch from ctrlsoft, aka Jelmer Vernooij
<jelmer@nl.linux.org>.

This patch also includes major rework of pdbedit to use popt, and the addition
of -i paramter (allowing the user to specify which PDBs is being
operated on) and -e to export a pdb - useful for backup and testing etc.

Use of -i and -e gets us pdb2pdb functionality for transition between backends,
much like the sam2sam in TNG.

Andrew Bartlett
(This used to be commit c10def37f506d3f2bab442418ac08fdb62659b02)

22 years agoMake our atomic increment code actually do this during its first/second run.
Andrew Bartlett [Sat, 13 Apr 2002 03:23:08 +0000 (03:23 +0000)]
Make our atomic increment code actually do this during its first/second run.

The previous code would return the same value for both the initial and second
call, only incrementing on later calls.

Andrew Bartlett
(This used to be commit a4594d9efeca1f67dea57be8323fb4bd986318ce)

22 years agoTidy up winbindd debug. Added Bill Moran's hide unreadable fix.
Jeremy Allison [Sat, 13 Apr 2002 02:24:07 +0000 (02:24 +0000)]
Tidy up winbindd debug. Added Bill Moran's hide unreadable fix.
Jeremy.
(This used to be commit a9895fcb30cdcb572cd254b0d370d79f95c7214d)

22 years agowhen background printing wasn't enabled printing was completely broken
Andrew Tridgell [Sat, 13 Apr 2002 00:58:04 +0000 (00:58 +0000)]
when background printing wasn't enabled printing was completely broken
as the pid was 0
(This used to be commit f16033635f5125758a3d2c3b0780d5bd2bd7bdbd)

22 years agofixed the display of the 'size on disk' property of files from w2k.
Andrew Tridgell [Fri, 12 Apr 2002 12:52:18 +0000 (12:52 +0000)]
fixed the display of the 'size on disk' property of files from w2k.
(This used to be commit 699a1d9f46fcc9d6aad56ed1b44d1295ee828b2b)

22 years agoRemove : from the list seperators, as this is used to seperate out components
Andrew Bartlett [Fri, 12 Apr 2002 08:22:50 +0000 (08:22 +0000)]
Remove : from the list seperators, as this is used to seperate out components
in the passdb module selection (after the : you have the options).

Andrew Bartlett
(This used to be commit 6949b630f10ebb76e8e59ca7e832f53571f2c20a)

22 years agoset the default hashing scheme in head to "hash2"
Andrew Tridgell [Fri, 12 Apr 2002 04:17:29 +0000 (04:17 +0000)]
set the default hashing scheme in head to "hash2"

it seems to be a much better scheme
(This used to be commit c8e2250ab1eae3aebecd8669e63f95f8656ae361)

22 years agonicer measurement of failures and collisions
Andrew Tridgell [Fri, 12 Apr 2002 03:54:13 +0000 (03:54 +0000)]
nicer measurement of failures and collisions
(This used to be commit 61c61f6b4f22c1ef6f837145f5e05730706cc8d4)

22 years agobetter mangling test. We now test that we can create by long name and
Andrew Tridgell [Fri, 12 Apr 2002 03:42:44 +0000 (03:42 +0000)]
better mangling test. We now test that we can create by long name and
delete by short name, and that we can create by short name and delete
by long name

our old mangling code fails this test.

also tweaked the random filename generation to produce more likely
collisions
(This used to be commit 65609c52960c2b5938150a2fdb5290541f4e0225)

22 years ago- added a mangling test suite that measures the collision rate on
Andrew Tridgell [Fri, 12 Apr 2002 03:26:19 +0000 (03:26 +0000)]
- added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
(This used to be commit 858fa7efc34f6e7cdf8500900aed3f7943c91348)

22 years agoMuch better support for both non-algorithic RIDs (where the RID is stored in
Andrew Bartlett [Thu, 11 Apr 2002 23:43:40 +0000 (23:43 +0000)]
Much better support for both non-algorithic RIDs (where the RID is stored in
the passdb) and RIDs not in the passdb, due to being NIS users etc.

The main fix here is to add become_root()/unbecome_root() at critical places.

This (finally) fixes the bug where you could not see local users's names
in a file's security properties as non-root.  Tested.

The similar bug in uid_to_sid is also fixed, but is not (yet) Tested.

Andrew Bartlett
(This used to be commit 79327a305e20d78ab5ca21d01c39b5f49dc0d632)

22 years agoHP2500C driver writes devmode with private data that ends
Jeremy Allison [Thu, 11 Apr 2002 18:52:09 +0000 (18:52 +0000)]
HP2500C driver writes devmode with private data that ends
on a 2 byte boundary. We then miss-parse the desired_access. Also added
other fixes to ensure we align after private data (discussed with Gerry).
Jeremy.
(This used to be commit 4369a58765f382e118e5393c805336484671cbf9)

22 years agoadded strndup() for systems that don't have it
Andrew Tridgell [Thu, 11 Apr 2002 15:27:22 +0000 (15:27 +0000)]
added strndup() for systems that don't have it
(This used to be commit 7e92fb7453e4dbf1fe0c32c3dcc1e994cb95b5ea)

22 years agodon't try to return a void
Andrew Tridgell [Thu, 11 Apr 2002 14:59:27 +0000 (14:59 +0000)]
don't try to return a void
(This used to be commit 51b4de0ae3b05c4f34a645ae9c6e395bc37226e6)

22 years agopossibly fix the 15000 user problem
Andrew Tridgell [Thu, 11 Apr 2002 14:30:31 +0000 (14:30 +0000)]
possibly fix the 15000 user problem

I think its caused by a rpc operation failing and us giving invalid
data back to the cache layer. Using talloc_zero() should solve this.
(This used to be commit dfa990170bb9a665ba48443258e2a87f50baa75c)

22 years ago- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
Andrew Tridgell [Thu, 11 Apr 2002 14:20:18 +0000 (14:20 +0000)]
- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
  hash to suit
- the prefix ends at the last dot, not the first
(This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)

22 years agoa few debug statements (disabled)
Andrew Tridgell [Thu, 11 Apr 2002 14:03:30 +0000 (14:03 +0000)]
a few debug statements (disabled)
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)

22 years agodon't treat '.' as FLAG_ASCII, instead handle it separately
Andrew Tridgell [Thu, 11 Apr 2002 13:35:28 +0000 (13:35 +0000)]
don't treat '.' as FLAG_ASCII, instead handle it separately
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)

22 years ago- tidier flag checking code
Andrew Tridgell [Thu, 11 Apr 2002 12:14:55 +0000 (12:14 +0000)]
- tidier flag checking code
- finished the is_mangled() function
(This used to be commit 128bec2071d640c775b58322256ac6bb03363741)

22 years agoadded some more comments
Andrew Tridgell [Thu, 11 Apr 2002 11:46:42 +0000 (11:46 +0000)]
added some more comments
(This used to be commit 8d6f2e239940cbac44f6f0e9d584a47553acbc56)

22 years agosome optimisations to the new mangling system
Andrew Tridgell [Thu, 11 Apr 2002 10:52:59 +0000 (10:52 +0000)]
some optimisations to the new mangling system
(This used to be commit 30b35d0c1f41f72ebe230905f76db8807802a6cc)