import/samba-cvsimport.git
25 years agoMinor restructuring of Test 3 in DIAGNOSIS.txt BRANCH_1_9_18
John Terpstra [Fri, 7 Aug 1998 04:49:01 +0000 (04:49 +0000)]
Minor restructuring of Test 3 in DIAGNOSIS.txt

25 years agoAdded pointers to changed documentation. <JHT>
John Terpstra [Wed, 5 Aug 1998 00:22:56 +0000 (00:22 +0000)]
Added pointers to changed documentation. <JHT>

25 years agoPossible fix for performance problems with security=share.
Jeremy Allison [Tue, 4 Aug 1998 23:35:52 +0000 (23:35 +0000)]
Possible fix for performance problems with security=share.
The fix for vuid == INVALID_USER meant that Samba in share
security was never realising it was already the current
user and was always changing uid. This has a *drastic*
effect on performance. Tridge - please check this code
change for security implications.
Jeremy.

25 years agoWHATSNEW.txt: Updated in preparation for release of 1.9.18p9.
Jeremy Allison [Tue, 4 Aug 1998 01:36:29 +0000 (01:36 +0000)]
WHATSNEW.txt: Updated in preparation for release of 1.9.18p9.
docs/Support.txt: Changed consultant address.
docs/smb.conf.5: Noted that "networkstation user login" now defaults to off.
source/loadparm.c: "networkstation user login" now defaults to off.
Jeremy.

25 years agoComplete fixlist. Now need to update consultant and we should
Jeremy Allison [Tue, 4 Aug 1998 01:19:50 +0000 (01:19 +0000)]
Complete fixlist. Now need to update consultant and we should
be ready for source relase.
Jeremy.

25 years agoEnumerated bugfix list for 1.9.18p9 release - not finished yet,
Jeremy Allison [Tue, 4 Aug 1998 01:08:39 +0000 (01:08 +0000)]
Enumerated bugfix list for 1.9.18p9 release - not finished yet,
but close. Preparing for 1.9.18p9 relase.
Jeremy.

25 years agoAdded "ole locking compatibility" parameter for people who have
Jeremy Allison [Thu, 30 Jul 1998 15:33:36 +0000 (15:33 +0000)]
Added "ole locking compatibility" parameter for people who have
working lock daemons.
Jeremy.

25 years agoUpdated to include "strict sync" and "ole locking compatibility".
Jeremy Allison [Thu, 30 Jul 1998 15:21:00 +0000 (15:21 +0000)]
Updated to include "strict sync" and "ole locking compatibility".
Jeremy.

25 years agoloadparm.c: Added "strict sync" parameter.
Jeremy Allison [Wed, 29 Jul 1998 01:13:00 +0000 (01:13 +0000)]
loadparm.c: Added "strict sync" parameter.
locking.c: Corrected lock type code.
reply.c: Changed to use strict sync. Added mask_convert() to SMBsearch.
server.c: Changed to use strict sync.
trans2.c: Added mask_convert() function.
Jeremy.

25 years agoFix from Wayne_Johnson@candle.com for bug where client will
Jeremy Allison [Sat, 25 Jul 1998 01:55:17 +0000 (01:55 +0000)]
Fix from Wayne_Johnson@candle.com for bug where client will
only set workgroup name if the WORKGROUP macro is "".
Also added connecting workgroup to sessionsetup error
message.
Jeremy.

25 years agolocking.c: Added lock_type to is_locked() and do_lock(). Needed
Jeremy Allison [Thu, 23 Jul 1998 00:07:59 +0000 (00:07 +0000)]
locking.c: Added lock_type to is_locked() and do_lock(). Needed
           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().
Jeremy.

25 years agoincludes.h: Added <termios.h> to AIX if ALLOW_CHANGE_PASSWORD defined.
Jeremy Allison [Wed, 22 Jul 1998 15:52:13 +0000 (15:52 +0000)]
includes.h: Added <termios.h> to AIX if ALLOW_CHANGE_PASSWORD defined.
server.c util.c: Fix from klausr@ITAP.Physik.Uni-Stuttgart.De to stop
                 log files created by smbd's that never print more than
                 100 messages per session from growing without bound.
Jeremy.

25 years agoAdded Mexican consultant.
Jeremy Allison [Wed, 22 Jul 1998 15:07:49 +0000 (15:07 +0000)]
Added Mexican consultant.
Jeremy.

