samba.git
25 years agoadded HAVE_FUNCTION_MACRO test
Andrew Tridgell [Thu, 30 Jul 1998 07:05:15 +0000 (07:05 +0000)]
added HAVE_FUNCTION_MACRO test
(This used to be commit cae580ccc397ea33fdb24a777bdedef6e8271244)

25 years agofixed sin_len test for FreeBSD
Andrew Tridgell [Thu, 30 Jul 1998 04:54:14 +0000 (04:54 +0000)]
fixed sin_len test for FreeBSD
(This used to be commit 15b666a0cebb994b6ed96c75716946afdbfa2861)

25 years agofixed a make proto bug pointed out by Chris.
Andrew Tridgell [Thu, 30 Jul 1998 01:49:58 +0000 (01:49 +0000)]
fixed a make proto bug pointed out by Chris.
(This used to be commit fc1947b52a37bf2c0739091f3dbd84c4a9781d93)

25 years agoupdated prototypes
Andrew Tridgell [Wed, 29 Jul 1998 07:11:33 +0000 (07:11 +0000)]
updated prototypes
(This used to be commit 0bdb51af3199eb32cd3da4c4b8d31fbed5d2ae85)

25 years agofixed a bug in the replacement inet_ntoa
Andrew Tridgell [Wed, 29 Jul 1998 07:07:08 +0000 (07:07 +0000)]
fixed a bug in the replacement inet_ntoa
(This used to be commit 32bd7137122eedf44dbb092da5ae3106d8fe994e)

25 years agotest for a broken inet_ntoa and replace it if necessary (for
Andrew Tridgell [Wed, 29 Jul 1998 07:02:06 +0000 (07:02 +0000)]
test for a broken inet_ntoa and replace it if necessary (for
IRIX+gcc-2.8.1)
(This used to be commit ddffbcbcb1284b6ead5f7f7b6665ba2456c0071a)

25 years agoignore the auto-generated dummy file
Andrew Tridgell [Wed, 29 Jul 1998 05:09:10 +0000 (05:09 +0000)]
ignore the auto-generated dummy file
(This used to be commit f4c629bde2bbcb0cfa4d6f5cb1aa7edddf569fac)

25 years agoadded Makefile to .cvsignore in the hope that this will prevent people
Andrew Tridgell [Wed, 29 Jul 1998 05:07:29 +0000 (05:07 +0000)]
added Makefile to .cvsignore in the hope that this will prevent people
from committing changes to it.
(This used to be commit a7d4e6697fb724def740b8bbfc3e88ae651cc20e)

25 years agoget rid of the runtime test for broken getgroups() and add a compile
Andrew Tridgell [Wed, 29 Jul 1998 05:05:36 +0000 (05:05 +0000)]
get rid of the runtime test for broken getgroups() and add a compile
time test instead. This also allows us to get rid of the igroups
element of a couple of structures.
(This used to be commit 8b25fe734166b76ceebf8d9543c706ebe0fddc96)

25 years agoremoved some feedback request comments - we get enough email :)
Andrew Tridgell [Wed, 29 Jul 1998 03:34:43 +0000 (03:34 +0000)]
removed some feedback request comments - we get enough email :)
(This used to be commit 19aa9a1c95d357e1041e9a3ece89d7bb3cc6f6ac)

25 years agoupdated the UNIX install instructions to include ./configure
Andrew Tridgell [Wed, 29 Jul 1998 03:34:08 +0000 (03:34 +0000)]
updated the UNIX install instructions to include ./configure
(This used to be commit 8d916f3fdb8eeea179f25028adc2a60f2e4e9b24)

25 years agohopefully permissions are right now
Andrew Tridgell [Wed, 29 Jul 1998 03:20:19 +0000 (03:20 +0000)]
hopefully permissions are right now
(This used to be commit e7b6e8ef618029e6b2c372afcbf3f158217b04bd)

25 years agostill trying to get permissions right - CVS doesn't commit permissions changes it...
Andrew Tridgell [Wed, 29 Jul 1998 03:19:10 +0000 (03:19 +0000)]
still trying to get permissions right - CVS doesn't commit permissions changes it seems
(This used to be commit 0cf6529341aa8023137222c94b0895ff555b8791)

25 years agocheckin configure again in order to get permissions right
Andrew Tridgell [Wed, 29 Jul 1998 03:16:09 +0000 (03:16 +0000)]
checkin configure again in order to get permissions right
(This used to be commit e16c467303884277c8e6acb6bffe01a27c5e853f)

25 years agosome merge cleanups
Andrew Tridgell [Wed, 29 Jul 1998 03:15:02 +0000 (03:15 +0000)]
some merge cleanups
(This used to be commit 1d655b7c64231b0aec0548bb90fc3dcc3f37791c)

25 years agomerge from the autoconf2 branch to the main branch
Andrew Tridgell [Wed, 29 Jul 1998 03:08:05 +0000 (03:08 +0000)]
merge from the autoconf2 branch to the main branch
(This used to be commit 3bda7ac417107a7b01d91805ca71c4330657ed21)

25 years agolocking.c: Print messages when we downgrade a lock.
Jeremy Allison [Wed, 29 Jul 1998 00:27:23 +0000 (00:27 +0000)]
locking.c: Print messages when we downgrade a lock.
reply.c: Do the same mask expansion we do in trans2.c - needed for Win98.
trans2.c: Make the mask expansion into a function call now we have to
          do it twice.
Jeremy.
(This used to be commit 7b3a9d6285cc0d1967155a68845e28c6296ecc67)

25 years agolocking.c: Don't need to do map_lock_type on *testing* a lock, just on setting.
Jeremy Allison [Tue, 28 Jul 1998 18:26:47 +0000 (18:26 +0000)]
locking.c: Don't need to do map_lock_type on *testing* a lock, just on setting.
Jeremy.
(This used to be commit 17f68cc86cafbb04dbd9cc6ecc0aac7b911c9b70)

