jra/samba/.git
23 years agofix typo
Herb Lewis [Tue, 11 Sep 2001 00:22:33 +0000 (00:22 +0000)]
fix typo
(This used to be commit 51795ca3509d9f1a076fae902211ebad02897c72)

23 years agoFix for second logic bug when handing oplock breaks and client messages
Jeremy Allison [Mon, 10 Sep 2001 23:03:14 +0000 (23:03 +0000)]
Fix for second logic bug when handing oplock breaks and client messages
simultaneously.
Jeremy.
(This used to be commit 227325b2d63dad55cbcda9608fba676fb6ce5584)

23 years agoleft out {
Herb Lewis [Mon, 10 Sep 2001 22:40:15 +0000 (22:40 +0000)]
left out {
(This used to be commit 70bd17473a2106ef41b5d921595ce537ec1871cb)

23 years agoprevent segv by not calling tdb_traverse and tdb_close if tdb_open_log
Herb Lewis [Mon, 10 Sep 2001 22:31:59 +0000 (22:31 +0000)]
prevent segv by not calling tdb_traverse and tdb_close if tdb_open_log
returns NULL.
(This used to be commit afdf93836b59d5d9ede2ac0f3298d99471872829)

23 years agocut-n-paste error
Gerald Carter [Mon, 10 Sep 2001 19:30:34 +0000 (19:30 +0000)]
cut-n-paste error
(This used to be commit b2ed211df0cad2013fd8ff67f48bf73962cc1d39)

23 years agomerge from APPLIANCE_HEAD
Gerald Carter [Mon, 10 Sep 2001 19:29:00 +0000 (19:29 +0000)]
merge from APPLIANCE_HEAD
(This used to be commit 55bd514c4576a273dac1ac5c37207a96b41f6572)

23 years agoconvert more code to use XFILE
Andrew Tridgell [Mon, 10 Sep 2001 13:09:54 +0000 (13:09 +0000)]
convert more code to use XFILE
(This used to be commit fd24265c06f6d2b636c1863941a33029dd9f3828)

23 years agoconvert more code to use XFILE
Andrew Tridgell [Mon, 10 Sep 2001 12:46:42 +0000 (12:46 +0000)]
convert more code to use XFILE
(This used to be commit fe6679dffba9a92bb35933ad52172c9be0e9ef90)

23 years agodeclare dbf in one spot
Andrew Tridgell [Mon, 10 Sep 2001 12:14:18 +0000 (12:14 +0000)]
declare dbf in one spot
(This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)

23 years agomore static/dead fns
Andrew Tridgell [Mon, 10 Sep 2001 11:45:09 +0000 (11:45 +0000)]
more static/dead fns
(This used to be commit f59826c0c9ba283c25faeec2cbdc7e19cca7aa04)

23 years agokill a dead fn and make a local one static
Andrew Tridgell [Mon, 10 Sep 2001 11:34:32 +0000 (11:34 +0000)]
kill a dead fn and make a local one static
(This used to be commit 1e9815105e235ad1141b899b03d3de756d217d49)

23 years agomade a couple of local fns static
Andrew Tridgell [Mon, 10 Sep 2001 11:23:41 +0000 (11:23 +0000)]
made a couple of local fns static
(This used to be commit f0851202a852bed28fbd2446b44ce2b977ddacd8)

23 years agopassdb/smbpassfile ain't needed any more - it only provided migration from an ancient...
Andrew Tridgell [Mon, 10 Sep 2001 11:16:18 +0000 (11:16 +0000)]
passdb/smbpassfile ain't needed any more - it only provided migration from an ancient file format, not relevant for Samba 3.0
(This used to be commit 954adb630d7c41a45de3a0d656d03499e20727b6)

23 years agoadded xfile
Andrew Tridgell [Mon, 10 Sep 2001 11:09:36 +0000 (11:09 +0000)]
added xfile
(This used to be commit 7c2fe172c3322433571e73a0bef5c67168dd7c80)

23 years agoreplaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
Andrew Tridgell [Mon, 10 Sep 2001 11:08:57 +0000 (11:08 +0000)]
replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems

I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
(This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)

23 years agoMake sure that if there are no interfaces, name_register_wins does not
Richard Sharpe [Sun, 9 Sep 2001 09:59:33 +0000 (09:59 +0000)]
Make sure that if there are no interfaces, name_register_wins does not
segfault.
(This used to be commit a7842fac94a3f772da0e6ddf14044df24af798a9)

23 years agoTypo fix per Vance on IRC.
Christopher R. Hertel [Sun, 9 Sep 2001 04:21:12 +0000 (04:21 +0000)]
Typo fix per Vance on IRC.
(This used to be commit 6f388502622fe77ae13ac2b0ae8f39b2e77ba455)

23 years agofixed typo
Andrew Tridgell [Sun, 9 Sep 2001 03:18:23 +0000 (03:18 +0000)]
fixed typo
(This used to be commit 160906b57de8d1f8f76e716e0691223f743e07eb)

23 years agoremoved pointless parameter from readfile()
Andrew Tridgell [Sun, 9 Sep 2001 02:43:30 +0000 (02:43 +0000)]
removed pointless parameter from readfile()
(This used to be commit 0742342ec496bec7246e067280737cd507465b50)

23 years agofixed missing const on d_printf declaration
Andrew Tridgell [Sun, 9 Sep 2001 02:37:10 +0000 (02:37 +0000)]
fixed missing const on d_printf declaration
(This used to be commit 865e0507e6e6ad6a71d833c4f2a0f57362637719)

23 years agoconvert more code to using d_printf
Andrew Tridgell [Sat, 8 Sep 2001 02:59:23 +0000 (02:59 +0000)]
convert more code to using d_printf
(This used to be commit 60d297303488ed583537ca2853828fccd6da2ade)

23 years agoChange the description on --with-pam_smbpass to make it clearer - some peope
Andrew Bartlett [Fri, 7 Sep 2001 23:56:54 +0000 (23:56 +0000)]
Change the description on --with-pam_smbpass to make it clearer - some peope
seem to think you need this module for normal samba/PAM operation.

rerun autoconf
rerun autoheader

(Note that --with-pam_smbpass still doesn't build, but at least when it does
again only people who actually need it will select it).
(This used to be commit bbda3dd7422a434f19ca8968dab8f9f210254c2f)

23 years agoDon't fail if no owner/group owner set. Use existing owners.
Jeremy Allison [Fri, 7 Sep 2001 20:08:16 +0000 (20:08 +0000)]
Don't fail if no owner/group owner set. Use existing owners.
Jeremy.
(This used to be commit 9961c4c1a3b2dbf8d1062bc1fa103488c0d0ba79)

23 years ago#ifdef out function when not used.
Jeremy Allison [Fri, 7 Sep 2001 20:01:19 +0000 (20:01 +0000)]
#ifdef out function when not used.
Jeremy.
(This used to be commit fa8d626a2773569a454451e77ea56c707b33b69e)

23 years agoFixed paragraph about byte range locking. Jerry, could you make a pdf of this?
Volker Lendecke [Fri, 7 Sep 2001 15:35:26 +0000 (15:35 +0000)]
Fixed paragraph about byte range locking. Jerry, could you make a pdf of this?

Thanks,

Volker
(This used to be commit 3811b6a9eba8c5567b4df01c86cc4fe33b0a8079)

23 years agoadded "display charset" option in smb.conf, along with d_printf()
Andrew Tridgell [Fri, 7 Sep 2001 14:14:57 +0000 (14:14 +0000)]
added "display charset" option in smb.conf, along with d_printf()
which should now be used instead of DEBUG(0) or printf() for
interactive messages

I have only converted client.c to use d_printf(), and the code hasn't
had much testing yet. Eventually we want all interactive code to use
d_printf(), plus SWAT
(This used to be commit 266d8e67669adb329f25676c4bc4d4c50f223428)

23 years agoFix the 62bit locking onto 32 bit NFS mounts problem generically for HPUX.
Jeremy Allison [Thu, 6 Sep 2001 22:43:21 +0000 (22:43 +0000)]
Fix the 62bit locking onto 32 bit NFS mounts problem generically for HPUX.
Don. please check this out.
Jeremy.
(This used to be commit ce9f95996498f7795aaef069e1443ea1c7d524b3)

23 years agogot rid of USE_TDB_MMAP_FLAG as its not needed any more
Andrew Tridgell [Thu, 6 Sep 2001 22:08:19 +0000 (22:08 +0000)]
got rid of USE_TDB_MMAP_FLAG as its not needed any more
(This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)

23 years agoFixed O(N^2) talloc loop when allocating printer name memory - fix from
Jeremy Allison [Thu, 6 Sep 2001 15:48:29 +0000 (15:48 +0000)]
Fixed O(N^2) talloc loop when allocating printer name memory - fix from
Richard Bollinger <rabollinger@home.com>.
Jeremy.
(This used to be commit 408c0595bbeafca87795e5278656471fbe0540e8)

23 years ago- fixed proto.h build on systems using a parallel make
Andrew Tridgell [Thu, 6 Sep 2001 10:37:21 +0000 (10:37 +0000)]
- fixed proto.h build on systems using a parallel make

- changed DENY1 and DENY2 tests to only report errors
(This used to be commit 9341e5534d0786e6ad7980e5fd1a0b35d77a2806)

23 years agoConverted to NTSTATUS return codes.
Tim Potter [Thu, 6 Sep 2001 09:15:57 +0000 (09:15 +0000)]
Converted to NTSTATUS return codes.

Started on producing smbpasswd output from user account information.
Doesn't work yet.

Added -U option so samsync can be run interactively.
(This used to be commit 842fcd94fa847f71d828a46b092f5837743ffcde)

23 years agoStarted a cleanup of smbpasswd related stuff. I've created a new file
Tim Potter [Thu, 6 Sep 2001 09:10:26 +0000 (09:10 +0000)]
Started a cleanup of smbpasswd related stuff.  I've created a new file
lib/smbpasswd.c which will contain routines related to manipulating
smbpasswd entries.

 - renamed and moved pdb_{get,set}hexpwd() functions
 - renamed and moved pdb_{decode,encode}acct_ctrl() functions
 - started hiding references to the cruftalicious
   NEW_PW_FORMAT_SPACE_PADDED_LEN constant
 - started gradual rename of references to acct_ctrl to acb_info which is
   the nomenclature used in MSDN and header files

There's still more work to be done.  Currently there are several places
where smbpasswd entries are iterated etc.  Ideally this should all happen
through the passdb system.
(This used to be commit 4a01e240305fb6fead973beef4937a016b15d744)

23 years agoRemoved 18 duplicate #undef entries.
Tim Potter [Thu, 6 Sep 2001 08:57:41 +0000 (08:57 +0000)]
Removed 18 duplicate #undef entries.
(This used to be commit 7a7b13940efbbf15dfcf45f89389e2728527f1e2)

23 years agoAnnotated definition of NEW_PW_FORMAT_SPACE_PADDED_LEN constant.
Tim Potter [Thu, 6 Sep 2001 08:56:30 +0000 (08:56 +0000)]
Annotated definition of NEW_PW_FORMAT_SPACE_PADDED_LEN constant.
(This used to be commit e3ec6197ede4a37113567c2ab406937c6ca80e9d)

23 years agoflush stdout in test logging fns
Andrew Tridgell [Thu, 6 Sep 2001 05:59:32 +0000 (05:59 +0000)]
flush stdout in test logging fns
(This used to be commit d32ac363a5b4c6978077b1d695c503e22c5782ca)

23 years agouse a different test tdb name for tdbtest and tdbtorture
Andrew Tridgell [Thu, 6 Sep 2001 05:58:05 +0000 (05:58 +0000)]
use a different test tdb name for tdbtest and tdbtorture
(This used to be commit 931bded1c92c812d6aae101a40f453c925054627)

23 years agoactually obey the "use mmap" smb.conf option
Andrew Tridgell [Thu, 6 Sep 2001 05:45:07 +0000 (05:45 +0000)]
actually obey the "use mmap" smb.conf option
(This used to be commit b36c98036bcbaa5545c9637cb632361122033cfd)

23 years agoLogon workstation checks from Toomas Soome <tsoome@ut.ee>
Tim Potter [Thu, 6 Sep 2001 05:24:37 +0000 (05:24 +0000)]
Logon workstation checks from Toomas Soome <tsoome@ut.ee>

Fixed compile warning.
(This used to be commit 3eee66516596835c70c8d652ca633d2e1158fbb7)

23 years agoenable strict locking by default. This will be slow, so now we just
Andrew Tridgell [Thu, 6 Sep 2001 01:22:17 +0000 (01:22 +0000)]
enable strict locking by default. This will be slow, so now we just
need to fiind a way to make it fast
(This used to be commit 42b147d1f26093c45110077a309c5e0d3010a28d)

23 years agoit turns out that XP agrees with the samba head branch over the right
Andrew Tridgell [Thu, 6 Sep 2001 01:21:09 +0000 (01:21 +0000)]
it turns out that XP agrees with the samba head branch over the right
error codes for locking, so fix the test rather than fixing samba
(This used to be commit a583af3c2f5d1962495a0f18b671e34d6ff43511)

23 years agouse NTSTATUS not BOOL in do_lock()
Andrew Tridgell [Thu, 6 Sep 2001 01:19:35 +0000 (01:19 +0000)]
use NTSTATUS not BOOL in do_lock()
(This used to be commit b1b2a5fa5d084dad8ae47777419ab75db1e51eff)

23 years agoRemoved unneeded set of delete on close in fsp->share_mode.
Jeremy Allison [Wed, 5 Sep 2001 23:34:41 +0000 (23:34 +0000)]
Removed unneeded set of delete on close in fsp->share_mode.
Jeremy.
(This used to be commit 7816f79075132350c910f75f9b757477a319bbae)

23 years agoFix I think for the fcntl spinning problem. Re-prioritize so
Jeremy Allison [Wed, 5 Sep 2001 22:45:48 +0000 (22:45 +0000)]
Fix I think for the fcntl spinning problem. Re-prioritize so
that oplock break messages get priority over incoming client messages.
Jeremy.
(This used to be commit 1779f6a223dad87c3b8451d09b9808b46495a8b6)

23 years ago2nd DELETE_ON_CLOSE_FLAG fix ...
Andrew Tridgell [Wed, 5 Sep 2001 21:39:43 +0000 (21:39 +0000)]
2nd DELETE_ON_CLOSE_FLAG fix ...

we set the DELETE_ON_CLOSE_FLAG on all share modes on the file, which
means the share mode in the fsp will not match the one in the tdb when
we come to close for other file handles, which means we end up with
share modes on files after all handles are closed

fixed by making the comparison function that says if two shares modes
are equal ignore the DELETE_ON_CLOSE_FLAG
(This used to be commit 7b39c4c59897669106d7129bad8af3d592d25838)

23 years agowhen you update the share mode in the db you must also update
Andrew Tridgell [Wed, 5 Sep 2001 21:13:58 +0000 (21:13 +0000)]
when you update the share mode in the db you must also update
fsp->share_mode otherwise the check to see if the fsp share mode
matches the one in the db will fail when you come to delete it,
thus leaving us with a share mode on a file that isn't even open!
(This used to be commit 2020738b889d8d508cf787e5c5d380af817b92f9)

23 years agofixed formatting to make the code vaguely readable. It's still a dogs
Andrew Tridgell [Wed, 5 Sep 2001 21:11:52 +0000 (21:11 +0000)]
fixed formatting to make the code vaguely readable. It's still a dogs
breakfast, but at least you can follow the indents
(This used to be commit 9955ea0aaa299c6c946b4e7b7e98017c39b60bc8)

23 years agoadd PROFILE_OBJ to nmbd now
Herb Lewis [Wed, 5 Sep 2001 20:06:33 +0000 (20:06 +0000)]
add PROFILE_OBJ to nmbd now
(This used to be commit 99b773217c001b8b89e72561f3ece46bb4ea553e)

23 years agomerge profile data changes from 2.2
Herb Lewis [Wed, 5 Sep 2001 18:43:55 +0000 (18:43 +0000)]
merge profile data changes from 2.2
(This used to be commit c105859304e93297fa29f346e9cbd1af0c95048b)

23 years agoalways include profile support so you do not need a different binary of
Herb Lewis [Wed, 5 Sep 2001 18:01:48 +0000 (18:01 +0000)]
always include profile support so you do not need a different binary of
smbstatus to dump profile stats.
(This used to be commit fc048955b8af05779992bc111f9bd690b8a8faf2)

23 years agoadd profiling stats from 2.2
Herb Lewis [Wed, 5 Sep 2001 17:58:24 +0000 (17:58 +0000)]
add profiling stats from 2.2
(This used to be commit 6c333e9d922b3a7443db829277b8a209cce2d350)

23 years agovariable name changed to --with-profiling-data
Herb Lewis [Wed, 5 Sep 2001 17:39:51 +0000 (17:39 +0000)]
variable name changed to --with-profiling-data
(This used to be commit 28fba1ba4883e5eaa97247e933da9311c53c41df)

23 years agoWhen sending a message via a tdb, it must be open read/write.
Jeremy Allison [Wed, 5 Sep 2001 17:23:51 +0000 (17:23 +0000)]
When sending a message via a tdb, it must be open read/write.
Jeremy.
(This used to be commit f35887c7d40ced750596b87bf37f7aae1df68c7a)

23 years agouse cli_is_error() instead of looking in smb_rcls, otherwise NT status
Andrew Tridgell [Wed, 5 Sep 2001 11:32:59 +0000 (11:32 +0000)]
use cli_is_error() instead of looking in smb_rcls, otherwise NT status
codes don't work correctly
(This used to be commit 55d5828e608671f070a9e96938be0d16d50aeb26)

23 years agoadded filename to error_packet()
Andrew Tridgell [Wed, 5 Sep 2001 10:18:58 +0000 (10:18 +0000)]
added filename to error_packet()
(This used to be commit 2c424788dec2fd6e44c243ea115d66689dfae6c0)

23 years agofixed some compilation errors in cli_netlogon.c - tim, you need to rerun configure...
Andrew Tridgell [Wed, 5 Sep 2001 08:54:04 +0000 (08:54 +0000)]
fixed some compilation errors in cli_netlogon.c - tim, you need to rerun configure to get the new NTSTATUS stuff right
(This used to be commit 9bae57cfe30825174536d11983bb3434498e3f03)

23 years agomore warning fixes on solaris
Andrew Tridgell [Wed, 5 Sep 2001 08:11:17 +0000 (08:11 +0000)]
more warning fixes on solaris
(This used to be commit c04c67fec85b1c81ef0b3cebacde304a1de0d854)

23 years agofixed a bunch of compilation errors on Solaris, mostly people getting NSS_STATUS...
Andrew Tridgell [Wed, 5 Sep 2001 07:55:54 +0000 (07:55 +0000)]
fixed a bunch of compilation errors on Solaris, mostly people getting NSS_STATUS and WINBINDD error codes mixed up
(This used to be commit 66698d6b841df809a8654012a8385bffacb9dc4a)

23 years agoMerged cli_net_req_chal() and cli_net_auth2() from rpc_client/cli_login.c
Tim Potter [Wed, 5 Sep 2001 04:46:21 +0000 (04:46 +0000)]
Merged cli_net_req_chal() and cli_net_auth2() from rpc_client/cli_login.c
except they are called new_cli_net_req_chal() and new_cli_net_auth2()
until they are working properly.
(This used to be commit 4ca085f253fc39de60115edc049e91d5c95735ef)

23 years agooh foo
Tim Potter [Wed, 5 Sep 2001 04:33:25 +0000 (04:33 +0000)]
oh foo
(This used to be commit 66c7bb9467c1acaf7e5b310a2ebc753f455b18c9)

23 years agoDon't crash if run with no command line arguments. (-:
Tim Potter [Wed, 5 Sep 2001 04:30:53 +0000 (04:30 +0000)]
Don't crash if run with no command line arguments.  (-:
(This used to be commit a46e9cc3a1a247fba8fe9b4cdfa16954071b4a35)

23 years agoNFS v2 can return ENOLCK when greater than 31 bit offsets are used.
Jeremy Allison [Wed, 5 Sep 2001 00:05:07 +0000 (00:05 +0000)]
NFS v2 can return ENOLCK when greater than 31 bit offsets are used.
Treat this the same as an EFBIG error.
Jeremy
(This used to be commit 8fad5177701c1738a7f5bdd7c0082ef23a00b876)

23 years agodon't do pointer arithmetic on void* (some compilers can't do it)
Andrew Tridgell [Tue, 4 Sep 2001 20:34:02 +0000 (20:34 +0000)]
don't do pointer arithmetic on void* (some compilers can't do it)
(This used to be commit c65e8db7ae765f844f8b0adb1e5de3651561ad96)