25 years agodocs/smb.conf.5: Added "queuepause command" and "queueresume command" docs.
Jeremy Allison [Thu, 16 Jul 1998 01:42:31 +0000 (01:42 +0000)]
docs/smb.conf.5: Added "queuepause command" and "queueresume command" docs.
source/ipc.c:
source/loadparm.c:
source/printing.c: Added code from <Dirk.DeWachter@rug.ac.be> to allow
                   printqueue pausing.
source/util.c: Added code to remove mount options in automount map
               processing.
Jeremy.

25 years agoSupport.txt: Added USA consultant.
Jeremy Allison [Wed, 15 Jul 1998 21:42:23 +0000 (21:42 +0000)]
Support.txt: Added USA consultant.
smb.conf.5: Fixed incorrect path slash in logon script parameter docs.
Jeremy.

25 years ago(Hopefully) last source change before 1.9.18p9.
Jeremy Allison [Tue, 14 Jul 1998 20:48:09 +0000 (20:48 +0000)]
(Hopefully) last source change before 1.9.18p9.
Code to allow -U remote_username to allow ordinary
users to change remote passwords if their NT username
is different from their UNIX username.
Low risk fix. Patch from <torbjorn.lindh@allgon.se>.
Documentation updated.
Jeremy.

25 years agoBug fix for nmbd core dumps caused by overrun. Found by <samuel@public.szonline.net>.
Jeremy Allison [Tue, 14 Jul 1998 18:12:51 +0000 (18:12 +0000)]
Bug fix for nmbd core dumps caused by overrun. Found by <samuel@public.szonline.net>.
Jeremy.

25 years agoA couple more stat calls that need to be sys_stat caught in the code
Jeremy Allison [Fri, 10 Jul 1998 21:25:03 +0000 (21:25 +0000)]
A couple more stat calls that need to be sys_stat caught in the code
review following bug : PR#8294.
Jeremy.