25 years agoloadparm.c: Added strict sync parameter.
Jeremy Allison [Tue, 28 Jul 1998 18:15:31 +0000 (18:15 +0000)]
loadparm.c: Added strict sync parameter.
locking.c: Added code to deal with real open mode of file.
reply.c: Added strict sync parameter.
server.c: Added strict sync parameter. Fixed open modes.
Jeremy.
(This used to be commit ed57b603b5c9333d588e62d774ad2be67e43ffd9)

25 years agochgpasswd.c: Fixed up debug calls to stop crashes if ptsname failed.
Jeremy Allison [Mon, 27 Jul 1998 18:50:45 +0000 (18:50 +0000)]
chgpasswd.c: Fixed up debug calls to stop crashes if ptsname failed.
local.h: Kept FSTYPE_STRING as Samba for now.
nmbd_browsesync.c: Added bugfix from Matt Chapman mattyc@cyberdude.com
                   - lmb_browserlist is now a struct ubi_dlList not a
                   struct browse_cache_record *.
server.c:
smb.h:
uid.c:
password.c: Removed attrs code - it is not used anywhere.
Jeremy
(This used to be commit ef1af7fe6d5c58ae57b8e4efff0729e1a315da43)

25 years agoCleaned up some testing code and made it more "permanent" looking. The
Christopher R. Hertel [Sat, 25 Jul 1998 15:45:42 +0000 (15:45 +0000)]
Cleaned up some testing code and made it more "permanent" looking.  The
NetBIOS name lists attached to the subnet records are now managed by
the splay tree code.  I am still working on the WINS database as a
separate issue.  Code is written, it's just a matter of incorporating it.
CRH
(This used to be commit 5ba96ddde4a4b2da2cc09190f5c6f0e633852f12)

25 years agoNoticed that I was using the strlen() of a string that I had strdup()'d
Christopher R. Hertel [Sat, 25 Jul 1998 15:18:07 +0000 (15:18 +0000)]
Noticed that I was using the strlen() of a string that I had strdup()'d
before testing that the strdup() worked.  Fixed.
(This used to be commit 899d0d5de5dd9d080d5c4cb94874d4f939427d1b)

25 years agoConverted the browser database to a ubi_dLinkList. This should reduce code
Christopher R. Hertel [Fri, 24 Jul 1998 19:03:11 +0000 (19:03 +0000)]
Converted the browser database to a ubi_dLinkList.  This should reduce code
size, etc.  Also did a bit of work to add comments.
Chris -)-----
(This used to be commit d8b0a2104c05df957f0eb49c21388ec5a4858d98)

25 years agoChanged the definition of the linked list header used in the directory
Christopher R. Hertel [Fri, 24 Jul 1998 07:43:13 +0000 (07:43 +0000)]
Changed the definition of the linked list header used in the directory
cache so that it uses the new ubi_dlNewList() macro in ubi_dLinkList.h.
(This used to be commit 16f0ad0c913e2d5b0198409485c56ad4809ca077)

25 years agoTo each list type, I added a macro that makes it easier to define and
Christopher R. Hertel [Fri, 24 Jul 1998 07:39:14 +0000 (07:39 +0000)]
To each list type, I added a macro that makes it easier to define and
initialize a list header.
(This used to be commit 3c133778f13f690e70b8b5b923e10b5fe561c812)

25 years agoUpdates smbstatus to have a -S and -L flag.
Richard Sharpe [Fri, 24 Jul 1998 01:08:31 +0000 (01:08 +0000)]
Updates smbstatus to have a -S and -L flag.

Also updated the documentation :-)

The code is ugly, we need to rewrite smbstatus someday.
(This used to be commit a2a9f55a76fc16ef1d4656332ef6b1b455bb6259)

25 years agolocking.c: Added lock type to is_locked() and do_lock()
Jeremy Allison [Thu, 23 Jul 1998 00:10:26 +0000 (00:10 +0000)]
locking.c: Added lock type to is_locked() and do_lock()
           as the code in reply_lockingX wasn't taking account of
           the difference between read and write locks ! How did this
           ever work :-) !
reply.c:
server.c: Add lock type to is_locked() and do_lock().
util.c: Also added code from klausr@ITAP.Physik.Uni-Stuttgart.De
        to fix problem with log files growing too large if an
        smbd writes less than 100 debug messages.
Jeremy.
(This used to be commit 80080abf772a470d5f0f4dcd4a75fb2a09a9fb2a)

25 years agoFixed bug found by Richard Sharpe. After increasing files_struct size by
Jeremy Allison [Wed, 22 Jul 1998 13:59:19 +0000 (13:59 +0000)]
Fixed bug found by Richard Sharpe. After increasing files_struct size by
MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that
enumerates the array.
Created new MAX_FNUMS in local.h, changed all code that iterates
through the files_struct array to use this.
(sorry Richard).
Jeremy.
(This used to be commit 339b10222269d71c7a493cc08b7b1bfd35fd55fc)

25 years agoincludes.h: Added feature type USE_GRANTPT for pty code.
Jeremy Allison [Wed, 22 Jul 1998 01:31:59 +0000 (01:31 +0000)]
includes.h: Added feature type USE_GRANTPT for pty code.
chgpasswd.c: Updated to use USE_GRANTPT feature definition.
Jeremy.
(This used to be commit 953c5dbbae8c1370e5988619746b508f26cb0390)

25 years agoForgot to increase size of files_struct by MAX_OPEN_DIRECTORIES in
Jeremy Allison [Fri, 17 Jul 1998 22:22:48 +0000 (22:22 +0000)]
Forgot to increase size of files_struct by MAX_OPEN_DIRECTORIES in
previous checkin.
Jeremy.
(This used to be commit 7dfaca5d370ccb472d85416c623692ae7ec2176f)