23 years agoFixes to ensure invalid vuids cannot stop oplock breaks.
Jeremy Allison [Tue, 4 Sep 2001 19:58:01 +0000 (19:58 +0000)]
Fixes to ensure invalid vuids cannot stop oplock breaks.
This may have bearing on the Solaris fcntl spin bug.
Jeremy.
(This used to be commit 0f676202529cbfead629d2c228b7d5abc2dff7d6)

23 years agoMerge of transfer file code from 2.2, fix for readbraw.
Jeremy Allison [Tue, 4 Sep 2001 19:10:30 +0000 (19:10 +0000)]
Merge ... transfer file code from 2.2, fix for readbraw.
Jeremy.
(This used to be commit c05e79453655abb67fd47a2d3dba88b4c5377e35)

23 years agofixed compilation of torture
Andrew Tridgell [Tue, 4 Sep 2001 11:52:42 +0000 (11:52 +0000)]
fixed compilation of torture
(This used to be commit aaf538a83057150cc35e9032aff7a78e8f0c4dc2)

23 years agocope with pam being off
Andrew Tridgell [Tue, 4 Sep 2001 11:39:57 +0000 (11:39 +0000)]
cope with pam being off
(This used to be commit 5f6e7bbce76c85571ee10a3f8b5bbbd0beadb632)

