kai/samba.git
19 years agoAllow us to vary the log-level, so we can run at level 1 normally,
Andrew Bartlett [Thu, 5 Jul 2001 11:34:50 +0000 (11:34 +0000)]
Allow us to vary the log-level, so we can run at level 1 normally,
and push it to 10 when we fail (we redo the test).

Also disable the server-level security testing till it know what it does

Andrew Bartlett
(This used to be commit 805c20452e98c5e3d3fb24537ce722d4318ffa90)

19 years agothis fixes the failure of MS office on VFAT partitions on Linux
Andrew Tridgell [Thu, 5 Jul 2001 10:33:10 +0000 (10:33 +0000)]
this fixes the failure of MS office on VFAT partitions on Linux

The problem is that ftruncate can't expand on VFAT, but it can on
ext2. That means our autoconf test is useless. I have recoded it to
use the alternative to ftruncate when then sys_ftruncate fails.

Jeremy, do you want this for 2.2.1?
(This used to be commit 970236ee9926b64c0b39bd8a36b2a9317206873c)

19 years agoRenamed formal parameter fd to fnum because we're talking about SMB file
Tim Potter [Thu, 5 Jul 2001 08:24:03 +0000 (08:24 +0000)]
Renamed formal parameter fd to fnum because we're talking about SMB file
handles, not unix ones.
(This used to be commit 974790e45e6774a0e8ca3f8bb73ea941457e0866)

19 years agoadded line-feed at end of templates
Andrew Tridgell [Thu, 5 Jul 2001 06:51:47 +0000 (06:51 +0000)]
added line-feed at end of templates
(This used to be commit fe5d38780fe2998576ed0ddbec6996d32cbda4a1)

19 years agofixed a bug in the parameters SMBctemp uses in open_file_shared()
Andrew Tridgell [Thu, 5 Jul 2001 06:39:15 +0000 (06:39 +0000)]
fixed a bug in the parameters SMBctemp uses in open_file_shared()
(This used to be commit a1dee993cbf52e7232b65323430c8574843eb168)

19 years agofixed compilation of masktest on AIX
Andrew Tridgell [Thu, 5 Jul 2001 05:53:08 +0000 (05:53 +0000)]
fixed compilation of masktest on AIX
(This used to be commit 832a91bbe643ba816407965863b8fa3bb5b8730c)

19 years agouse alpha_strcpy on DNS names
Andrew Tridgell [Thu, 5 Jul 2001 04:44:09 +0000 (04:44 +0000)]
use alpha_strcpy on DNS names
(This used to be commit f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6)

19 years agouse alpha_strcpy on the domain as it comes off the wire
Andrew Tridgell [Thu, 5 Jul 2001 04:34:50 +0000 (04:34 +0000)]
use alpha_strcpy on the domain as it comes off the wire
(This used to be commit 3b9eb528f56b325399e5a4588242bb6d9f9226e2)

19 years agooptimised the 7 bit case for utf8 conversion
Andrew Tridgell [Thu, 5 Jul 2001 00:57:42 +0000 (00:57 +0000)]
optimised the 7 bit case for utf8 conversion
(This used to be commit 0c61e54f152eca6b7607fcce9ea512bc60a19060)

19 years agomake sure we reset the shift state on error for charsets like SJIS
Andrew Tridgell [Thu, 5 Jul 2001 00:04:30 +0000 (00:04 +0000)]
make sure we reset the shift state on error for charsets like SJIS
(This used to be commit 42648a7aada48220fdfaf6acfe95b9614122f1da)

19 years agoallow to use usrmgr/svrmgr tools in win95
Jean-François Micouleau [Wed, 4 Jul 2001 21:57:03 +0000 (21:57 +0000)]
allow to use usrmgr/svrmgr tools in win95

pretty cool
(This used to be commit 04575ff17b9b5fe802e66bb8dd1948317ab35485)

19 years agounicode string length is twice longer ;-)
Jean-François Micouleau [Wed, 4 Jul 2001 18:57:16 +0000 (18:57 +0000)]
unicode string length is twice longer ;-)
(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)

19 years agoadded builtin support for UTF8
Andrew Tridgell [Wed, 4 Jul 2001 15:08:30 +0000 (15:08 +0000)]
added builtin support for UTF8
(This used to be commit 76d83e7f704cf016308dccaad9bc42d57db97686)

19 years agomore portability fixes
Andrew Tridgell [Wed, 4 Jul 2001 14:41:06 +0000 (14:41 +0000)]
more portability fixes
(This used to be commit bf818268516cfbebcdeacbb0528395e9bbb8e442)