25 years agoCode added to fix the renaming of a directory under NT SMB calls.
Jeremy Allison [Fri, 17 Jul 1998 22:21:24 +0000 (22:21 +0000)]
Code added to fix the renaming of a directory under NT SMB calls.
local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this.
dir.c: Use MAX_OPEN_DIRECTORIES.
nttrans.c: Allow opening of a directory to succeed. Doesn't actually open
           a file descriptor but takes a files_struct slot marked as an
           fd.
reply.c: Changed to close any outstanding is_directory files.
         reply_close changed to understand directory files.
server.c: Added open_directory(), close_directory() calls.
smb.h: Added is_directory to files_struct.
       Changed OPEN_FNUM to check that target is !is_directory (this
       prevents the normal file calls from processing a directory
       files_struct.
Jeremy.
(This used to be commit e01ce693f47e75e277f3440d46e32b0bd866b550)

25 years agonttrans.c: Added FILE_EXECUTE to required permissions checked.
Jeremy Allison [Fri, 17 Jul 1998 01:38:08 +0000 (01:38 +0000)]
nttrans.c: Added FILE_EXECUTE to required permissions checked.
trans2.c: Fixed up the SMB_QUERY_FILE_ALT_NAME_INFO code, now I've
          got an NT client to generate it. It uses unicode without
          bothering to check the unicode bit of course, but now we
          can execute 16 bit exe's on a WinNT client from a long
          filename directory (hurrah).
Jeremy.
(This used to be commit 6c31be7d3ffff6a40bbbac6de53663fa707ac859)

25 years agolocal.h: Added NTFS define if HAVE_NT_SMBS is defined.
Jeremy Allison [Fri, 17 Jul 1998 00:47:16 +0000 (00:47 +0000)]
local.h: Added NTFS define if HAVE_NT_SMBS is defined.
nttrans.c: Fixed issue with access DELETE on renaming files.
Jeremy.
(This used to be commit 0fcf167af898a9c7a20fddc0d95c887477a22ed1)

25 years agoMakefile: Added nttrans.o
Jeremy Allison [Thu, 16 Jul 1998 22:46:06 +0000 (22:46 +0000)]
Makefile: Added nttrans.o
includes.h: Added termios.h for AIX.
nttrans.c: Working NT SMB calls !
pipes.c: Use strequal instead of strcmp.
server.c: Use #defines rather than numbers.
smb.h: Updated NT SMB #defines.
Jeremy.
(This used to be commit 3e5cada9885059e9926eb6a56d350c4b1b53d245)

25 years agoMakefile: Added CC=gcc to DGUX on Intel. Comment from ross@filmworks.com.
Jeremy Allison [Thu, 16 Jul 1998 00:06:29 +0000 (00:06 +0000)]
Makefile: Added CC=gcc to DGUX on Intel. Comment from ross@filmworks.com.
ipc.c:
loadparm.c:
printing.c:
           Added code from <Dirk.DeWachter@rug.ac.be> to implement print
           queue pausing. New parameters are "queuepause command" and
           "queueresume command".
util.c: Added fix for mount options in autmount map.
lib/rpc/include/rpc_misc.h: Removed duplicate pipe names for Jean-Francois.
Jeremy.
(This used to be commit 559a9bf2bbdeae3e76ba9178779cd3a9537c4e91)

25 years agoutil.c: I've added a function called mem_dup(). Similar to strdup(),
Christopher R. Hertel [Wed, 15 Jul 1998 20:15:25 +0000 (20:15 +0000)]
util.c:  I've added a function called mem_dup().  Similar to strdup(),
         mem_dup() allocates the required memory before copying the
         source data.  It returns NULL if memory could not be allcoated,
         else a pointer to the newly allocated memory.
proto.h: Rebuilt to add the prototype for mem_dup().
(This used to be commit 7f7e265ab457d046441d502d4b8447bc2c966675)

25 years agoloadparm.c:
Jeremy Allison [Tue, 14 Jul 1998 21:23:59 +0000 (21:23 +0000)]
loadparm.c:

    With apologies to Charlton Heston and Pierre Boule.

    "You damn fools, you finally did it".

    Changed default security mode to be security=user.
    Yes this is a big (although small in code) change.
    It's something we've been discussing for a while, to
    finally wean people off the legacy security=share mode
    which is *never* what you want.

    Jeremy.

nmbd_incomingrequests.c: Bug fix for nmbd core dumps caused by overrun.
                         Found by <samuel@public.szonline.net>.
nttrans.c: More NT smb stuff.
reply.c: Unlink will overwrite an existing file. Well you learn
         something new about POSIX every day. :-).
server.c: Tidyup unreadable code.
smbpasswd.c: Code to allow -U remote_username to allow ordinary
             users to change remote passwords if their NT username
             is different from their UNIX username.
             Patch from <torbjorn.lindh@allgon.se>.

Jeremy.
(This used to be commit 4eccb47cfb3c8907a6558b6ea9a02b0184458e34)

25 years agoAdded strupper() function call to up-case the scope field in the
Christopher R. Hertel [Tue, 14 Jul 1998 01:52:09 +0000 (01:52 +0000)]
Added strupper() function call to up-case the scope field in the
make_nmb_name() function.  Database lookups (eg. gdbm) will often use
byte-by-byte comparisons, so it is important that the case and padding
are correct.

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

25 years agonntrans.c: Fully implemented transact rename.
Jeremy Allison [Sat, 11 Jul 1998 01:25:02 +0000 (01:25 +0000)]
nntrans.c: Fully implemented transact rename.
reply.c: Added NT specific rename if exists flag to rename_internals().
smb.h: Added NT rename flag.
Jeremy.
(This used to be commit b398f7daf58459db6e8d3496502abeb634ac2183)