23 years agoa fix for fussy compilers
Andrew Tridgell [Tue, 4 Sep 2001 11:18:50 +0000 (11:18 +0000)]
a fix for fussy compilers
(This used to be commit 78f437b5073207606b23be42960e2b10f785a148)

23 years agoit now all compiles - so try enabling it by default and see what explodes on the...
Andrew Tridgell [Tue, 4 Sep 2001 10:57:29 +0000 (10:57 +0000)]
it now all compiles - so try enabling it by default and see what explodes on the build farm
(This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)

23 years agoDon't overwrite an existing /etc/xinetd.d/swat on install file since we
Tim Potter [Tue, 4 Sep 2001 07:43:50 +0000 (07:43 +0000)]
Don't overwrite an existing /etc/xinetd.d/swat on install file since we
don't overwrite it on upgrade.

Does this make sense?
(This used to be commit 90b3dccfd421bac6516c298f85fcccc857c57989)

23 years agoWelcome to tpot's exploit world!
Tim Potter [Tue, 4 Sep 2001 07:24:13 +0000 (07:24 +0000)]
Welcome to tpot's exploit world!

- put in checks for return values in rpc parsing routines

- replace a bunch of stupid &(foo->bar) with &foo->bar

- fixed bug in net_io_sam_alias_mem_info where there are zero members in
the alias
(This used to be commit eecdba2b015ed48d7dd88daea2af466f28cd2ff7)

