samba.git
26 years agoThis commit was manufactured by cvs2svn to create tag samba-1.9.18p6
cvs2svn Import User [Mon, 11 May 1998 12:43:57 +0000 (12:43 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-1-9-18p6'.

26 years agopreparing for release of 1.9.18p6
Samba Release Account [Mon, 11 May 1998 12:43:56 +0000 (12:43 +0000)]
preparing for release of 1.9.18p6

26 years agopreparing for release of 1.9.18p6
Samba Release Account [Mon, 11 May 1998 11:35:22 +0000 (11:35 +0000)]
preparing for release of 1.9.18p6

26 years agoUpdating for Caldera builds of 1.9.18p6.
John Terpstra [Mon, 11 May 1998 11:24:47 +0000 (11:24 +0000)]
Updating for Caldera builds of 1.9.18p6.

26 years agoUpdating for 1.9.18p6 release.
John Terpstra [Mon, 11 May 1998 11:22:39 +0000 (11:22 +0000)]
Updating for 1.9.18p6 release.

26 years agopreparing for release of 1.9.18p6
Samba Release Account [Mon, 11 May 1998 10:09:18 +0000 (10:09 +0000)]
preparing for release of 1.9.18p6

26 years agoupdated for p6 release
Andrew Tridgell [Mon, 11 May 1998 10:05:37 +0000 (10:05 +0000)]
updated for p6 release

26 years agodefine PROT_READ as 1 if not defined
Andrew Tridgell [Mon, 11 May 1998 07:02:04 +0000 (07:02 +0000)]
define PROT_READ as 1 if not defined

26 years agochanged to use slprintf() instead of sprintf() just about
Andrew Tridgell [Mon, 11 May 1998 06:38:36 +0000 (06:38 +0000)]
changed to use slprintf() instead of sprintf() just about
everywhere. I've implemented slprintf() as a bounds checked sprintf()
using mprotect() and a non-writeable page.

This should prevent any sprintf based security holes.

26 years agochanged to use slprintf() instead of sprintf() just about
Andrew Tridgell [Mon, 11 May 1998 06:35:45 +0000 (06:35 +0000)]
changed to use slprintf() instead of sprintf() just about
everywhere. I've implemented slprintf() as a bounds checked sprintf()
using mprotect() and a non-writeable page.

This should prevent any sprintf based security holes.

26 years agochanged to use slprintf() instead of sprintf() just about
Andrew Tridgell [Mon, 11 May 1998 06:35:34 +0000 (06:35 +0000)]
changed to use slprintf() instead of sprintf() just about
everywhere. I've implemented slprintf() as a bounds checked sprintf()
using mprotect() and a non-writeable page.

This should prevent any sprintf based security holes.

26 years agoUpdated OSF1_ENH_SEC mode password handling.
John Terpstra [Sun, 10 May 1998 06:20:27 +0000 (06:20 +0000)]
Updated OSF1_ENH_SEC mode password handling.
This now tries Enhanced passwords first and if this fails trys Basic
mode (ie: Unix /etc/passwd) authentication. This only happens when
OSF1_ENH_SEC is defined at compilation.

26 years agopreparing for release of 1.9.18p5
Samba Release Account [Sat, 9 May 1998 00:39:22 +0000 (00:39 +0000)]
preparing for release of 1.9.18p5

26 years agoSmall mod to OSF1 Security Mode note.
John Terpstra [Sat, 9 May 1998 00:19:04 +0000 (00:19 +0000)]
Small mod to OSF1 Security Mode note.

26 years agoFinal preps for release.
John Terpstra [Sat, 9 May 1998 00:11:47 +0000 (00:11 +0000)]
Final preps for release.

26 years agoUpdated WHATSNEW.txt with John's fix for Dec.
Jeremy Allison [Sat, 9 May 1998 00:07:37 +0000 (00:07 +0000)]
Updated WHATSNEW.txt with John's fix for Dec.
Jeremy.

26 years agosync with head branch
Herb Lewis [Fri, 8 May 1998 23:37:24 +0000 (23:37 +0000)]
sync with head branch

26 years agoFixed typo with 'changes since' line.
Jeremy Allison [Fri, 8 May 1998 23:15:36 +0000 (23:15 +0000)]
Fixed typo with 'changes since' line.
Jeremy.

26 years agoPreparing for release.
Jeremy Allison [Fri, 8 May 1998 22:54:56 +0000 (22:54 +0000)]
Preparing for release.
WHATSNEW.txt: Updated date.
docs/smb.conf.5: Updated for security=server downgrade.
Jeremy.

26 years agoclitar.c: New tar changes.
Jeremy Allison [Fri, 8 May 1998 22:48:31 +0000 (22:48 +0000)]
clitar.c: New tar changes.
reply.c: Fixed overwriting of sesssetup_name with a NULL name when in
         security=share.
Jeremy.

26 years agoadded sam_passwd structure: don't want smb_passwd to be "polluted".
Luke Leighton [Fri, 8 May 1998 17:53:17 +0000 (17:53 +0000)]
added sam_passwd structure: don't want smb_passwd to be "polluted".

26 years agomove things around to get rid of make clean warning messages
Herb Lewis [Fri, 8 May 1998 17:30:48 +0000 (17:30 +0000)]
move things around to get rid of make clean warning messages

26 years agoremoved proto.h from cvsignore
Luke Leighton [Fri, 8 May 1998 17:01:25 +0000 (17:01 +0000)]
removed proto.h from cvsignore

26 years agoclitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'
Jeremy Allison [Fri, 8 May 1998 16:59:30 +0000 (16:59 +0000)]
clitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'
          messages.
nttrans.c: More updates.
smb.h: Removed stuff that didn't belong in the smb_passwd struct. Persuaded Luke
       to use a new structure.
web/swat.c: Fixed gcc complaints about shadowing global 'string'.
Jeremy.

26 years agoHo hum, someone deleted proto.h from cvs... re-adding.
Jeremy Allison [Fri, 8 May 1998 16:49:10 +0000 (16:49 +0000)]
Ho hum, someone deleted proto.h from cvs... re-adding.
Jeremy.

26 years agoproto.h was being a pain. use "make proto" instead. check release and
Luke Leighton [Fri, 8 May 1998 14:41:35 +0000 (14:41 +0000)]
proto.h was being a pain.  use "make proto" instead.  check release and
release-alpha scripts operate correctly when it comes to generating
a release or alpha release.

26 years agoadded proto.h to .cvsignore
Luke Leighton [Fri, 8 May 1998 14:14:26 +0000 (14:14 +0000)]
added proto.h to .cvsignore

26 years agoadded smb_grpid to smb_passwd struct
Luke Leighton [Fri, 8 May 1998 14:09:13 +0000 (14:09 +0000)]
added smb_grpid to smb_passwd struct

26 years agoSe-submitting clitar.c/
Richard Sharpe [Fri, 8 May 1998 13:51:17 +0000 (13:51 +0000)]
Se-submitting clitar.c/

I now only have one warning in my code which is the result of some code I have started
working on but am not yet using in the code, along with a warning that is caused
by one of the include files (a nested comment).

I used -Wall -Wshadow -Wstrict-prototypes

26 years agorenamed last_change_time to pass_must_change_time. removed "if (bool==True)"
Luke Leighton [Fri, 8 May 1998 11:31:55 +0000 (11:31 +0000)]
renamed last_change_time to pass_must_change_time.  removed "if (bool==True)"
and "if (bool==False)" code from ldap.c - a boolean test may not necessarily
return exactly True or exactly False: True may be defined to be -1: you never
know...

26 years agoadded extra fields to struct smb_passwd
Luke Leighton [Fri, 8 May 1998 11:30:17 +0000 (11:30 +0000)]
added extra fields to struct smb_passwd

the smbpw functions are expected to fill in the blanks by reading the
appropriate smb.conf parameters.

the ldappw functions are expected to fill in the fields from the ldap
database.  a separate utility can be written to fill in the ldap database
fields from the smb.conf parameters, at a later date.

26 years agoThe globals section now shows non-default variables (like the
Herb Lewis [Fri, 8 May 1998 01:45:12 +0000 (01:45 +0000)]
The globals section now shows non-default variables (like the
view config section does) in the basic view. There is also a
reset button to undo all changes you have made (that haven't
been committed). In addition each field now has a "Set Default"
button. Multi-choice fields are now select fields instead of
a set of radio buttons.

On the status screen I added a "restart" option for stopping then
starting smbd and nmbd.

26 years agoadded FLAG_BASIC to some browse options for swat.
Herb Lewis [Fri, 8 May 1998 01:41:27 +0000 (01:41 +0000)]
added FLAG_BASIC to some browse options for swat.

26 years agosmb.h: Supporting defines for NT trans calls.
Jeremy Allison [Fri, 8 May 1998 01:23:11 +0000 (01:23 +0000)]
smb.h: Supporting defines for NT trans calls.
trans2.c: Paranoia bugfixes added when studying nttrans.c.
Jeremy.

26 years agoInitial cut at the code that will do NT SMB calls. Not linked in, not
Jeremy Allison [Fri, 8 May 1998 01:22:16 +0000 (01:22 +0000)]
Initial cut at the code that will do NT SMB calls. Not linked in, not
compiled yet, just checked in for safe keeping :-).
Jeremy.

26 years agoadded first pass at start/get/end-ldappwent functions. unfortunately, lots
Luke Leighton [Thu, 7 May 1998 21:09:58 +0000 (21:09 +0000)]
added first pass at start/get/end-ldappwent functions.  unfortunately, lots
of information will be lost as these functions currently return
struct smb_passwd not SAM_USER_INFO_21 or any other type of structure...

26 years agoremove unused ldap functions: add stub start/get/endldappwent routines.
Luke Leighton [Thu, 7 May 1998 20:44:45 +0000 (20:44 +0000)]
remove unused ldap functions: add stub start/get/endldappwent routines.

26 years agomoving gethexpwd into util.c, because it's used in both smbpass.c and ldap.c
Luke Leighton [Thu, 7 May 1998 19:59:32 +0000 (19:59 +0000)]
moving gethexpwd into util.c, because it's used in both smbpass.c and ldap.c

26 years agoThis should (hopefully :-) be the final fix for the %U %G substitution
Jeremy Allison [Thu, 7 May 1998 19:04:14 +0000 (19:04 +0000)]
This should (hopefully :-) be the final fix for the %U %G substitution
problem....
smbpass.c: Removed Luke's dire warning - as some of the functions in here
*need* to be called externally :-).
Jeremy.

26 years agocreated "passdb.c" which is an interface point to (at present) either
Luke Leighton [Thu, 7 May 1998 18:19:05 +0000 (18:19 +0000)]
created "passdb.c" which is an interface point to (at present) either
smbpasswd or ldap passwd, at compile-time (-DUSE_LDAP).

_none_ of the functions in ldap.c or smbpass.c should be called directly:
only those in passdb.c should be used.

-DUSE_LDAP is unlikely to compile at the moment.

26 years agoThis should (hopefully) be the final :-) fix for the %U and %G
Jeremy Allison [Thu, 7 May 1998 18:18:27 +0000 (18:18 +0000)]
This should (hopefully) be the final :-) fix for the %U and %G
substitution problems with standard_sub.
Jeremy.