19 years agoportability fixes
Andrew Tridgell [Wed, 4 Jul 2001 12:16:24 +0000 (12:16 +0000)]
portability fixes
(This used to be commit 7a5c24c219d8b19f2c3cd11fdde3ebcede0646a2)

19 years agogot rid of __FUNCTION__ debug
Andrew Tridgell [Wed, 4 Jul 2001 08:03:47 +0000 (08:03 +0000)]
got rid of __FUNCTION__ debug
(This used to be commit 815ca752744c2ae93390445f4bb6532d396bbc59)

19 years agofixed uninitialised variable
Andrew Tridgell [Wed, 4 Jul 2001 07:50:54 +0000 (07:50 +0000)]
fixed uninitialised variable
(This used to be commit a03992f19b268ca212ada5869c6fc93da5ac3c35)

19 years agowe don't need the codepage sources any more
Andrew Tridgell [Wed, 4 Jul 2001 07:42:57 +0000 (07:42 +0000)]
we don't need the codepage sources any more
(This used to be commit 8dbee134b99c8f87e6e591ffd52edd1f71c0aaec)

19 years agowe don't need the codepages any more
Andrew Tridgell [Wed, 4 Jul 2001 07:41:37 +0000 (07:41 +0000)]
we don't need the codepages any more
(This used to be commit fa18e842f8f8f7d7f7a0674cdf375b398f655745)

19 years agomissed a couple of strchr calls
Andrew Tridgell [Wed, 4 Jul 2001 07:39:01 +0000 (07:39 +0000)]
missed a couple of strchr calls
(This used to be commit 57e7df8ae58020ab653307c1fdfbadd44983e900)

19 years agostrchr and strrchr are macros when compiling with optimisation in gcc, so we can...
Andrew Tridgell [Wed, 4 Jul 2001 07:36:09 +0000 (07:36 +0000)]
strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)

19 years agoThe big character set handling changeover!
Andrew Tridgell [Wed, 4 Jul 2001 07:15:53 +0000 (07:15 +0000)]
The big character set handling changeover!

This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267960e56005a741817ebd227ecfc512a)

19 years agoThis brings HEAD into line with SAMBA_2_2, they now both use bindir.
Andrew Bartlett [Wed, 4 Jul 2001 06:31:15 +0000 (06:31 +0000)]
This brings HEAD into line with SAMBA_2_2, they now both use bindir.

Andrew Bartlett
(This used to be commit cfd81e62c81dcb114e2c9f917a01168273bf75b0)

19 years agoremoved some debug code
Andrew Tridgell [Wed, 4 Jul 2001 04:39:52 +0000 (04:39 +0000)]
removed some debug code
(This used to be commit 1f6240daae4c5503d6fbb846d89cae986e010fc8)

19 years agocheck for bad usernames early in session setup
Andrew Tridgell [Wed, 4 Jul 2001 04:17:58 +0000 (04:17 +0000)]
check for bad usernames early in session setup
(This used to be commit 657836599a847578096696af27cd7c9f0d52c931)

19 years agoRemoved bogus server_n local variable in connect_one() function.
Tim Potter [Wed, 4 Jul 2001 04:04:17 +0000 (04:04 +0000)]
Removed bogus server_n local variable in connect_one() function.
(This used to be commit 69d90a8af167d53ebdb6d7aeef41b28b672288d1)

19 years agoEnsure we correctly round down to 2 second boundary if dos filetime
Jeremy Allison [Wed, 4 Jul 2001 01:01:02 +0000 (01:01 +0000)]
Ensure we correctly round down to 2 second boundary if dos filetime
set for a share.
Jeremy.
(This used to be commit 8f57233c0f871763bc3657d754c894dbd29ae501)

19 years agoSmall warning removal tidyup.
Jeremy Allison [Tue, 3 Jul 2001 22:00:11 +0000 (22:00 +0000)]
Small warning removal tidyup.
Jeremy.
(This used to be commit 5cf7bc582bc2dc4fa7be43d87c81e94f6dd00573)

19 years agoRemove the exit_server() calls that stop nmbd linking.
Jeremy Allison [Tue, 3 Jul 2001 21:32:23 +0000 (21:32 +0000)]
Remove the exit_server() calls that stop nmbd linking.
Jeremy.
(This used to be commit 110061ff5a0de7a5d7c5ee003d85d4d600c2531c)