23 years agothe next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the...
Andrew Tridgell [Tue, 4 Sep 2001 07:13:01 +0000 (07:13 +0000)]
the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
(This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)

23 years agoFixed some compiler warnings.
Tim Potter [Tue, 4 Sep 2001 06:16:01 +0000 (06:16 +0000)]
Fixed some compiler warnings.
(This used to be commit 06608971ed95c02188a1b2bf7b1f9a2845e04022)

23 years agomore NTSTATUS/WERROR conversion
Andrew Tridgell [Mon, 3 Sep 2001 10:38:13 +0000 (10:38 +0000)]
more NTSTATUS/WERROR conversion
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)

23 years agotidied up some unused vars in JFs new fns
Andrew Tridgell [Mon, 3 Sep 2001 08:54:24 +0000 (08:54 +0000)]
tidied up some unused vars in JFs new fns
(This used to be commit e26502b1f840cd0fafd700c9756b610b38709ce2)

23 years agothe next step in our error code handling change
Andrew Tridgell [Mon, 3 Sep 2001 08:50:59 +0000 (08:50 +0000)]
the next step in our error code handling change

- added WERROR for win32 error codes
- added a configure test for immediate structures

still lots to do, so its not enabled by default, but the main
structure is there
(This used to be commit 24f9ab683dec52587ee56717e821b49c0fa3d70f)