26 years agoFixed changed calls to machine password locking code.
Jeremy Allison [Thu, 7 May 1998 02:06:53 +0000 (02:06 +0000)]
Fixed changed calls to machine password locking code.
Jeremy.

26 years agoAndrew redefines the free() function to do some memory management testing.
Christopher R. Hertel [Wed, 6 May 1998 19:22:45 +0000 (19:22 +0000)]
Andrew redefines the free() function to do some memory management testing.
He also suggested that some systems may implement free() as a macro (but
I think he was looking for an excuse ;).  Anyway, I've added a function
to mangle.c that calls free().
Chris -)-----

26 years agosmbpass.c: Fixed machine_passwd_lock() problems.
Jeremy Allison [Wed, 6 May 1998 18:45:57 +0000 (18:45 +0000)]
smbpass.c: Fixed machine_passwd_lock() problems.
password.c: Fixed machine_passwd_lock() problems.
lib/rpc/server/srv_ldap_helpers.c: Oops - broke proto.h with dummy function. Fixed now.
Jeremy.

26 years agoWHATSNEW.txt: Updated with %U bugfix note.
Jeremy Allison [Wed, 6 May 1998 18:19:02 +0000 (18:19 +0000)]
WHATSNEW.txt: Updated with %U bugfix note.
source/server.c source/util.c: Moved %U, %G and %N into standard_sub() from standard_sub_basic()
          as only smbd knows about usernames. Also fixes problem with calling
          standard_sub_basic() from loadparm.c.