25 years agoFix for bug PR#8294 reported by <detlef.lammermann@er.materna.de>
Jeremy Allison [Fri, 10 Jul 1998 20:15:34 +0000 (20:15 +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.

25 years agoNeeded fix to SIGHUP handling donated by branko.cibej@hermes.si
Jeremy Allison [Thu, 9 Jul 1998 21:55:29 +0000 (21:55 +0000)]
Needed fix to SIGHUP handling donated by branko.cibej@hermes.si
(I can't believe we've had that bug so long :-).
Jeremy.

25 years agoFixed typo and reformatted doco.
John Terpstra [Thu, 9 Jul 1998 07:41:40 +0000 (07:41 +0000)]
Fixed typo and reformatted doco.

25 years agoQNX fixes.
Jeremy Allison [Wed, 8 Jul 1998 22:49:28 +0000 (22:49 +0000)]
QNX fixes.
Jeremy.

25 years agoFixed (hopefully) last bug with username mapping.
Jeremy Allison [Tue, 7 Jul 1998 16:58:08 +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.

25 years agoAdded another Australian consultant.
Jeremy Allison [Mon, 6 Jul 1998 19:08:59 +0000 (19:08 +0000)]
Added another Australian consultant.
Jeremy.

25 years agoUpdated the 'samba does not allow multi-workgroups & WINS' section. Still
Jeremy Allison [Mon, 6 Jul 1998 19:06:57 +0000 (19:06 +0000)]
Updated the 'samba does not allow multi-workgroups & WINS' section. Still
leave the info there, but add a caveat.
Jeremy.

25 years agoAdded as rapid config guide for cross subnet / cross workgroup browsing.
John Terpstra [Sun, 5 Jul 1998 10:37:38 +0000 (10:37 +0000)]
Added as rapid config guide for cross subnet / cross workgroup browsing.

25 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Sun, 5 Jul 1998 10:36:27 +0000 (10:36 +0000)]
This commit was manufactured by cvs2svn to create branch
'BRANCH_1_9_18'.

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.

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.

25 years agoUpdated info.
John Terpstra [Sun, 5 Jul 1998 07:56:46 +0000 (07:56 +0000)]
Updated info.

25 years agoFixed typo.
John Terpstra [Sun, 5 Jul 1998 07:46:09 +0000 (07:46 +0000)]
Fixed typo.

25 years agoUpdating docs with recent FAQ info.
John Terpstra [Sun, 5 Jul 1998 07:42:47 +0000 (07:42 +0000)]
Updating docs with recent FAQ info.

25 years agoUpdating Unix installation notes.
John Terpstra [Sun, 5 Jul 1998 07:01:40 +0000 (07:01 +0000)]
Updating Unix installation notes.

25 years agoUpdating installation info for Unix.
John Terpstra [Sun, 5 Jul 1998 07:00:05 +0000 (07:00 +0000)]
Updating installation info for Unix.

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>

25 years agoFixed typos pointed out by Pekka Savola <Pekka.Savola@netcore.fi>
John Terpstra [Sun, 5 Jul 1998 02:58:56 +0000 (02:58 +0000)]
Fixed typos pointed out by Pekka Savola <Pekka.Savola@netcore.fi>

25 years agoGetting ready for samba-1.9.18p9 (if it ever happens!)
John Terpstra [Sat, 4 Jul 1998 13:29:51 +0000 (13:29 +0000)]
Getting ready for samba-1.9.18p9 (if it ever happens!)

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.

25 years agoshmem_sysv.c: Fix for shared memory problems on several systems,
Jeremy Allison [Thu, 2 Jul 1998 22:25:19 +0000 (22:25 +0000)]
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.

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.

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.

25 years agochgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIX
Jeremy Allison [Thu, 2 Jul 1998 18:08:07 +0000 (18:08 +0000)]
chgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIX
             password change core dump bug.
includes.h: Fix for AIX systems.
time.c: Fix for broken SCO compiler :-).
Jeremy.

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.

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.

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.

25 years agoModified German consultant address.
Jeremy Allison [Mon, 29 Jun 1998 18:08:45 +0000 (18:08 +0000)]
Modified German consultant address.
Jeremy.

25 years agoAdded US consultant.
Jeremy Allison [Sat, 27 Jun 1998 03:24:30 +0000 (03:24 +0000)]
Added US consultant.
Jeremy.

25 years agoFixes for local browse master problems to mirror those that went into
Jeremy Allison [Sat, 27 Jun 1998 02:47:29 +0000 (02:47 +0000)]
Fixes for local browse master problems to mirror those that went into
the HEAD branch.

nmbd_become_lmb.c: Added force_new_election to reset_workgroup_state().
                   Ensured 1d name released asap when we lose.
nmbd_elections.c: Ensure we can correctly participate in elections
                  by waiting until we registered the WORKGROUP<1e> name.
nmbd_incomingdgrams.c: Added force_new_election to unbecome_local_master_browser().
nmbd_packets.c: Ensure a broadcast release packet gets done only once.
nmbd_winsserver.c: Remember to free packet in multihomed code.
                   Use new query_name_from_wins_server call in multihomed code.
nmbd_workgroupdb.c: Set correct value in ElectionCriterion.
nmblib.c: Ensure struct nmb_name is zero filled.
Jeremy.

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.

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.

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.

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.

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 -)-----

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

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.

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.

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.

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.

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

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

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.

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.

25 years agoRemoved depth static int from map_username as map_username now
Jeremy Allison [Mon, 15 Jun 1998 22:07:45 +0000 (22:07 +0000)]
Removed depth static int from map_username as map_username now
never resurses. This does mean that there is a bug in 1.9.18p8
as released, which means that map_username will only be done
once per smbd.

Damn !

Jeremy.

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.

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.

25 years agoMakefile: Added fixes to make smbumount/smbmount compile on Linux.
Jeremy Allison [Mon, 15 Jun 1998 17:32:32 +0000 (17:32 +0000)]
Makefile: Added fixes to make smbumount/smbmount compile on Linux.
smbumount.c: Added fixes to make smbumount/smbmount compile on Linux.
includes.h: Added SunOS4.x QSORT_CAST fix that got missed.
reply.c: Damn! Fixed bug where mapped username is sent to password server
         with security=server, rather than the client sent username.
Jeremy.

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.

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.

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.

25 years agopreparing for release of 1.9.18p8
Samba Release Account [Sat, 13 Jun 1998 02:21:51 +0000 (02:21 +0000)]
preparing for release of 1.9.18p8

25 years agoFixed warning message from gcc when compiling on Solaris 2.6.
Jeremy Allison [Sat, 13 Jun 1998 00:49:43 +0000 (00:49 +0000)]
Fixed warning message from gcc when compiling on Solaris 2.6.
Jeremy.

25 years agoUpdated WHATSNEW.txt for 1.9.18p8.
Jeremy Allison [Sat, 13 Jun 1998 00:27:53 +0000 (00:27 +0000)]
Updated WHATSNEW.txt for 1.9.18p8.
Jeremy.