23 years agoupdated copyright for Michael Sweet
Andrew Tridgell [Sun, 2 Sep 2001 22:39:03 +0000 (22:39 +0000)]
updated copyright for Michael Sweet
(This used to be commit 9d53473f302f172c10854b8df3000552918d0637)

23 years agouse a name not a number for ERRinsufficientbuffer
Andrew Tridgell [Sat, 1 Sep 2001 23:08:08 +0000 (23:08 +0000)]
use a name not a number for ERRinsufficientbuffer
(This used to be commit 8e70666fccde1025d77e4db51b5b63e5142d98ec)

23 years agomore NTSTATUS changes
Andrew Tridgell [Sat, 1 Sep 2001 23:06:57 +0000 (23:06 +0000)]
more NTSTATUS changes
(This used to be commit 8a49b2f7df46b2c990a980758fe1f3871e8b578e)

23 years agoSet acb_info to ACB_SVRTRUST if we are joining the domain as a BDC without
Tim Potter [Fri, 31 Aug 2001 05:48:37 +0000 (05:48 +0000)]
Set acb_info to ACB_SVRTRUST if we are joining the domain as a BDC without
going through the server manager.
(This used to be commit 52f5abae4667d841be7ca8f5ff0f25ba6d027067)

23 years agoFix up some compile issues. We can't have C99 comments and add a smattering
Andrew Bartlett [Fri, 31 Aug 2001 03:38:48 +0000 (03:38 +0000)]
Fix up some compile issues.  We can't have C99 comments and add a smattering
of const.
(This used to be commit af53e774d754d72b01d9840e8b45d27bc394e33d)