Jeremy.

26 years agoloadparm.c: Added #ifdef USE_LDAP around ldap code.
Jeremy Allison [Wed, 6 May 1998 18:14:02 +0000 (18:14 +0000)]
loadparm.c: Added #ifdef USE_LDAP around ldap code.
server.c: Moved %U, %G and %N into standard_sub() from standard_sub_basic()
          as only smbd knows about usernames. Also fixes problem with calling
          standard_sub_basic() from loadparm.c.
smbpass.c: Partial tidyup of machine_password_lock() code - not finished yet.
util.c: Moved %U, %G and %N into standard_sub() from standard_sub_basic()
          as only smbd knows about usernames. Also fixes problem with calling
          standard_sub_basic() from loadparm.c.
lib/rpc/server/srv_ldap_helpers.c: Added #ifdef USE_LDAP around ldap code.
lib/rpc/server/srv_samr.c: Added #ifdef USE_LDAP around ldap code.
Jeremy.

26 years agoRolling back again to the equivalent of revision 1.22, as the current
Jeremy Allison [Wed, 6 May 1998 17:54:28 +0000 (17:54 +0000)]
Rolling back again to the equivalent of revision 1.22, as the current
CVS head branch will not compile.
Jeremy.

26 years agojean-francois micouleau's well-alpha code for ldap password database stuff!
Luke Leighton [Wed, 6 May 1998 17:43:44 +0000 (17:43 +0000)]
jean-francois micouleau's well-alpha code for ldap password database stuff!
he's going to hate me for checking this in so early, but...