25 years agoAdded + and & entries for group mapping.
Jeremy Allison [Fri, 12 Jun 1998 23:34:34 +0000 (23:34 +0000)]
Added + and & entries for group mapping.
Jeremy.

25 years agoipc.c: Make the map_username call explicit.
Jeremy Allison [Fri, 12 Jun 1998 23:34:00 +0000 (23:34 +0000)]
ipc.c: Make the map_username call explicit.
kanji.c: Fix warning found by gcc -pedantic-errors.
password.c: Fix HPUX10 bigcrypt call.
reply.c: Make the map_username call explicit.
server.c: Fix warning found by gcc -pedantic-errors.
username.c: Cache last call to map_username().
            Made calls to netgroup and /etc/group explicit.
Jeremy.

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 -)-----

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

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 -)-----

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 -)-----

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

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 -)-----

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.

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.

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.

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.

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 -)-----

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.

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 -)-----

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.

25 years agoAdded code to add the Samba names onto the remote_broadcast subnet,
Jeremy Allison [Mon, 8 Jun 1998 19:07:40 +0000 (19:07 +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.

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 -)-----

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 -)-----

25 years agoincludes.h: Added BSDI and NetBSD fixes.
Jeremy Allison [Fri, 5 Jun 1998 22:20:15 +0000 (22:20 +0000)]
includes.h: Added BSDI and NetBSD fixes.
shmem_sysv.c: Added strerror debug print code.
Jeremy.

25 years agoloadparm.c: Did it ! Changed defaults for 'case preserve' and 'short case preserve'.
Jeremy Allison [Fri, 5 Jun 1998 20:46:05 +0000 (20:46 +0000)]
loadparm.c: Did it ! Changed defaults for 'case preserve' and 'short case preserve'.
            Also removed 'domain allow/deny' parameters.
shmem_sysv.c: Added strerror code so I can see why sysV calls are failing.
lib/rpc/server/srv_netlog.c: Removed code that used 'domain allow/deny' parameters -
                             replaced with a comment so I will remember to fix this later.
Jeremy.

25 years agoclient.c: Allowed client to proceed even if it gets error 234 (more data
Jeremy Allison [Thu, 4 Jun 1998 18:49:13 +0000 (18:49 +0000)]
client.c: Allowed client to proceed even if it gets error 234 (more data
          available) when scanning server/workgroup/share lists.
ipc.c: Removed redundent definition of ERROR_MORE_DATA (234) we already have
       ERRmoredata in smb.h
Jeremy.

25 years agohad what would be a compile error if it wasn't #if 0'd out in passdb_ops
Luke Leighton [Thu, 4 Jun 1998 17:48:21 +0000 (17:48 +0000)]
had what would be a compile error if it wasn't #if 0'd out in passdb_ops

25 years agoadded "domain admin group" and "domain guest group" parameters. this is
Luke Leighton [Thu, 4 Jun 1998 15:24:20 +0000 (15:24 +0000)]
added "domain admin group" and "domain guest group" parameters.  this is
because "domain admin users" and "domain guest users" was overloaded.

incorrectly.

25 years agoFixed file descriptor leak in open_socket_out - this could
Jeremy Allison [Thu, 4 Jun 1998 01:52:22 +0000 (01:52 +0000)]
Fixed file descriptor leak in open_socket_out - this could
cause nmbd to run out of fd's. Test case found by Eloy Paris.
Jeremy.

25 years agoFixed file descriptor leak in open_socket_out - this could
Jeremy Allison [Thu, 4 Jun 1998 01:50:28 +0000 (01:50 +0000)]
Fixed file descriptor leak in open_socket_out - this could
cause nmbd to run out of fd's. Test case found by Eloy Paris.
Jeremy.

25 years agoincludes.h: Fixes for NetBSD and BSDI.
Jeremy Allison [Thu, 4 Jun 1998 00:49:32 +0000 (00:49 +0000)]
includes.h: Fixes for NetBSD and BSDI.
smbpass.c: Fixed irix warnings.
Jeremy.

25 years agoIt occurred to me that the samba includes.h file should be included in the
Christopher R. Hertel [Wed, 3 Jun 1998 21:38:51 +0000 (21:38 +0000)]
It occurred to me that the samba includes.h file should be included in the
header files used by the ubiqx modules, instead of being hidden in the .c
files.  This would ensure that anything in includes.h would be "seen" by
the ubiqx headers.  I also had to put an #ifdef around the includes for
ubi_SplayTree.h and ubi_Cache.h in includes.h to prevent the header of the
descendant type from being included before its parent type.

Chris -)-----