25 years agonttrans.c: More NT SMB stuff.
Jeremy Allison [Sat, 11 Jul 1998 00:28:34 +0000 (00:28 +0000)]
nttrans.c: More NT SMB stuff.
reply.c: Broke out the internals of reply_mv so that they may be called
         externally from the NT transact rename.
server.c: Changed stat calls to sys_stat - found in code review
          of bugfix.
Jeremy.
(This used to be commit fb19dad88edfd7a5c7257a15afc9253fb41f4b99)

25 years agoFix for bug PR#8294 reported by <detlef.lammermann@er.materna.de>
Jeremy Allison [Fri, 10 Jul 1998 20:03:09 +0000 (20:03 +0000)]
Fix for bug PR#8294 reported by <detlef.lammermann@er.materna.de>
- the Files array was storing the 'dos_to_unix' translated name,
rather than the untranslated name. This could case problems when
the name was run through dos_to_unix again.
Jeremy.
(This used to be commit 5f4be1498f7c907a539fe9b5998dfbcaa9e20e20)

25 years agoAIX patch from Michael Wojcik <mww@microfocus.com> adding detail
Jeremy Allison [Fri, 10 Jul 1998 01:13:16 +0000 (01:13 +0000)]
AIX patch from Michael Wojcik <mww@microfocus.com> adding detail
to the AIX specific (and undocumented) setpriv and setuidx calls.
Jeremy.
(This used to be commit 7a8d0a4ed4e07090bfe776b5544712274d2426e4)

25 years agoNeeded fix to SIGHUP handling donated by branko.cibej@hermes.si
Jeremy Allison [Thu, 9 Jul 1998 22:01:51 +0000 (22:01 +0000)]
Needed fix to SIGHUP handling donated by branko.cibej@hermes.si
(I can't believe we've had that bug so long :-).
Jeremy.
(This used to be commit 4d26757776af2aaba9cdaf4c956fab29bfde1599)

25 years agoNew version of the DFS_AUTH code from Karsten Muuss <muuss@or.uni-bonn.de>
Jeremy Allison [Thu, 9 Jul 1998 19:13:01 +0000 (19:13 +0000)]
New version of the DFS_AUTH code from Karsten Muuss <muuss@or.uni-bonn.de>
Jeremy.
(This used to be commit cf7402c5325afd1f9a737facf285cb905702adb2)

25 years agoFixing Oops. Thought I had added these - but not!
John Terpstra [Thu, 9 Jul 1998 07:45:08 +0000 (07:45 +0000)]
Fixing Oops. Thought I had added these - but not!
(This used to be commit 3d15f9d297a0b03c7e0f2434c9d9457dece60c9a)

25 years agoFixed typos and reformatted doco.
John Terpstra [Thu, 9 Jul 1998 07:44:07 +0000 (07:44 +0000)]
Fixed typos and reformatted doco.
(This used to be commit 4a0cda25fd96e81da2502c3e0efd83d9a4c0ced6)

25 years agoNT SMB trans reply code.
Jeremy Allison [Thu, 9 Jul 1998 00:41:32 +0000 (00:41 +0000)]
NT SMB trans reply code.
Jeremy.
(This used to be commit 556254d72517c8a5bf70cafaf443df1675fe64d9)

25 years agoImplementing more NT SMB functionality.
Jeremy Allison [Wed, 8 Jul 1998 01:42:05 +0000 (01:42 +0000)]
Implementing more NT SMB functionality.
Jeremy.
(This used to be commit d34c91126049b7d3094455d407aa99a6d0452304)

25 years agoincludes.h: Fixes for QNX 4.x.
Jeremy Allison [Tue, 7 Jul 1998 19:25:46 +0000 (19:25 +0000)]
includes.h: Fixes for QNX 4.x.
Jeremy.
(This used to be commit 6055be064ec1e9416bb9a7cd97a11976fb336fb6)

25 years agoFixed (hopefully) last bug with username mapping.
Jeremy Allison [Tue, 7 Jul 1998 16:58:29 +0000 (16:58 +0000)]
Fixed (hopefully) last bug with username mapping.
map_username wasn't returning true on a map which
was causing find_service not to find a home directory.
Jeremy.
(This used to be commit 97209a29467699173caf79e1c81729eb2afedda5)

25 years agoCorrected info.
Jeremy Allison [Tue, 7 Jul 1998 01:27:11 +0000 (01:27 +0000)]
Corrected info.
Jeremy.
(This used to be commit 2d0c9baa17d5d298a3e9c22a8a5d2c77998cee18)

25 years agopassword.c: Fixes to allow Win95 clients to have lm encrypted passwords
Jeremy Allison [Mon, 6 Jul 1998 22:48:21 +0000 (22:48 +0000)]
password.c: Fixes to allow Win95 clients to have lm encrypted passwords
            recognised.
lib/rpc/client/cli_login.c: Fix debug comment.
lib/rpc/parse/parse_misc.c: Fix for passing null pointers.
lib/rpc/parse/parse_net.c: Send correct password lengths when called
                           from Win95.
Jeremy.
(This used to be commit ad1848b35521b3d478ea3226db818a1edef78254)

25 years agoDigital UNIX does not seem to set OPTIND if there are no
Richard Sharpe [Mon, 6 Jul 1998 22:25:56 +0000 (22:25 +0000)]
Digital UNIX does not seem to set OPTIND if there are no
command line parameters.

Added simple code to smbtar to check for paramters and
pump out a usage message if there are none.

Regards
Richard
(This used to be commit 52cf030b9d0ea4f3b68d7a3fccfe3841930a329a)