19 years agoFixed warnings and made const-safe so it has the correct prototype.
Jeremy Allison [Tue, 3 Jul 2001 21:07:26 +0000 (21:07 +0000)]
Fixed warnings and made const-safe so it has the correct prototype.
Jeremy.
(This used to be commit e0f6863a1155db5206c103c29dc597d7c297ec11)

19 years agoRemoved the default addition of /include to the directory given in
Jeremy Allison [Tue, 3 Jul 2001 19:34:18 +0000 (19:34 +0000)]
Removed the default addition of /include to the directory given in
--with-sslinc. Should allow building on RH7.1 when set correctly.
Jeremy.
(This used to be commit 016a97d71aa1ac9de782248c645aecbf22ed647b)

19 years agoUpdated to latest from gnu.org.
Jeremy Allison [Tue, 3 Jul 2001 18:34:41 +0000 (18:34 +0000)]
Updated to latest from gnu.org.
Jeremy.
(This used to be commit 03e1d4428e6efb3f231cdfc6820fe5039b3ef494)

19 years agoAdded #define of int32 to int for cray. This will almost certainly cause
Jeremy Allison [Tue, 3 Jul 2001 18:33:16 +0000 (18:33 +0000)]
Added #define of int32 to int for cray. This will almost certainly cause
the rpc code to fail on the cray....
Jeremy.
(This used to be commit 33a299a0c42bb7090e2030fb1e5cafdf07346bc6)

19 years agoFixed incorrect debug parameters for lock_pid.
Jeremy Allison [Tue, 3 Jul 2001 17:40:43 +0000 (17:40 +0000)]
Fixed incorrect debug parameters for lock_pid.
Jeremy.
(This used to be commit 310d2af6b0797cbd4f776b5c6c5b90a5d86b1aa9)

19 years agoSplit pam_winbind out of WINBIND progs so it can be build separately
Tim Potter [Tue, 3 Jul 2001 06:46:37 +0000 (06:46 +0000)]
Split pam_winbind out of WINBIND progs so it can be build separately
only if --with-pam is specified.
(This used to be commit 3fd2387a952484c27c580c896b6bc1456aa96365)

19 years agoSee if we can stick to slightly valid C..
Andrew Bartlett [Tue, 3 Jul 2001 04:29:50 +0000 (04:29 +0000)]
See if we can stick to slightly valid C..

(With thanks to tpot)

Andrew Bartlett
(This used to be commit e77cfe1379d92d2be4e2895454e14d11311a913d)

19 years agoFixed incorrect comment for cli_NetServerEnum()
Tim Potter [Tue, 3 Jul 2001 04:09:09 +0000 (04:09 +0000)]
Fixed incorrect comment for cli_NetServerEnum()
(This used to be commit 0a505e50a5059930de6583918f25ef84af53de0e)

19 years agoRunning torture-RANDOMIPC on the build farm doesn't go down as a 'good idea' as its...
Andrew Bartlett [Tue, 3 Jul 2001 04:06:10 +0000 (04:06 +0000)]
Running torture-RANDOMIPC on the build farm doesn't go down as a 'good idea' as its logsfiles are BIG!
(This used to be commit bc6160a48282f026845476e632fe365ff2fd63d2)

19 years agofixed socketpair_tcp for OpenBSD
Andrew Tridgell [Tue, 3 Jul 2001 03:56:49 +0000 (03:56 +0000)]
fixed socketpair_tcp for OpenBSD
(This used to be commit d99ce6a5e3455ed38ca3c1ac676b5048edf8c706)

19 years agoReran autoconf.
Tim Potter [Tue, 3 Jul 2001 02:46:50 +0000 (02:46 +0000)]
Reran autoconf.
(This used to be commit 547d63c60a9c0588d5263d5c0384e0198aa18be9)

19 years agoFixed quoting bug - shell programming sucks.
Tim Potter [Tue, 3 Jul 2001 02:27:17 +0000 (02:27 +0000)]
Fixed quoting bug - shell programming sucks.
(This used to be commit 60d42618416295a8fc25a461a8b4783bb219d6a7)

19 years agoAdding Michael Sweet's LSB packaging.
Jeremy Allison [Tue, 3 Jul 2001 01:01:12 +0000 (01:01 +0000)]
Adding Michael Sweet's LSB packaging.
Jeremy.
(This used to be commit 90985da62f733bed550ef326359bdbb8631ea554)