23 years agoAdded samsync binary to list of ignored files.
Tim Potter [Fri, 31 Aug 2001 02:32:57 +0000 (02:32 +0000)]
Added samsync binary to list of ignored files.
(This used to be commit 604468c6eedfa7a8ac62800cf7cf73cbd969ae45)

23 years agochanged the data format in the tdb, as the time fields were not
Simo Sorce [Fri, 31 Aug 2001 01:29:53 +0000 (01:29 +0000)]
changed the data format in the tdb, as the time fields were not
managed correctly.
this mean you need to rebuild your passdb.tdb file.
(This used to be commit 57b8d3bb84e261e55febdde88e45684455f0a294)

23 years agoFix crash bug with indirecting through null pointer on recursive delete.
Jeremy Allison [Thu, 30 Aug 2001 22:20:02 +0000 (22:20 +0000)]
Fix crash bug with indirecting through null pointer on recursive delete.
Jeremy.
(This used to be commit a6f04d16613a06c1aafa89d7373d1e4b4a5fb45b)

23 years agoFixed silly typo.
Jeremy Allison [Thu, 30 Aug 2001 20:09:49 +0000 (20:09 +0000)]
Fixed silly typo.
Jeremy.
(This used to be commit 6ee2b41429e43f6a9a58eba3cb01b952be3d5ca5)