25 years agoAdded Australian consultant.
Jeremy Allison [Mon, 6 Jul 1998 19:11:42 +0000 (19:11 +0000)]
Added Australian consultant.
Jeremy.
(This used to be commit 04733f455dcc960387b5fd56c7bb443f233f66e2)

25 years agoUpdated the 'samba does not allow multi-workgroups & WINS' section. Still
Jeremy Allison [Mon, 6 Jul 1998 19:07:41 +0000 (19:07 +0000)]
Updated the 'samba does not allow multi-workgroups & WINS' section. Still
leave the info there, but add a caveat.
Jeremy.
(This used to be commit 160bcd5fccab7493a1a08e03af5492ed1e9accfa)

25 years agoAdded as rapid config guide for cross subnet / cross workgroup browsing.
John Terpstra [Sun, 5 Jul 1998 10:36:26 +0000 (10:36 +0000)]
Added as rapid config guide for cross subnet / cross workgroup browsing.
(This used to be commit 023df8c04ec9c03dcd0ebc351b1cb3494db0dab9)

25 years agoUpdated in line with recent samba-bugs postings.
John Terpstra [Sun, 5 Jul 1998 10:35:36 +0000 (10:35 +0000)]
Updated in line with recent samba-bugs postings.
(This used to be commit 11c1f090723878ada33b4f501af9a48112133fb4)

25 years agoUpdating Unix installation notes.
John Terpstra [Sun, 5 Jul 1998 07:01:40 +0000 (07:01 +0000)]
Updating Unix installation notes.
(This used to be commit 4ffbdcbddff3094a8635527218f0f4a7974d8e4d)

25 years agoFixed typos pointed out by Pekka Savola <Pekka.Savola@netcore.fi>
John Terpstra [Sun, 5 Jul 1998 03:00:05 +0000 (03:00 +0000)]
Fixed typos pointed out by Pekka Savola <Pekka.Savola@netcore.fi>
(This used to be commit f0ca1afb77de83318d95ebad2a0477bc360cdefc)

25 years agoFix for pidfile startup message.
Jeremy Allison [Thu, 2 Jul 1998 23:57:56 +0000 (23:57 +0000)]
Fix for pidfile startup message.
Jeremy.
(This used to be commit 108284cc28d44ffea028209cf28b746008bdf455)

25 years agonttrans.c: More NT SMB stuff.
Jeremy Allison [Thu, 2 Jul 1998 22:23:56 +0000 (22:23 +0000)]
nttrans.c: More NT SMB stuff.
shmem_sysv.c: Fix for shared memory problems on several systems,
              Second and subsequent use of shmget should use zero
              as the size. Fix from Veselin Terzic <vterzic@systems.DHL.COM>
Jeremy.
(This used to be commit 1cd94b24592ca31ffae671acfd83b0d42b212cab)

25 years agochgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIX
Jeremy Allison [Thu, 2 Jul 1998 18:49:08 +0000 (18:49 +0000)]
chgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIX
             password change core dump bug.
nmbd_subnetdb.c: Make namelist_entry_compare() static.
nttrans.c: More NT SMB stuff.
Jeremy.
(This used to be commit 1925a29c6b355b8358ee99e5b876b6376aa7d628)

25 years agoincludes.h: AIX fix.
Jeremy Allison [Wed, 1 Jul 1998 21:49:49 +0000 (21:49 +0000)]
includes.h: AIX fix.
nttrans.c: More NT SMB work.
smb.h: More NT SMB defines.
trans2.c: Change call response as I now have docs
          on what the flags mean. #ifdef it with JRATEST
          until I'm sure it's ok though.
Jeremy.
(This used to be commit ce2503fddd7ef9eed89e1a63fd834f13432a9cd6)

25 years agonttrans.c: More code towards NT protocol.
Jeremy Allison [Tue, 30 Jun 1998 21:19:40 +0000 (21:19 +0000)]
nttrans.c: More code towards NT protocol.
smb.h: More code towards NT protocol.
time.c: Fix for sco bug.
Jeremy.
(This used to be commit e53f4396ead540bcf9ecd18f3253e49216404a1b)

25 years agonmbd_elections.c: Removed force elections code to bring into line with 1.9.18.
Jeremy Allison [Mon, 29 Jun 1998 22:50:49 +0000 (22:50 +0000)]
nmbd_elections.c: Removed force elections code to bring into line with 1.9.18.
nmbd_namelistdb.c: Added comment for Chris.
nmbd_subnetdb.c: Went back to Chris's comparison code as with the make_nmb_name
                 change it all works now.
lib/rpc/server/srv_netlog.c: Ensure we return 'account disabled' for disabled
                             accounts, rather than crashing.
Jeremy.
(This used to be commit 4ab3d1682789319965a55edb37212b7671a743bb)

25 years agoAdded code to do elections when told to do so.
Jeremy Allison [Sat, 27 Jun 1998 01:07:30 +0000 (01:07 +0000)]
Added code to do elections when told to do so.
Jeremy.
(This used to be commit a38d903d2016202d470f1405e593be3c20404d72)

25 years agonisppass.c: Fixed incorrect parameter usage.
Jeremy Allison [Sat, 27 Jun 1998 00:27:44 +0000 (00:27 +0000)]
nisppass.c: Fixed incorrect parameter usage.
nmbd_become_lmb.c: Add 'force_new_election' parameter to some functions.
                   This allows the start of the election to be done *after*
                   the demotion from local master browser is done.
                   Also changed code so release of 1d name is done
                   immediately to allow other local master to gain it.
nmbd_elections.c: Ensured no elections are run until we have registered
                  the WORKGROUP<1e> name that we must listen on to participate
                  in elections.
nmbd_incomingdgrams.c: Use force_new_election code.
nmbd_namelistdb.c: Make update_name_in_namelist static.
nmbd_subnetdb.c: Fix bug in comparison function. We cannot use memcmp
                   as structure packing may make this fail.