26 years agoAdded mksmbpasswd.sh to binary package
Volker Lendecke [Wed, 6 May 1998 16:13:31 +0000 (16:13 +0000)]
Added mksmbpasswd.sh to binary package

26 years agocompiler warning for unimportant uninitialised variable
Luke Leighton [Wed, 6 May 1998 12:11:35 +0000 (12:11 +0000)]
compiler warning for unimportant uninitialised variable

26 years agouse fstring instead of string as string may clash with some standard
Andrew Tridgell [Wed, 6 May 1998 03:08:14 +0000 (03:08 +0000)]
use fstring instead of string as string may clash with some standard
headers on some systems.

26 years agodon't #include <regex.h> in 1.9.18 clitar.c as it's not needed and
Andrew Tridgell [Wed, 6 May 1998 03:06:36 +0000 (03:06 +0000)]
don't #include <regex.h> in 1.9.18 clitar.c as it's not needed and
will cause compilation to fail on some systems.

generally system includes should go in includes.h anyway, with
appropriate #ifdefs

26 years agoReal fix for clitar.c problems. Have now made all the right
Richard Sharpe [Wed, 6 May 1998 02:35:56 +0000 (02:35 +0000)]
Real fix for clitar.c problems. Have now made all the right
things static, and have done a 'make proto; make clean; make'.

Still get 54 compiler warnings under Digital UNIX cc.

Honest. :-)

26 years agomuch faster pstrcpy() and fstrcpy()
Andrew Tridgell [Wed, 6 May 1998 02:30:52 +0000 (02:30 +0000)]
much faster pstrcpy() and fstrcpy()

also print out the first 50 chars of an overflowing string so we have
some chance of working out what is causng them.