23 years agoFix from Paul Green to set correct lengths.
Jeremy Allison [Thu, 30 Aug 2001 19:16:56 +0000 (19:16 +0000)]
Fix from Paul Green to set correct lengths.
Jeremy.
(This used to be commit 52b9b6d519c38b2a3e524d098a09fb996e8a2047)

23 years agoif no ACL elements then use chmod - fixes ability to set read-only bit
Herb Lewis [Thu, 30 Aug 2001 18:56:35 +0000 (18:56 +0000)]
if no ACL elements then use chmod - fixes ability to set read-only bit
on files that do not have an ACL
(This used to be commit 65ea13420c78cf0a8c01f14c08815e4b44ca4abc)

23 years agothis was a stupid typo,
Simo Sorce [Thu, 30 Aug 2001 08:14:16 +0000 (08:14 +0000)]
this was a stupid typo,
thanks to Jochen Dolze (dolze@epcnet.de) for pointing out.
(This used to be commit a554d5a99a03e6e8df7e946e5636f5ee80b21969)

23 years agomerge from 2.2
Gerald Carter [Thu, 30 Aug 2001 05:54:41 +0000 (05:54 +0000)]
merge from 2.2
(This used to be commit d31e1b63b5a13ec585da18971e85c9eaa941ed33)

23 years agomerge from 2.2
Gerald Carter [Thu, 30 Aug 2001 00:47:21 +0000 (00:47 +0000)]
merge from 2.2
(This used to be commit 3e8ccb420260591f362fa8a9d1221481449f8ef7)

23 years agomerge from APPLIANCE_TNG
Gerald Carter [Thu, 30 Aug 2001 00:41:51 +0000 (00:41 +0000)]
merge from APPLIANCE_TNG
(This used to be commit 2af0a65e4c56e9361ee03286edcf26b5926b39e4)

23 years agomerge from APPLIANCE_TNG
Gerald Carter [Thu, 30 Aug 2001 00:13:55 +0000 (00:13 +0000)]
merge from APPLIANCE_TNG
(This used to be commit aff66993e47dc14371c15e75de11ff2c15d226f3)