nmbd_packets.c: Ensure that we only send one release packet when
                sending a broadcast packet.
nmbd_workgroupdb.c: Ensure we put the correct value in the ElectionCriterion field.
nmblib.c: Ensure make_nmb_name zero's the struct nmb_name.
Jeremy.
(This used to be commit 1fcb094ba04f01be1261ac92198c25b21b0d5ad5)

25 years agoclitar.c: Fixed gcc warning with comment in /* */ code.
Jeremy Allison [Thu, 25 Jun 1998 23:51:28 +0000 (23:51 +0000)]
clitar.c: Fixed gcc warning with comment in /* */ code.
nmbd_winsserver.c: Remember to free packet in multi-homed register code.
                   Use correct query_name_from_wins_server call instead of
                   query_name call in multihomed code.
Jeremy.
(This used to be commit 6e995802fecb4474003db55a69c9e1663737aade)

25 years agoMinor cosmetic change. I up-cased internal #defines.
Christopher R. Hertel [Thu, 25 Jun 1998 00:22:48 +0000 (00:22 +0000)]
Minor cosmetic change.  I up-cased internal #defines.
(This used to be commit 1ce7d38d9f947d338f2587fa5afbe7536501edfd)

25 years agoThe function add_name_to_subnet(), in file nmbd_namelistdb.c, returns a
Christopher R. Hertel [Tue, 23 Jun 1998 08:15:05 +0000 (08:15 +0000)]
The function add_name_to_subnet(), in file nmbd_namelistdb.c, returns a
pointer to the newly constructed name list entry.  In most cases, this
return value is ignored.  The two exceptions are in asyncdns.c and
nmbd_winsproxy.c.

Most of the calls which ignored the return value were not cast to void, so
I added the cast.  This helped me sort out which calls really did use the
return value.  I also discovered one case, in nmbd_winsserver.c, in which
the return value was being stored to a variable which, in turn, was not
used.

Chris -)-----
(This used to be commit 384122d165ed6d5d211a29e5a63a63bf5cd82c75)

25 years agoArrrgh, one more fix. Restores of long file names were
Richard Sharpe [Mon, 22 Jun 1998 06:31:39 +0000 (06:31 +0000)]
Arrrgh, one more fix. Restores of long file names were
broken ...

Added a bzero of the buffer the names went into ...

Seems OK now ...

Richard Sharpe
(This used to be commit c749c8d0460feddafaa68654d8a4bec33f97cc8c)

25 years agoRemove the copyright to Canon Information Systems Australia, as we don't
Richard Sharpe [Sun, 21 Jun 1998 12:44:34 +0000 (12:44 +0000)]
Remove the copyright to Canon Information Systems Australia, as we don't
want them to have the copyright.

Added a new DOSERR response code that Win95 returns, unimp, unimplemented.

Added code to ignore errors on setting remote time, as Win 95 does not like
the time being changed on a directory.  Win NT and Samba are OK at this.

This is the next to last clean-ups here. Next is to properly handle restore
times on directories (except for Win95--see above).

Now have Jay's changes in and have fixed a bug reported by Tim Lee.
(This used to be commit dc9436bae4493b71ba92970d6cc49dbb33cd55cd)

25 years agoclitar.c: Fixed minor gcc -pedantic-error compile warnings.
Jeremy Allison [Sat, 20 Jun 1998 10:06:26 +0000 (10:06 +0000)]
clitar.c: Fixed minor gcc -pedantic-error compile warnings.
passdb.c: Fixed stupid bug in read_sid_from_file().
Jeremy.
(This used to be commit e65efe3f78240a4fa1ed7931e96c6fb698d9d8c8)

25 years agoRe-submit changes for CLITAR.
Richard Sharpe [Wed, 17 Jun 1998 01:52:57 +0000 (01:52 +0000)]
Re-submit changes for CLITAR.

Have fixed the location of create_string_s back to clitar.c, and have
added Jay Berkenbilt's changes.

Have used safe_strcpy and safe_strcat everywhere and have tested with
long file names extensively, but have not yet been able to check that
it works OK on Solaris.
(This used to be commit daf239a1881d5be4669759e972fbbf07e8e38893)

25 years agoclientgen: Added USE_SSL for client shutdown.
Jeremy Allison [Tue, 16 Jun 1998 18:25:36 +0000 (18:25 +0000)]
clientgen: Added USE_SSL for client shutdown.
clitar.c: Added 'Samba style' comments before string_create_s().
loadparm.c: Fixed missing comma in SSL code.
util.c: Removed string_create_s(). Currently it's only called from
        clitar.c and having it here as well as a static in clitar
        causes the compile to break (Richard, please decide where
        you want this function).
lib/rpc/parse/parse_net.c: Fix from <anders.blomdell@control.lth.se>
                           to stop coredump on missing parameter.
Jeremy.
(This used to be commit d23b44322570cb9a7aa2b86407bf4f91010a237b)

25 years agoDamn, forgot the proto file again
Richard Sharpe [Tue, 16 Jun 1998 06:53:32 +0000 (06:53 +0000)]
Damn, forgot the proto file again
(This used to be commit c63e679337221bbf15beca57249ff3306ebb0369)

25 years agoCLITAR changes to overcome some reported problems and add Jay's changes
Richard Sharpe [Tue, 16 Jun 1998 06:52:24 +0000 (06:52 +0000)]
CLITAR changes to overcome some reported problems and add Jay's changes
(This used to be commit e1468dac0333eacea0a6f85f968e0a6d85af7f4c)

25 years agoAdded SSL support from Christian Starkjohann <cs@obdev.at>
Jeremy Allison [Tue, 16 Jun 1998 01:35:52 +0000 (01:35 +0000)]
Added SSL support from Christian Starkjohann <cs@obdev.at>
This patch may not yet compile with -DUSE_SSL enabled, further
Makefile changes may be needed. But it was important to get
this code in place before I go off to USENIX.
Jeremy.
(This used to be commit 31e768369fdc61e07c59630c86c62239f3d3f3f7)