19 years ago- sorry, forgot to check a pointer
Simo Sorce [Tue, 3 Jul 2001 00:54:55 +0000 (00:54 +0000)]
- sorry, forgot to check a pointer
(This used to be commit 4e0299d4c091bc4a63740f12588675507601e8cd)

19 years agoApplied Michael Sweet's patch, with one minor signal change.
Jeremy Allison [Tue, 3 Jul 2001 00:52:56 +0000 (00:52 +0000)]
Applied Michael Sweet's patch, with one minor signal change.
Jeremy.
(This used to be commit 8d1dab74c26d25938de14b34b383890731e9ebd0)

19 years ago- sorry, forgot to test a pointer
Simo Sorce [Tue, 3 Jul 2001 00:23:38 +0000 (00:23 +0000)]
- sorry, forgot to test a pointer
(This used to be commit 1aef52245229741bc24c3e8147fa86eaa20fe9b2)

19 years agoMade talloc_realloc() semantics match realloc(). JF was complaining :-).
Jeremy Allison [Mon, 2 Jul 2001 22:17:58 +0000 (22:17 +0000)]
Made talloc_realloc() semantics match realloc(). JF was complaining :-).
realloc(NULL) == malloc. realloc(p,0) == free() - a no-op in talloc.
Jeremy.
(This used to be commit 1ab31e5db53bc839d2785cce4d3c739c8004bbf6)

19 years agoMissing prs_align() was causing Win9x nexus tools to fail. security_info_sent
Jeremy Allison [Mon, 2 Jul 2001 21:56:20 +0000 (21:56 +0000)]
Missing prs_align() was causing Win9x nexus tools to fail. security_info_sent
was being miss-parsed.
Jeremy.
(This used to be commit 1685e41da04f1fbbab036e194ce1b1e7ba9fef86)

19 years agoFixed auto-alloc of dispinfo code when unmarshalling.
Jeremy Allison [Mon, 2 Jul 2001 21:23:13 +0000 (21:23 +0000)]
Fixed auto-alloc of dispinfo code when unmarshalling.
Jeremy.
(This used to be commit d4872c94c2e6b63be0fb12e5dd2d0459fda54959)