26 years agoFixes for the %U and %G problems people have reported.
Jeremy Allison [Wed, 6 May 1998 01:34:51 +0000 (01:34 +0000)]
Fixes for the %U and %G problems people have reported.
Essentially, multiple session_setup_and_X's may be done
to an smbd. As there is only one global variable containing
the requested connection name (sessionsetup_user), then any
subsequent sessionsetups overwrite this name (causing %U
and %G to get the wrong name). This is particularly common
when an NT client does a null session setup to get a
browse list after the user has connected, but before
a share has been mounted.

These changes store the requested_name in the vuid structure
(so this only really works for user level and above security)
and copies this name back into the global variable before
the standard_sub call.

Jeremy.

26 years agoFixes for the %U and %G problems people have reported.
Jeremy Allison [Wed, 6 May 1998 00:22:08 +0000 (00:22 +0000)]
Fixes for the %U and %G problems people have reported.
Essentially, multiple session_setup_and_X's may be done
to an smbd. As there is only one global variable containing
the requested connection name (sessionsetup_user), then any
subsequent sessionsetups overwrite this name (causing %U
and %G to get the wrong name). This is particularly common
when an NT client does a null session setup to get a
browse list after the user has connected, but before
a share has been mounted.

These changes store the requested_name in the vuid structure
(so this only really works for user level and above security)
and copies this name back into the global variable before
the standard_sub call.

Jeremy.

26 years agogenrand.c: SGI compile warning fix.
Jeremy Allison [Tue, 5 May 1998 19:24:32 +0000 (19:24 +0000)]
genrand.c: SGI compile warning fix.
ipc.c: Fix for duplicate printer names being long.
loadparm.c: Set bNetWkstaUserLogon to false by default - new code in password.c
protects us.
nmbd_logonnames.c:
nmbd_namequery.c:
nmbd_namerelease.c: Debug messages fix.
password.c: SGI compile warning fix, fix for tcon() with bNetWkstaUserLogon call.
reply.c: SGI compile warning fix.
server.c Debug messages fix.
smbpass.c: Fix for incorrect pointer.
Jeremy.

26 years agoadded definitions for "password chat debug" and "unix password sync"
Herb Lewis [Tue, 5 May 1998 19:23:40 +0000 (19:23 +0000)]
added definitions for "password chat debug" and "unix password sync"
from the 1.9.18 tree

26 years agoRolling clitar.c back to the previous rev 1.22 as the current one
Jeremy Allison [Tue, 5 May 1998 18:11:24 +0000 (18:11 +0000)]
Rolling clitar.c back to the previous rev 1.22 as the current one
needs fixing (sorry).
Jeremy.

26 years agosync with head branch
Herb Lewis [Tue, 5 May 1998 15:05:58 +0000 (15:05 +0000)]
sync with head branch

26 years agoAdded bug fixes to clitar to ensure proper longfile name restores
Richard Sharpe [Tue, 5 May 1998 13:03:44 +0000 (13:03 +0000)]
Added bug fixes to clitar to ensure proper longfile name restores
occur.

Also getting ready for setting directory dates correctly

26 years agopatches from jean francois: couple of minor bugs
Luke Leighton [Tue, 5 May 1998 09:04:49 +0000 (09:04 +0000)]
patches from jean francois: couple of minor bugs

26 years agoUpdating version info for packages.
John Terpstra [Tue, 5 May 1998 00:51:42 +0000 (00:51 +0000)]
Updating version info for packages.

26 years agoAdded mention of docs/PROFILES.txt.
Jeremy Allison [Tue, 5 May 1998 00:45:19 +0000 (00:45 +0000)]
Added mention of docs/PROFILES.txt.
Jeremy.