25 years agoAdding Christian Starkjohann <cs@obdev.at> SSLeay document.
Jeremy Allison [Tue, 16 Jun 1998 01:33:44 +0000 (01:33 +0000)]
Adding Christian Starkjohann <cs@obdev.at> SSLeay document.
Jeremy.
(This used to be commit 9234df00e73980ed383cc77fcaa0a79d417900e4)

25 years agoclient.c: Made -L do a null-session share unless -U user is specified.
Jeremy Allison [Mon, 15 Jun 1998 22:02:14 +0000 (22:02 +0000)]
client.c: Made -L do a null-session share unless -U user is specified.
clientutil.c: Fixed NT session to add NT password.
groupname.c: Added lookup function.
Jeremy.
(This used to be commit 8216363e83fcdccfade70f983830b56b7e6546a4)

25 years agoMakefile:
Jeremy Allison [Mon, 15 Jun 1998 18:19:54 +0000 (18:19 +0000)]
Makefile:
smbumount.c: Added fixes to compile under Linux.
includes.h: Added SunOS 4.x QSORT_CAST fix.
reply.c: Fixed user name mapping function for security=server, security=domain.
Jeremy.
(This used to be commit 21ca6bfb3ba3927efaf7eeff4325976d41489be2)

25 years agoremove .cvsignore as ignored file. This is used in my build scripts.
Herb Lewis [Mon, 15 Jun 1998 16:58:22 +0000 (16:58 +0000)]
remove .cvsignore as ignored file. This is used in my build scripts.
(This used to be commit fb8b04be25d9b8c80719263acc6c4930686b3671)

25 years agoMakefile: Added ubi_sLinkList.o as the groupname.o file needs it. Added groupname.o
Jeremy Allison [Sat, 13 Jun 1998 03:04:00 +0000 (03:04 +0000)]
Makefile: Added ubi_sLinkList.o as the groupname.o file needs it. Added groupname.o
includes.h: Added ubi_sLinkList.h include.
loadparm.c: Added groupname map parameter.
password.c: Fix HPUX big_crypt.
username.c: New user_in_list() code. Moved groupname map code to groupname.c
lib/rpc/server/srv_util.c: Added lookup_wellknown_sid_from_name().

New groupname map stuff. Note that nothing currently uses this but at
compiles ok.

Jeremy.
(This used to be commit beef636a4d772457816ef068c62ea965d07131f6)

25 years agoGroupname mapping code now lives here.
Jeremy Allison [Sat, 13 Jun 1998 03:00:06 +0000 (03:00 +0000)]
Groupname mapping code now lives here.
Jeremy.
(This used to be commit a70b929ec7b38855b7d09378536620c3f221cbe8)

25 years agoThis is the first, small step toward some tweaks that Jeremy and I have
Christopher R. Hertel [Fri, 12 Jun 1998 03:11:33 +0000 (03:11 +0000)]
This is the first, small step toward some tweaks that Jeremy and I have
been discussing regarding the debug mechanism.  With this, I've added a
macro that allows syntax like:

  if( DEBUGLVL( 3 ) )
    {
    Debug1( "message" );
    Debug2( "message" );
    }

The next step is to incorporate timestamps.

Chris -)-----
(This used to be commit 0b35065d0c5a33a9eebee683ecb08e9aef4c1830)

25 years agoipc.c: map_username is now a BOOL function.
Jeremy Allison [Fri, 12 Jun 1998 03:08:23 +0000 (03:08 +0000)]
ipc.c: map_username is now a BOOL function.
reply.c: map_username is now a BOOL function.
server.c: Added capability to do map_username on service names
          when looking for a home directory. That's what the
          original code would do.
lib/rpc/server/srv_util.c: Changed domain_ to builtin_ for
                           BUILTIN aliases.
username.c: Work in progress on groupname map parameter.
Jeremy
(This used to be commit fa95fae5eed95aff64f0a01825477610a101bbc7)

25 years agoRemoved directory-relative include references. This required that I add
Christopher R. Hertel [Thu, 11 Jun 1998 04:40:14 +0000 (04:40 +0000)]
Removed directory-relative include references.  This required that I add
a -I$(srcdir)ubiqx to CFLAGS in the Makefile.  It might be better to
create a UBIDIR value.  What would people like to see?

Chris -)-----
(This used to be commit 7fb9cf4d57eb6ec8f22bc62a7a38d4d71dfaadc6)

25 years agoRemoved the "../" from the #include statement.
Christopher R. Hertel [Thu, 11 Jun 1998 03:24:08 +0000 (03:24 +0000)]
Removed the "../" from the #include statement.
David Mathod from Cal Tech is working on a new port to VMS and requested
that such relative references be removed.
Chris -)-----
(This used to be commit 978c30791677fa8a48c1c8d34daaae52771b201c)

25 years agoMinor changes as I've now discovered gcc -pedantic-errors. This
Jeremy Allison [Wed, 10 Jun 1998 23:15:42 +0000 (23:15 +0000)]
Minor changes as I've now discovered gcc -pedantic-errors. This
does the signed/unsigned warnings I've been missing.
Jeremy
(This used to be commit 6d94e67624d1f2c08ac2e1c0eea23facd1e618f2)

25 years agoI've replaced the linked list used to manage the subnet namelists with a
Christopher R. Hertel [Wed, 10 Jun 1998 19:51:58 +0000 (19:51 +0000)]
I've replaced the linked list used to manage the subnet namelists with a
splay tree.  For short lists, this will have no noticable effect.  As
lists (eg. the WINS database) grow longer, the speed improvements should
be quite dramatic.  This change is an incremental step toward replacing
the in-memory namelists with a back-end database.