19 years agoFixed extra file_free calls - my fault :-(.
Jeremy Allison [Mon, 2 Jul 2001 18:37:39 +0000 (18:37 +0000)]
Fixed extra file_free calls - my fault :-(.
Jeremy.
(This used to be commit 2f8b84bda040edc87a7af29c3a281cf335e392cb)

19 years agoVery minor cleanup. I was looking for another problem and found some bits
Christopher R. Hertel [Mon, 2 Jul 2001 16:25:00 +0000 (16:25 +0000)]
Very minor cleanup.  I was looking for another problem and found some bits
of code that were unclear.

Chris -)-----
(This used to be commit c2977be3408645499915d728538ba2c65b97614f)

19 years agoThis fix from Eelco Vriezekolk <eelco@nexus.com.na> is for a SIG11 bug where we
Andrew Bartlett [Mon, 2 Jul 2001 13:43:46 +0000 (13:43 +0000)]
This fix from Eelco Vriezekolk <eelco@nexus.com.na> is for a SIG11 bug where we
would always file_free(fsp) twice, once in close_file and once afterwoulds.

The bug was reported in SAMBA_2_2, but a code inspection shows it to be in HEAD
as well.  (Unfortunetly I don't have the facilites to actualy check this, but
the change is quite simple, makes sence and compiles).

Andrew Bartlett
(This used to be commit 5d3f622375842961a79536d36ee6f6ad508b91f1)

19 years agoFix the torture test, we had the wrong file-name in the tests
Andrew Bartlett [Mon, 2 Jul 2001 09:10:32 +0000 (09:10 +0000)]
Fix the torture test, we had the wrong file-name in the tests

Andrew Bartlett
(This used to be commit d04ea88b5d4b010d77dec45104dcf6a2b5a071f2)

19 years agoRe-ran configure.
Tim Potter [Mon, 2 Jul 2001 09:10:15 +0000 (09:10 +0000)]
Re-ran configure.
(This used to be commit 33f668b137054f3eb768036398693a3b754158c3)

19 years agoOnly build the pam_winbind module if --with-pam used.
Tim Potter [Mon, 2 Jul 2001 08:58:57 +0000 (08:58 +0000)]
Only build the pam_winbind module if --with-pam used.

Replaced extra shell variable with_pam_for_crypto with a check against
$with_pam
(This used to be commit 9db0332954e8b37fa5162b26d78de42a7fa533ae)

19 years agoWe need strict locking to pass LOCK4
Andrew Bartlett [Mon, 2 Jul 2001 07:20:00 +0000 (07:20 +0000)]
We need strict locking to pass LOCK4

Andrew Bartlett
(This used to be commit 584a14a2163a22d6a532c926040f4f9bcc34463d)

19 years agoStart of smbtorture based testing. Not all of smbtorture's facilites
Andrew Bartlett [Mon, 2 Jul 2001 07:18:49 +0000 (07:18 +0000)]
Start of smbtorture based testing.  Not all of smbtorture's facilites
are used, but these ones should pass.

Andrew Bartlett
(This used to be commit eee251f71071034b6d1a74d192cdabe8e24dc08b)

19 years agoNot all OSs have setbuffer, so we better check for it.
Andrew Bartlett [Mon, 2 Jul 2001 04:47:55 +0000 (04:47 +0000)]
Not all OSs have setbuffer, so we better check for it.

Andrew Bartlett
(This used to be commit aa5708de69a71e6b41a12f63550fae94f2481742)

19 years agoMake smbtorture return status values for use in the build_farm tests.
Andrew Bartlett [Mon, 2 Jul 2001 03:21:17 +0000 (03:21 +0000)]
Make smbtorture return status values for use in the build_farm tests.

This should not have changed behaviour, and it has been tested.

Andrew Bartlett
(This used to be commit a73aefef09804bf95eec1449f75adc5ff5e032d0)

19 years agoFixed the nastiest locking bug to track down.... smb_pids are sent in the
Jeremy Allison [Mon, 2 Jul 2001 02:42:41 +0000 (02:42 +0000)]
Fixed the nastiest locking bug to track down.... smb_pids are sent in the
lockingX calls - use that instead of smb_pid in the packet.
Jeremy.
(This used to be commit a3925cb9c6303ce24e5fecad6c8f3a0ba78b9ee0)

19 years agoInsure caught the fact that PTRDIFFs were being done between two unrelated
Jeremy Allison [Mon, 2 Jul 2001 00:33:15 +0000 (00:33 +0000)]
Insure caught the fact that PTRDIFFs were being done between two unrelated
pointers.
Jeremy.
(This used to be commit 15c64199cb29e2fca6ee7353673dbb3f962e0e24)

19 years ago"netbios aliases" and "interfaces" options change from P_STRING to P_LIST
Simo Sorce [Sun, 1 Jul 2001 23:24:08 +0000 (23:24 +0000)]
"netbios aliases" and "interfaces" options change from P_STRING to P_LIST
(This used to be commit db36ed1d80fcbee16d0a0b5f226e56961f3bf1ec)

19 years agoFix for building --with-profile for new vfscalls.
Jeremy Allison [Sun, 1 Jul 2001 20:01:32 +0000 (20:01 +0000)]
Fix for building --with-profile for new vfscalls.
Jeremy.
(This used to be commit 33dc250ebb389f331cecf47101cf13c630be3a11)

19 years agocli_read() was reading too many bytes.
Andrew Tridgell [Sun, 1 Jul 2001 13:18:35 +0000 (13:18 +0000)]
cli_read() was reading too many bytes.
(This used to be commit ba79d2a030b9ae087f0cc4248baa6cf6bee112fb)

19 years ago- fix bug in reply_nt- fix bug in reply_nt1
Simo Sorce [Sun, 1 Jul 2001 10:39:37 +0000 (10:39 +0000)]
- fix bug in reply_nt- fix bug in reply_nt1
(This used to be commit 200110a3b4caeb0d8be87f02476af29165e35ada)

19 years agoMake sure we compile with gcc by default.
Richard Sharpe [Sat, 30 Jun 2001 11:08:06 +0000 (11:08 +0000)]
Make sure we compile with gcc by default.
(This used to be commit 93c45024cdbbf51322106e2a5961db8c09618833)

19 years agoAdd a static linking target to the examples Makefile so I can test out static linking ...
Richard Sharpe [Sat, 30 Jun 2001 04:01:51 +0000 (04:01 +0000)]
Add a static linking target to the examples Makefile so I can test out static linking ...
(This used to be commit 9627bace72eb3be322f8895b055a31768e551136)

19 years agoEnsure we return correct error on trying to unlock a region not locked.
Jeremy Allison [Sat, 30 Jun 2001 03:11:44 +0000 (03:11 +0000)]
Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
(This used to be commit 015a077acc49e59179dc10256fd32166ee4623e2)

19 years agoFix another small problem with Makefile.in ... not doing the correct
Richard Sharpe [Sat, 30 Jun 2001 03:01:09 +0000 (03:01 +0000)]
Fix another small problem with Makefile.in ... not doing the correct
check for whether or not we should build a shared library.
(This used to be commit 09837044a2aa47a61d635316afa38645855db512)

19 years agoThis should return the build to normallity.
Andrew Bartlett [Sat, 30 Jun 2001 02:45:16 +0000 (02:45 +0000)]
This should return the build to normallity.

When you update an #ifdef'ed function, also update its matching null function
or all hell breaks loose on the build farm!

Andrew Bartlett
(This used to be commit 58b981a56f99bce0e98c9e1752c99a69e3cb2a25)

19 years agoFixed the first locking error (test #8 found by locktest code from
Jeremy Allison [Sat, 30 Jun 2001 01:59:48 +0000 (01:59 +0000)]
Fixed the first locking error (test #8 found by locktest code from
Clarion locktest.
Jeremy.
(This used to be commit 5c42845b5bb6fafd0ebf93fbdd23d9bf861da865)

19 years agoModified Makefile.in to work properly. Define BLDSHARED as a variable in the makefile...
Richard Sharpe [Sat, 30 Jun 2001 01:40:51 +0000 (01:40 +0000)]
Modified Makefile.in to work properly. Define BLDSHARED as a variable in the makefile now.
(This used to be commit 332f646fdc25ae4fe3797ad6c85d4637f0dba0e3)

19 years agoThese changes cause the libsmbclient stuff to always build a non-shared library and...
Richard Sharpe [Fri, 29 Jun 2001 23:30:01 +0000 (23:30 +0000)]
These changes cause the libsmbclient stuff to always build a non-shared library and to build a shared library only for the four OSes that we currently like.

I will probably add HP/UX and AIX support based on the CUPS stuff soon ...
(This used to be commit 9585529455ae4a3e9b4dafc5f16286fabb052809)

19 years agoAdded LsaGetConnectedCredentials patch from Manoj Naik <manoj@almaden.ibm.com>.
Jeremy Allison [Fri, 29 Jun 2001 23:12:55 +0000 (23:12 +0000)]
Added LsaGetConnectedCredentials patch from Manoj Naik <manoj@almaden.ibm.com>.
Jeremy.
(This used to be commit 7079300da6dbd950e55dc5871851250d5a3717ff)

19 years agoEnsured all the system calls in msdfs.c go through the vfs layer.
Jeremy Allison [Fri, 29 Jun 2001 22:32:24 +0000 (22:32 +0000)]
Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
(This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)

19 years agoFrom JF....
Jeremy Allison [Fri, 29 Jun 2001 18:41:31 +0000 (18:41 +0000)]
From JF....

hi jeremy,

can you commit the following patch against HEAD. I can't do it right now

Thanks Tim for me. He changed the SAM_DISPINFO_1 array without checking if
he didn't break the server code. And he did.

So on my way I cleaned info_1, 2, .. 5

it may break winbind. I leave to tim the pleasure to fix it ;-)

        jf.

I added some talloc changes and checks for alloc fails.

Jeremy.
(This used to be commit 001e9b7b540f04c80ba65c879aaa41acddc86f3e)

19 years agoExperimental support for joining a domain without creating an account in
Tim Potter [Fri, 29 Jun 2001 08:04:12 +0000 (08:04 +0000)]
Experimental support for joining a domain without creating an account in
server manager first.  Just use the -U parameter to smbpasswd when joining
the domain:

smbpasswd -r PDC -j DOMAIN -U administrator%password

Should also work with domain users with the 'add workstation to domain'
user right.
(This used to be commit 937b96feaa276f8dd626f2d640f03dc4c55f48c6)

19 years agoRemoved another silly static array.
Tim Potter [Fri, 29 Jun 2001 07:55:41 +0000 (07:55 +0000)]
Removed another silly static array.
(This used to be commit 008628fb8ac9f92d984218f37fffdfa3cb9e3d62)

19 years agoWin9x weirdness. When setting the named pipe handle state on a Unicode
Tim Potter [Fri, 29 Jun 2001 01:58:48 +0000 (01:58 +0000)]
Win9x weirdness.  When setting the named pipe handle state on a Unicode
server, Win9x only sends \PIPE instead of \PIPE\.  Looks suspiciously like
an off-by one bug in the Win9x dce/rpc pipe code.
(This used to be commit b4a9079833c261705e18fdcaab752cb5292a078f)

19 years agoReplaced memcpy() with memmove() to make safe_strcpy() safe for overlapping
Tim Potter [Fri, 29 Jun 2001 01:15:28 +0000 (01:15 +0000)]
Replaced memcpy() with memmove() to make safe_strcpy() safe for overlapping
source and destination.
(This used to be commit 30411d4004ce7062e73506d228ef402b99226eee)

19 years agoUse a logical cli_read(), removed the cli_read_one() hack.
Jeremy Allison [Fri, 29 Jun 2001 00:22:22 +0000 (00:22 +0000)]
Use a logical cli_read(), removed the cli_read_one() hack.
Jeremy.
(This used to be commit 2999eab5abe86bf08e693800c01ad544f04e4d6c)

19 years agoparam/loadparm.c: Fix for bad volume label, found by TAKAHASHI Motonobu
Jeremy Allison [Thu, 28 Jun 2001 23:21:43 +0000 (23:21 +0000)]
param/loadparm.c: Fix for bad volume label, found by TAKAHASHI Motonobu
Samba Users Group Japan. Ensure same as in 2.2.x codebase.
Jeremy.
(This used to be commit 5a5d33b9464fe6289e55dbfd229d2859914b9293)

19 years agoAdded info to some of the debug messages to get a better handle on a problem
Christopher R. Hertel [Thu, 28 Jun 2001 20:49:47 +0000 (20:49 +0000)]
Added info to some of the debug messages to get a better handle on a problem
people are reporting regarding multiple responses to queries on <1D> names.

There should only ever be one LMB but some users are seeing multiple replies
to queries for the LMB name.  This is probably due to nodes on the LAN that
have NetBIOS over NetBEUI and/or IPX enabled.  Previously, the debug message
did not include the IP address associated with the name.  It *did* include
the source address of the packet, but in the examples I've seen all of these
were the same, eg:

[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (2) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (3) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (4) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (5) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24

Note that all of the above are reported as having come from 129.130.10.24.
This should never happen.  If 129.130.10.24 is a WINS server it should
send a Negative Name Query Response for a <1D> name query (wierd but true).

So, are all of the above coming from different systems, all of which
think are the LMB?  Are they all coming from one system that is, for some
strange reason, replying five times to the same query?

Anyway, I needed more info so I've changed the debug messages.

Chris -)-----
(This used to be commit 8f2f09af0a0a80cacef933ed500884e2c0b3f2fb)

19 years agoProperly instrument print_job_start()/print_job_end() so every fail case
Jeremy Allison [Thu, 28 Jun 2001 19:23:43 +0000 (19:23 +0000)]
Properly instrument print_job_start()/print_job_end() so every fail case
logs a debug. We need this to track fail cases.
Jeremy
(This used to be commit fe5cac150d7491a7dfdaf2a54998178bbfe5a303)

19 years agofixed guest account for build farm boxes
Andrew Tridgell [Thu, 28 Jun 2001 05:57:56 +0000 (05:57 +0000)]
fixed guest account for build farm boxes
(This used to be commit 0d112d7960353b33e9c5015c39a107a47e6f690d)

19 years agotemporarily made smbclient a non-error target so that builds will succeed when it...
Andrew Tridgell [Thu, 28 Jun 2001 03:03:11 +0000 (03:03 +0000)]
temporarily made smbclient a non-error target so that builds will succeed when it fails. This will give richard a chance to fix problems without breaking the tree
(This used to be commit 83d0dc4b53231b05588b7341540c0e4ba1f430b1)

19 years agoSyncup between 2.2 and HEAD.
Jeremy Allison [Wed, 27 Jun 2001 17:26:29 +0000 (17:26 +0000)]
Syncup between 2.2 and HEAD.
Jeremy.
(This used to be commit 39d4131a4571c9c7a96bdc2f6cd6be80a6c330af)

19 years agoJigger around with the tests a bit more
Andrew Bartlett [Wed, 27 Jun 2001 13:58:58 +0000 (13:58 +0000)]
Jigger around with the tests a bit more

We now test security=share, security=user, security=server for both the
positive and negitive case (good/bad pw) and check that guest shares work for
share level security.

The server level security stuff seems to test positive without actualy
contating a server (another LIBSMB_PROG based smbd) - I will need to look into that...

Andrew Bartlett
(This used to be commit 19fdc553d6ab06e53c21425468f86da56f4d9153)

19 years agoon sco2 socketpair_tcp needs a bind
Andrew Tridgell [Wed, 27 Jun 2001 13:58:44 +0000 (13:58 +0000)]
on sco2 socketpair_tcp needs a bind
(This used to be commit d8e5409ebb883844d9a1abc9840af1809957a444)

19 years agohandle EISCONN in socketpair_tcp
Andrew Tridgell [Wed, 27 Jun 2001 10:44:14 +0000 (10:44 +0000)]
handle EISCONN in socketpair_tcp

this should get the auto-tests working on IRIX
(This used to be commit 87f90d48d857828a6ed12bdc58d0d881be45dfce)

19 years agoAdd the generic funcions file for the basicsmb tests
Andrew Bartlett [Wed, 27 Jun 2001 07:59:09 +0000 (07:59 +0000)]
Add the generic funcions file for the basicsmb tests

Andrew Bartlett
(This used to be commit b28baf71a7d947cfe8bda546f4e70194da0781da)

19 years agoAdded some missing entries to usage().
Tim Potter [Wed, 27 Jun 2001 04:43:55 +0000 (04:43 +0000)]
Added some missing entries to usage().

Added -d option to set debug level.
(This used to be commit 9874df0c2242ee46182744eabae14829c3b5f21e)

19 years agoAdded back the automatic build of libsmbclient.so in head.
Richard Sharpe [Wed, 27 Jun 2001 04:41:01 +0000 (04:41 +0000)]
Added back the automatic build of libsmbclient.so in head.

This is so I can find out what platforms it fails on. I will pull it again tomorrow if there are too many problems, like > 2 platforms that it fails to build on, but will pop it back in again as I resolve platforms.
(This used to be commit cc72c44e53a36f3da135f4dc10a9391f65c8b6c7)

19 years agoAdded doco for the -d parameter.
Tim Potter [Wed, 27 Jun 2001 04:40:12 +0000 (04:40 +0000)]
Added doco for the -d parameter.
(This used to be commit d8598efb5712c35cc0b59b4e232e3869077d11eb)

19 years agoFix a stupid typo ...
Richard Sharpe [Wed, 27 Jun 2001 04:06:13 +0000 (04:06 +0000)]
Fix a stupid typo ...
(This used to be commit 8a873b5dfb52393541c36fea0a5082771a6c8d63)

19 years agoChanged some of the tests around, made failures for parts actualy count
Andrew Bartlett [Wed, 27 Jun 2001 00:32:52 +0000 (00:32 +0000)]
Changed some of the tests around, made failures for parts actualy count

Andrew Bartlett
(This used to be commit 56a881b2b4957912055fdf053ef37ca2ea3606b8)

19 years agoSGI compiler fixes.
Herb Lewis [Tue, 26 Jun 2001 20:23:45 +0000 (20:23 +0000)]
SGI compiler fixes.
Jeremy
(This used to be commit 45bf995bf62aa6cc176d57e2f954cc2d379717ef)

19 years agoAdd check for working AF_LOCAL sockets, which are borken
Martin Pool [Tue, 26 Jun 2001 07:44:02 +0000 (07:44 +0000)]
Add check for working AF_LOCAL sockets, which are borken
on RH7.0 with _LARGEFILE64_SOURCE, and probably not
present on non-Unix systems like VMS.
(This used to be commit 8b0a5bc436fb44f5123d037b102f2d2c4d3287e8)

19 years agoAdded the basic tests of smb functionality for HEAD
Andrew Bartlett [Tue, 26 Jun 2001 07:41:40 +0000 (07:41 +0000)]
Added the basic tests of smb functionality for HEAD

This works with the new build farm system

Andrew Bartlett
(This used to be commit 542977bc4323e041512e91d7a38422e7abc4e5ae)

19 years agoEnsure we always have a valid pointer on unmarshalling an SD with zero
Jeremy Allison [Tue, 26 Jun 2001 06:31:55 +0000 (06:31 +0000)]
Ensure we always have a valid pointer on unmarshalling an SD with zero
ace entries.
Jeremy.
(This used to be commit 274c0f5028d41175222dfaaf446e3ed8f5687a5f)

19 years agoPut an 0x in front of a hex number.
Tim Potter [Tue, 26 Jun 2001 06:26:05 +0000 (06:26 +0000)]
Put an 0x in front of a hex number.
(This used to be commit a48d480ce986ff1c00f2c17f30f23723ce0bb044)