26 years agoMoved cli_tdis() to correct place in security=server (got confused
Jeremy Allison [Mon, 4 May 1998 23:30:35 +0000 (23:30 +0000)]
Moved cli_tdis() to correct place in security=server (got confused
by indentation).
Jeremy.

26 years agoAdded rider about net workstation user logon parameter.
Jeremy Allison [Mon, 4 May 1998 22:43:47 +0000 (22:43 +0000)]
Added rider about net workstation user logon parameter.
Moved IPC$ tcon into parameter bracketed code.
Jeremy.

26 years agosource/*.c - fixes for DEBUG typos.
Jeremy Allison [Mon, 4 May 1998 20:25:10 +0000 (20:25 +0000)]
source/*.c - fixes for DEBUG typos.
docs/ENCRYPTION.txt: Updated "update encrypted" section.
WHATSNEW.txt: Preparing for 1.9.18p5 release.
Jeremy.

26 years agodocs/ENCRYPTION.txt: Added 'Migrating to encrypted passwords' section.
Jeremy Allison [Mon, 4 May 1998 19:37:35 +0000 (19:37 +0000)]
docs/ENCRYPTION.txt: Added 'Migrating to encrypted passwords' section.
docs/smb.conf.5: Added "update encrypted" docs.
source/chgpasswd.c:
source/loadparm.c:
source/password.c:
source/smbpass.c: Added 'update encrypted' patch from Bruce Tenison <btenison@dibbs.net>.
source/ipc.c: Added fix for long printer driver name.
This should be the last code checkin before 1.9.18p5 (compile bugs permitting).
Jeremy.

26 years agohere is a first cut at a "fixed up" help file
Herb Lewis [Fri, 1 May 1998 19:02:08 +0000 (19:02 +0000)]
here is a first cut at a "fixed up" help file

26 years agomkman - add argument for making html versions of man pages
Herb Lewis [Thu, 30 Apr 1998 16:00:18 +0000 (16:00 +0000)]
mkman - add argument for making html versions of man pages
idb.pl - minor fixups for sorting of output file.

26 years agoAdded patch from Bruce Tenison <btenison@dibbs.net> to allow encrypted
Jeremy Allison [Thu, 30 Apr 1998 01:39:22 +0000 (01:39 +0000)]
Added patch from Bruce Tenison <btenison@dibbs.net> to allow encrypted
passwords to be stored over time, allowing a smbpasswd file migration.
Adds new parameter "update encrypted".
Will also add to 1.9.18 branch.
Docs update to follow.
Jeremy.

26 years agoFixed lockfile problems using both F_RDLCK and F_WRLCK at the same time.
Jeremy Allison [Thu, 30 Apr 1998 00:07:43 +0000 (00:07 +0000)]
Fixed lockfile problems using both F_RDLCK and F_WRLCK at the same time.
Jeremy.

26 years agoMakefile: Added files to smbpasswd.c.
Jeremy Allison [Wed, 29 Apr 1998 22:27:26 +0000 (22:27 +0000)]
Makefile: Added files to smbpasswd.c.
loadparm.c: Patch from tim@quiknet.com for static string problems.
server.c: Setup global_myname.
smbpass.c: Fix up locking. Add machine_password_delete() call.
smbpasswd.c: Added provisional code to add to a domain.
lib/rpc/client/cli_login.c: Fixed incorrect cred_hash3 call when setting machine password.
lib/rpc/server/srv_netlog.c: Fixed incorrect cred_hash3 call when setting machine password.
Jeremy.

26 years agoFixed auto services bug - patch from tim@quiknet.com.
Jeremy Allison [Wed, 29 Apr 1998 19:37:41 +0000 (19:37 +0000)]
Fixed auto services bug - patch from tim@quiknet.com.
Jeremy.

26 years agoclientgen.c: Fixed null session setup bug.
Jeremy Allison [Wed, 29 Apr 1998 19:22:01 +0000 (19:22 +0000)]
clientgen.c: Fixed null session setup bug.
password.c: Stopped cli_nt_logout call (we don't have it correct yet).
            Added Luke object-orientation fix :-).
smb.h: Added clnt_name_slash to cli_state.
lib/rpc/client/cli_login.c: Changed global_myname to clnt_name_slash where needed.
lib/rpc/client/cli_netlogon.c: Fixed debug messages, don't check creds on error.
lib/rpc/client/cli_pipe.c: Fixed debug messages, Added Luke object-orientation fix.
lib/rpc/parse/parse_misc.c: Fixed STRING2 linearization bug that was adding 1.
Jeremy.

26 years agoFixed null session setup bug.
Jeremy Allison [Wed, 29 Apr 1998 19:16:25 +0000 (19:16 +0000)]
Fixed null session setup bug.
Jeremy.

26 years agoadded clean option
Herb Lewis [Wed, 29 Apr 1998 13:46:02 +0000 (13:46 +0000)]
added clean option

26 years agoadd clean option
Herb Lewis [Wed, 29 Apr 1998 13:45:27 +0000 (13:45 +0000)]
add clean option

26 years agopassword.c:
Luke Leighton [Wed, 29 Apr 1998 11:00:12 +0000 (11:00 +0000)]
password.c:

added become_root / unbecome_root around the get machine account password.

smbpass.c:

cleaning up code.

- turning if (BOOL_expr == False) into if (BOOL_expr)
  what if you test if (BOOL_expr == True) and someone defines
  True to be -1 on one system and 1 on another?  or if you get
  inconsistent return results between developers

- removed if ((FILE*) == 0) and made this if ((FILE*) == NULL) -
  cannot assume that NULL is zero integer.  plus there are typecast
  issues to deal with

- removed return (ret == 0) ? True : False and made this return ret == 0
  rely on the compiler to return correct BOOL value: not all developers
  will return True or False #defines: stick with BOOL test (non-zero).

- removed if (ret == False) replaced with if (!ret)

- bug where instead of if (sizeof(pstring)-len-len-6 < 0) it had a
  boolean test if (pstring-len-len-6).

- removed "." after debugging of filenames: the "." - a fullstop -
  looked like it was part of the filename, making things difficult
  to sort out.

still to be resolved: the global_myname isn't set up, such that the
machine account password file is named "TEST3..mac".

26 years agoThis is the checkin that adds the security=domain functionality.
Jeremy Allison [Wed, 29 Apr 1998 00:02:57 +0000 (00:02 +0000)]
This is the checkin that adds the security=domain functionality.

WARNING - so far this has only been tested against a Samba PDC
(still waiting for IS to add me the machine accounts :-).

Still missing is the code in smbpasswd that will add a machine
account password and change it on the domain controller, but
this is not hard, and I will check it in soon.

Jeremy.

26 years agoAdded Canadian consultant. Changed Australian consultant.
Jeremy Allison [Tue, 28 Apr 1998 19:36:36 +0000 (19:36 +0000)]
Added Canadian consultant. Changed Australian consultant.
Jeremy.

26 years agofix problem with output file not being properly sorted
Herb Lewis [Tue, 28 Apr 1998 18:58:20 +0000 (18:58 +0000)]
fix problem with output file not being properly sorted

26 years agoFixed checked in code that didn't compile.
Jeremy Allison [Tue, 28 Apr 1998 16:43:02 +0000 (16:43 +0000)]
Fixed checked in code that didn't compile.
Jeremy.

26 years agoadded NetShareEnum from Bartlomej Czardybon <czar@silesia.pik-net.pl>
Luke Leighton [Tue, 28 Apr 1998 09:53:42 +0000 (09:53 +0000)]
added NetShareEnum from Bartlomej Czardybon <czar@silesia.pik-net.pl>

26 years agoFirst version that compiles. Much more to do.....
Jeremy Allison [Tue, 28 Apr 1998 01:24:40 +0000 (01:24 +0000)]
First version that compiles. Much more to do.....
Jeremy.

26 years agoclean up instructions
Herb Lewis [Mon, 27 Apr 1998 16:21:20 +0000 (16:21 +0000)]
clean up instructions

26 years agoAdded SuSE packaging files.
Volker Lendecke [Mon, 27 Apr 1998 09:11:28 +0000 (09:11 +0000)]
Added SuSE packaging files.

Volker

26 years agoAdded SuSE packaging files.
Volker Lendecke [Mon, 27 Apr 1998 08:48:05 +0000 (08:48 +0000)]
Added SuSE packaging files.

Volker

26 years agoGetting ready for 1.9.18p5 release.
John Terpstra [Sun, 26 Apr 1998 06:11:03 +0000 (06:11 +0000)]
Getting ready for 1.9.18p5 release.

26 years agoThis looks like a big change but really isn't.
Jeremy Allison [Sat, 25 Apr 1998 01:12:08 +0000 (01:12 +0000)]
This looks like a big change but really isn't.
It is changing the global variables "myname" and "myworkgroup"
to "global_myname" and "global_myworkgroup" respectively.

This is to make it very explicit when we are messing
with a global (don't ask - it makes the domain client
code much clearer :-).

Jeremy.

26 years agoABOUT time. dce/rpc long packet format now works, server-side.
Luke Leighton [Fri, 24 Apr 1998 21:01:08 +0000 (21:01 +0000)]
ABOUT time.  dce/rpc long packet format now works, server-side.
turns out that [it can be deduced that] microsoft ignores the SMBreadX
offset, and goes by the SMBreadX length only.  this makes for a lot simpler
code, in both client and server.

26 years agoFixes for SGI compile time warnings.
Jeremy Allison [Fri, 24 Apr 1998 19:01:04 +0000 (19:01 +0000)]
Fixes for SGI compile time warnings.
Jeremy.

26 years agocli_pipe.c: Corrected cli_api_pipe() calls.
Jeremy Allison [Fri, 24 Apr 1998 00:34:21 +0000 (00:34 +0000)]
cli_pipe.c: Corrected cli_api_pipe() calls.
Jeremy.

26 years agoMakefile: Added nterr.c into the mix.
Jeremy Allison [Thu, 23 Apr 1998 22:59:19 +0000 (22:59 +0000)]
Makefile: Added nterr.c into the mix.
clientgen.c: Added nt_error as an entry in the struct client_state.
password.c: Open the netlogon pipe.
smb.h: Added nt_error as an entry in the struct client_state.
lib/rpc/parse/parse_net.c: Added comments on net logon.
lib/rpc/server/srv_netlog.c: Added comments on net logon.
Jeremy.

26 years agoThese don't compile yet - but they are the core code in what
Jeremy Allison [Thu, 23 Apr 1998 22:45:53 +0000 (22:45 +0000)]
These don't compile yet - but they are the core code in what
will be DOMAIN_CLIENT called code.
Jeremy.

26 years agoWe will need this new nterr.c for the DOMAIN_CLIENT code.
Jeremy Allison [Thu, 23 Apr 1998 22:08:39 +0000 (22:08 +0000)]
We will need this new nterr.c for the DOMAIN_CLIENT code.
Jeremy.

26 years agoclientgen.c: Added rap error codes to cli_error, moved from smbpasswd.c
Jeremy Allison [Thu, 23 Apr 1998 20:12:17 +0000 (20:12 +0000)]
clientgen.c: Added rap error codes to cli_error, moved from smbpasswd.c
password.c: Changed global cli -> pw_cli, removed strtok (bad strtok, bad :-)
use in security=server, started to extend security=domain code.
smbpasswd.c: Removed rap error code functions.
Jeremy.

26 years agogenrand.c: Changed SMB_PASSWD_FILE to lp_smb_passwd_file().
Jeremy Allison [Thu, 23 Apr 1998 18:54:57 +0000 (18:54 +0000)]
genrand.c: Changed SMB_PASSWD_FILE to lp_smb_passwd_file().
password.c: Started the initial code for domain_client_validate(). All
            bracketed with #ifdef DOMAIN_CLIENT for now.
reply.c: Call to domain_client_validate(). All
            bracketed with #ifdef DOMAIN_CLIENT for now.
smbpass.c: New code to get/set machine passwords. Tidied up nesting
           of lock calls.
Jeremy.

26 years agoFixed bug found by Gerald Carter <cartegw@Eng.Auburn.EDU> where
Jeremy Allison [Wed, 22 Apr 1998 17:59:44 +0000 (17:59 +0000)]
Fixed bug found by Gerald Carter <cartegw@Eng.Auburn.EDU> where
global myname was being overwritten incorrectly.
Jeremy.

26 years agoclientgen.c: Added cli_ulogoff().
Jeremy Allison [Wed, 22 Apr 1998 17:40:22 +0000 (17:40 +0000)]
clientgen.c: Added cli_ulogoff().
password.c: Added new two-level security=server code.
Jeremy.