This change is going into the 1.9.19pre-alpha code because...well...it's
pre-alpha.  Please let me know if there are any problems.

(Oh, as a side-effect, the wins.dat will be in sorted order.  :)

Chris -)-----
(This used to be commit 7806c453df02a89f67e7c5c8b91f24aa2274e756)

25 years agoDe-coupled the mapping of a Windows to UNIX username from the Get_Pwnam
Jeremy Allison [Wed, 10 Jun 1998 19:45:13 +0000 (19:45 +0000)]
De-coupled the mapping of a Windows to UNIX username from the Get_Pwnam
username case conversion wrapper. It is now (very) explicit where we are
mapping between an incoming Windows username, and when we are doing a
UNIX password entry lookup, which may change the case of the given
username.
This makes things *much* clearer (IMHO:-) and will ease the adding of
the 'groupname map' parameter, and the addition of the special 'jeremy'
mode for Samba where unix users will not be needed. (We must think of
a better name for it :-).
Jeremy.
(This used to be commit fb6ed81844e7cb6049749e43ac9b4adfaf4ca2de)

25 years agoI was wrong about the length and max_length values in make_unistr2.
Jeremy Allison [Tue, 9 Jun 1998 02:33:56 +0000 (02:33 +0000)]
I was wrong about the length and max_length values in make_unistr2.
Jeremy.
(This used to be commit 1d77728bbba49699a05eb70b685a4a97d7598122)

25 years agoloadparm.c: Removed 'domain other sids' parameter.
Jeremy Allison [Tue, 9 Jun 1998 02:26:26 +0000 (02:26 +0000)]
loadparm.c: Removed 'domain other sids' parameter.
lib/rpc/include/rpc_lsa.h: Changed #defines for RPC calls - moved some, made LSA_LOOKUPNAMES correct.
lib/rpc/include/rpc_misc.h: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx.
                            Changed bitmasks for uid to rid to be 1 bit.
lib/rpc/parse/parse_misc.c: Changed make_unistr2 to put length as given, max length as one more.
lib/rpc/server/srv_netlog.c: Removed 'domain other sids' parameter.
lib/rpc/server/srv_samr.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx.
lib/rpc/server/srv_util.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx.
Jeremy.
(This used to be commit 34c91840a3d8c252715dc2f749b7a3b171a5b74f)

25 years agoFixed compile problem after make proto.
Jeremy Allison [Tue, 9 Jun 1998 02:17:06 +0000 (02:17 +0000)]
Fixed compile problem after make proto.
Chris's reformating of the (rather long named function) find_name_for_remote_broadcast_subnet
(moving the function name onto a line on it's own) caused the proto
awk script to miss it.
Jeremy.
(This used to be commit 17c758687f0ec6040633bc1815a52627b7e15f02)

25 years agoThis is a first step toward moving long namelists into a database. I
Christopher R. Hertel [Tue, 9 Jun 1998 01:56:18 +0000 (01:56 +0000)]
This is a first step toward moving long namelists into a database.  I
split the name_record structure into pieces.  The goal is that the key
(the name) be separate from the data associated with the key.  Databases
such as gdbm store information in [key,content] pairs.

There is no functional change in with this update.  It's just a step in
the direction that Jeremy and I have been discussing.

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

25 years agoMoved the ubiqx stuff above nameserv.h so that ubiqx typedefs could be
Christopher R. Hertel [Mon, 8 Jun 1998 20:07:40 +0000 (20:07 +0000)]
Moved the ubiqx stuff above nameserv.h so that ubiqx typedefs could be
seen by the nameserve.h header.
(This used to be commit 530b54b8a2234a72d7a12606bff38648e56c5c1c)

25 years agoproto.h
Christopher R. Hertel [Mon, 8 Jun 1998 19:38:57 +0000 (19:38 +0000)]
proto.h
  *Not* the usual.  I did make proto to add the #ifndef..#endif block.
  Just to be safe, I did a cvs diff and found no prototype changes.

ubiqx/sys_includes.h
  More fudging.  I want to use binary tree typdefs in nameserv.h, but
  nameserv.h is included in includes.h which is included by all of the
  ubiqx modules.  The result is that the types are referenced before
  they are declared.  My solution is to prevent nameserv.h and proto.h
  from being included in the ubiqx modules (where they are not needed
  anyway).

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

25 years agoAdded code to add the Samba names onto the remote_broadcast subnet,
Jeremy Allison [Mon, 8 Jun 1998 19:09:47 +0000 (19:09 +0000)]
Added code to add the Samba names onto the remote_broadcast subnet,
as NT 4.x does directed broadcast node status requests for the *<0x0> name.
Jeremy.
(This used to be commit 8c6fe8870a72271a6acd1633efc362c59e283e19)

25 years agoAdded code to generate
Christopher R. Hertel [Mon, 8 Jun 1998 14:59:30 +0000 (14:59 +0000)]
Added code to generate

#ifndef _PROTO_H_
#define _PROTO_H_
:
:
#endif /* _PROTO_H_ */

in the appropriate places.  This required that I add an END rule.
I generated a new proto.h and diff'ed it against the previous.  There were
no differences except for the added lines.

Chris -)-----
(This used to be commit 6d4d0dc7e65f946f09d127969ccbb4b51dfd6a4e)

25 years agoCosmetic. Added a cast to (void) to a call to add_name_to_subnet() since
Christopher R. Hertel [Mon, 8 Jun 1998 03:44:13 +0000 (03:44 +0000)]
Cosmetic.  Added a cast to (void) to a call to add_name_to_subnet() since
the return value was being ignored anyway.  SGI's lint said:

function returns value which is sometimes ignored
    add_name_to_subnet

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