23 years agoRenamed rwlock_t type to tdb_rwlock_t to avoid conflict with Solaris 8
Tim Potter [Wed, 29 Aug 2001 23:49:26 +0000 (23:49 +0000)]
Renamed rwlock_t type to tdb_rwlock_t to avoid conflict with Solaris 8
header files.
(This used to be commit 888c852f01cec89b380fdf2564444b86d396c442)

23 years agoFix uninitialised variables. Spotted by "Esh, Andrew" <AEsh@tricord.com>
Tim Potter [Wed, 29 Aug 2001 22:47:59 +0000 (22:47 +0000)]
Fix uninitialised variables.  Spotted by "Esh, Andrew" <AEsh@tricord.com>
(This used to be commit 9081af4fe584d222c00587d6d3c81e12d6611222)

23 years agoFuss, fuss, fuss...
Christopher R. Hertel [Wed, 29 Aug 2001 04:26:27 +0000 (04:26 +0000)]
Fuss, fuss, fuss...

Function name_status_query() performs a node status query, so it really
should be called "node_status_query()" just to be consistent.

Yeah, minor... but it's looking as though an overhaul of namequery.c is in
order and I am trying to do the tiny changes that impact other stuff first.

Chris -)-----
(This used to be commit 3af2de7ed26e5a26a273be2dcd9c5565c586fe47)

23 years agoShould be dbgtext, not dbg_text.
Tim Potter [Wed, 29 Aug 2001 04:11:11 +0000 (04:11 +0000)]
Should be dbgtext, not dbg_text.
(This used to be commit 7a68236c42acc72e500e120906230a637305f418)

23 years agoPatched to ensure that it won't break HEAD.
Christopher R. Hertel [Wed, 29 Aug 2001 03:30:52 +0000 (03:30 +0000)]
Patched to ensure that it won't break HEAD.

This isn't the final version, of course, I still need to get WINS failover
working.  This is just patched so it won't need lp_wins_server() (which I
renamed to lp_wins_server_list()).

I can't compile just now as something else is broken in HEAD.  Let me know
if this version of namequery.c causes trouble down the line.  Shouldn't,
as the changes are very small, but I've been known to rock the boat
before.

Chris -)-----
(This used to be commit 29c6efc9564e51dc28e8434bdc86079c6502d73d)

23 years agolp_wins_server() is now lp_wins_server_list().
Christopher R. Hertel [Wed, 29 Aug 2001 02:49:14 +0000 (02:49 +0000)]
lp_wins_server() is now lp_wins_server_list().

This should make it clear that the meaning of the parameter value has
changed.  It no longer represents *the* WINS server, but a list of WINS
servers.

I have made other changes in the code such that the lp_wins_server()
function is no longer necessary.  Whenever smb.conf is reloaded the list
managed by lib/wins_srv.c is refreshed.  The wins_srv_count() function
returns the number of entries in the list so, if the list is empty, it
will return 0 (which can be interpreted as "false" in an if() statement).

Chris -)-----
(This used to be commit 968c947e8bb35cf2441f3ebbb234429f5c1733c6)

23 years agoOuch ! I didn't think I would have to do that: add 2 new rap calls !
Jean-François Micouleau [Tue, 28 Aug 2001 16:05:55 +0000 (16:05 +0000)]
Ouch ! I didn't think I would have to do that: add 2 new rap calls !

It's a quick and ugly hack as a proof of concept: the dell powervault 705
works with a samba PDC.

I'll do a correct user enumeration later.

J.F.
(This used to be commit 9ec6a8735682c7dfe9f8573f063da7625d425d8a)

23 years agoAdded additional objects to rpcclient for sam sync/repl support.
Tim Potter [Tue, 28 Aug 2001 06:46:28 +0000 (06:46 +0000)]
Added additional objects to rpcclient for sam sync/repl support.

Added bin/samsync target.
(This used to be commit 9c8276dfec2872ed4250a84f48dbb60907aefc4b)

23 years agoStart of samsync program invoked by smbd to perform sam synchronisation and
Tim Potter [Tue, 28 Aug 2001 06:44:54 +0000 (06:44 +0000)]
Start of samsync program invoked by smbd to perform sam synchronisation and
sam replication.  It doesn't work yet.  (-:
(This used to be commit c96aae613dfe97808dedffc836c5d4cc9ae52185)