sfrench/samba-autobuild/.git
24 years agorenaming AUTH VERIFIER to AUTH NTLMSSP VERIFIER. ready for adding
Luke Leighton [Mon, 26 Jul 1999 21:47:23 +0000 (21:47 +0000)]
renaming AUTH VERIFIER to AUTH NTLMSSP VERIFIER.  ready for adding
another RPC authentication system.
(This used to be commit 1a211bafebad8c63d98b5ef275a6272013527c65)

24 years agoJean-Francois spotted bug in use of file_modified() routine submitted
Luke Leighton [Mon, 26 Jul 1999 18:35:46 +0000 (18:35 +0000)]
Jean-Francois spotted bug in use of file_modified() routine submitted
recently.
(This used to be commit 717af2d55d4f964c0449a1e502b6e77d1c3f3f30)

24 years agocommented location where lookup_sids(), a direct call to the password
Luke Leighton [Mon, 26 Jul 1999 17:46:06 +0000 (17:46 +0000)]
commented location where lookup_sids(), a direct call to the password
database API, needs to be replaced with over-the-wire (actually, tcp/ip
loopback) to smbd.

in fact, this is the location where, if we want to put in an nt5 ldap
lookup system or netware NDS instead, we make the calls to resolve
users-to-sids and vice-versa: NOT by replacing rpc_server/srv_samr.c.
(This used to be commit fd886af3317ca806c9c28f71afca5c7b063c1226)

24 years ago'export BEANS=ham' is a bash-ism. For those who don't have a symbolic
Tim Potter [Thu, 22 Jul 1999 23:29:15 +0000 (23:29 +0000)]
'export BEANS=ham' is a bash-ism.  For those who don't have a symbolic
link from bash to /bin/sh, the correct form is 'BEANS=ham; export BEANS'.
(This used to be commit 569aca445a22ccc3805a5dd5e1fc893011f0a147)

24 years agoBDC support.
Matthew Chapman [Thu, 22 Jul 1999 10:55:41 +0000 (10:55 +0000)]
BDC support.
Added -S (Synchronise) option to smbpasswd, which calls synchronise_passdb.
(This used to be commit 21c92d24977015f0368480f44f67366f7c412343)

24 years agoBDC support.
Matthew Chapman [Thu, 22 Jul 1999 10:55:23 +0000 (10:55 +0000)]
BDC support.
(This used to be commit 05a2687b7c3a8c29ea4807b14f928213892509ec)

24 years agoBDC support.
Matthew Chapman [Thu, 22 Jul 1999 10:55:09 +0000 (10:55 +0000)]
BDC support.
Fixing and clarifying SAM_PWD structure.
(This used to be commit 8e36b07a0e8e7ea8b72e1b9e3b747795b2685e85)

24 years agoBDC support.
Matthew Chapman [Thu, 22 Jul 1999 10:54:49 +0000 (10:54 +0000)]
BDC support.
Added synchronise_passdb function to update accounts in a BDC's smbpasswd.
Improved rpc_read, which was still somewhat broken for multiple PDU's.
modify_trust_password must initialise cli.pwd (pwd_set_nullpwd).
(This used to be commit 4783ac3968df1c5c8aa0b6ba9144df8b01ae0b99)

24 years agoBDC support.
Matthew Chapman [Thu, 22 Jul 1999 10:54:18 +0000 (10:54 +0000)]
BDC support.
Algorithm based on previous work of Jeremy's.
(This used to be commit f0c71a804dc869a73eb6af6e0ac9f4fb64dd1f68)

24 years agomake proto
Tim Potter [Thu, 22 Jul 1999 05:00:08 +0000 (05:00 +0000)]
make proto
(This used to be commit 50be413a9fa90dbfce31c8e6ae4b8c452a4cb7ce)

24 years agoSupport for arbitrary VFS options in smb.conf. Options are of the
Tim Potter [Thu, 22 Jul 1999 04:55:13 +0000 (04:55 +0000)]
Support for arbitrary VFS options in smb.conf.  Options are of the
format 'vfs option = name = value'.  It would be nice to get rid of
the first equals sign, but that would involve modifications to the
smb.conf parser.

There are a couple of naughties here - I've added a P_PTR enum as the
VFS options are parsed in param/loadparm.c and stored as a linked list
of structures.  I couldn't for the life of me write a FN_LOCAL_PTR()
macro to generate a lp_vfsoptions() function that actually worked so
for the moment it is coded by hand.
(This used to be commit 89ad85f0a3dfa233f6370ac6e3c97a1a645cfdfe)

24 years agoCopy service name into vfs_connection_struct.
Tim Potter [Thu, 22 Jul 1999 04:47:14 +0000 (04:47 +0000)]
Copy service name into vfs_connection_struct.
(This used to be commit 19242cd44e059d90e91f1c27bfb45899ce5de26a)

24 years agoPass VFS options defined in smb.conf to vfs_init() function.
Tim Potter [Thu, 22 Jul 1999 04:43:59 +0000 (04:43 +0000)]
Pass VFS options defined in smb.conf to vfs_init() function.
(This used to be commit 8cde172a77a1582c0af2e685097c53ba5f302a4e)

24 years agoAdded service name to vfs_connection_struct.
Tim Potter [Thu, 22 Jul 1999 04:41:00 +0000 (04:41 +0000)]
Added service name to vfs_connection_struct.

Added a vfs_options struct for passing smb.conf parameters to VFS
modules.
(This used to be commit 38cc03ae0cccb359e31c8dca65606b66ff473762)

24 years agoMoved a whole bunch of macros out of smb.h and into their own #include
Tim Potter [Thu, 22 Jul 1999 04:39:31 +0000 (04:39 +0000)]
Moved a whole bunch of macros out of smb.h and into their own #include
file.
(This used to be commit bf61fdace8cdf71dc3ab40795498a8bfd0d3b9a0)

24 years agoTim Potter spotted compile error: matthew had added BDC support to smbd,
Luke Leighton [Wed, 21 Jul 1999 05:07:20 +0000 (05:07 +0000)]
Tim Potter spotted compile error: matthew had added BDC support to smbd,
which i didn't know about!
(This used to be commit 30620b93e5c476ba7bf09c459ab4b7bea3f67642)

24 years agoBDC support.
Luke Leighton [Wed, 21 Jul 1999 00:32:09 +0000 (00:32 +0000)]
BDC support.
(This used to be commit 2331aa32ab36c3ee5fd8cfbe972e57299939e33d)

24 years agocomments requested by jeremy as to why NT/95 NULL-password distinction hack
Luke Leighton [Wed, 21 Jul 1999 00:31:16 +0000 (00:31 +0000)]
comments requested by jeremy as to why NT/95 NULL-password distinction hack
was modified.
(This used to be commit 50f7bd8a9c47d073bbde66ae26e9f71f030afc4c)

24 years agouse pstring for at command instead of fstring
Luke Leighton [Wed, 21 Jul 1999 00:30:18 +0000 (00:30 +0000)]
use pstring for at command instead of fstring
(This used to be commit 43d3d2336f0b3c3e332d5abc476223a45592f6c6)

24 years agoMake sure that the stamp file is newer than configure.in
Alexandre Oliva [Sun, 18 Jul 1999 20:34:50 +0000 (20:34 +0000)]
Make sure that the stamp file is newer than configure.in
Not a problem unless --enable-maintainer-mode is specified, and, even then
the probability of encountering a problem is minor, but so what? :-)
(This used to be commit b0a59e90c543d9112c2049e3116493fb6e5bc76c)

24 years agoAvoid multiple ``Updating dependencies'' messages before .deps/.stamp
Alexandre Oliva [Sun, 18 Jul 1999 20:31:57 +0000 (20:31 +0000)]
Avoid multiple ``Updating dependencies'' messages before .deps/.stamp
is created
(This used to be commit 407eec63162a18ef23312ddc3adb4fa0c0b2c25f)

24 years agoNTLMv2 check being actioned when NT password response was only 24 chars.
Luke Leighton [Fri, 16 Jul 1999 22:23:45 +0000 (22:23 +0000)]
NTLMv2 check being actioned when NT password response was only 24 chars.
added check to ensure response is more than 24 chars before bothering
to do an NTLMv2 check.
(This used to be commit 7a58895ff26fcad09ee45de99086739bf5761fd9)

24 years agocheck to see if copy_passwd_struct() ever receives its own internal
Luke Leighton [Fri, 16 Jul 1999 22:07:37 +0000 (22:07 +0000)]
check to see if copy_passwd_struct() ever receives its own internal
buffer as an argument :-) :-)
(This used to be commit 0d1f5e5a6d1cbceda3be3d5626842116e6e91809)

24 years agocopy of password struct needed to be made prior to calling copy_passwd_struct
Luke Leighton [Fri, 16 Jul 1999 22:03:15 +0000 (22:03 +0000)]
copy of password struct needed to be made prior to calling copy_passwd_struct
found by Bertl <bs@vpnet.at>.
(This used to be commit 93298bca1c573532c5250c84bac39cf9214ba3b5)

24 years agoadd Windows 2000 version of Plain Text Password registry entry
Herb Lewis [Fri, 16 Jul 1999 19:17:12 +0000 (19:17 +0000)]
add Windows 2000 version of Plain Text Password registry entry
(This used to be commit 1a0e378a6fa146c4282101ee84b7d01adea82f50)

24 years agowork-around for win95 NULL session bug: NULL password actually being
Luke Leighton [Thu, 15 Jul 1999 21:25:58 +0000 (21:25 +0000)]
work-around for win95 NULL session bug: NULL password actually being
placed in data stream before username / domain, whereas NT doesn't do
this...
(This used to be commit 44e6d4c1b0b6ae54e76e96471b40bb784c8b3c8c)

24 years agomore dfs stuff. this looks like it's going to be more appropriate to use
Luke Leighton [Thu, 15 Jul 1999 20:44:24 +0000 (20:44 +0000)]
more dfs stuff.  this looks like it's going to be more appropriate to use
the vfs tables.  at the moment, i replaced all calls to unix_convert()
with unix_dfs_convert().

this does the job, but it's not very nice.
(This used to be commit 00d4aebce9f268a737ef9df9bdbe59f8fe831979)

24 years agodfs issues
Luke Leighton [Thu, 15 Jul 1999 17:52:44 +0000 (17:52 +0000)]
dfs issues
(This used to be commit d9ada8b55d539e555d25298e0a308ea952e2807e)

24 years agoadded %d %d to error message, try to track down the uid / smb_uid mismatch
Luke Leighton [Thu, 15 Jul 1999 17:50:27 +0000 (17:50 +0000)]
added %d %d to error message, try to track down the uid / smb_uid mismatch
(This used to be commit ec918ba144e7c1bd1689007143ca2b8bee604768)

24 years agocode from bertl to allow remap of default built-in names to anything.
Luke Leighton [Wed, 14 Jul 1999 19:21:44 +0000 (19:21 +0000)]
code from bertl to allow remap of default built-in names to anything.
parameter is "builtin rid file".
Copyright 1999 Bertl <bp@vpnet.at>
(This used to be commit 80d36778432d42eb265ed9428f27a27250ba5e08)

24 years agoremoved strncpy()
Luke Leighton [Wed, 14 Jul 1999 18:16:57 +0000 (18:16 +0000)]
removed strncpy()
(This used to be commit 4bdff2748956a61f12a92e19a9af98c7b9668e8f)

24 years agorenamed getfilepwent() and endfilepwent() to getfileent() and endfileent()
Luke Leighton [Tue, 13 Jul 1999 19:54:40 +0000 (19:54 +0000)]
renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()
as they are generic "file line-by-line" reading routines.  lines with
"#" at the front are ignored (as comments).  this code started out as
the password file reading code.
(This used to be commit ef6df590fdf65a6d94b343998bac3a4d48ae07e0)

24 years agodfs parsed string length was being set explicitly to value "6", overwriting
Luke Leighton [Tue, 13 Jul 1999 19:52:33 +0000 (19:52 +0000)]
dfs parsed string length was being set explicitly to value "6", overwriting
the correct length.
(This used to be commit 5d1fad53c2bdfef63930e0b9d5cc460c9740066e)

24 years agoJean-Francois Micouleau's rewrite of Nigel William's DFS support
Luke Leighton [Mon, 12 Jul 1999 21:33:11 +0000 (21:33 +0000)]
Jean-Francois Micouleau's rewrite of Nigel William's DFS support
(This used to be commit e6116c40d4d0473a7412e82791afd9f44e4905a4)

24 years agolengths of NT passwords when "encrypt passwords = no" can be completely
Luke Leighton [Mon, 12 Jul 1999 18:57:05 +0000 (18:57 +0000)]
lengths of NT passwords when "encrypt passwords = no" can be completely
random.  values seen can be as high as 18255.  this fails the check
of <= 24 which sets NT password length to 0, effectively ignoring it.
the <= 24 was removed in reply_sesssetup_X.
(This used to be commit 98d43b20dc4df72ddbfaeb34581222adc53d15dd)

24 years agoJean-Francois Micouleau's rewritten DFS patch, originally written by
Luke Leighton [Mon, 12 Jul 1999 18:46:15 +0000 (18:46 +0000)]
Jean-Francois Micouleau's rewritten DFS patch, originally written by
Nigel Williams.  despite the data format being *exactly* the same as
NT's, this still doesn't work yet.  more work needed.
(This used to be commit 270981960bb5aab52d2f8e494827101ece6729c4)

24 years agoanon passwd connection: passlen=1; ntpasslen=0.
Luke Leighton [Sun, 11 Jul 1999 19:26:27 +0000 (19:26 +0000)]
anon passwd connection: passlen=1; ntpasslen=0.
(This used to be commit 12ee037d44a603ce50982d5b90e08c30339de750)

24 years agoNULL pwdb_xxx_map_names() parameter can be passed here (which is a bug
Luke Leighton [Sun, 11 Jul 1999 19:15:53 +0000 (19:15 +0000)]
NULL pwdb_xxx_map_names() parameter can be passed here (which is a bug
anyway!)
(This used to be commit 91d5bda9ad22c922a918f0942dcbff04202b9991)

24 years agoPartial GNU readline support for rpcclient. Only command line history
Tim Potter [Fri, 9 Jul 1999 05:10:10 +0000 (05:10 +0000)]
Partial GNU readline support for rpcclient.  Only command line history
and command completion implemented.
(This used to be commit 795fa6a5185d9e245541a44a971a3fb588168c1e)

24 years agoWhen making anonymous connections, must pass pointers to real nt
Tim Potter [Fri, 9 Jul 1999 03:55:15 +0000 (03:55 +0000)]
When making anonymous connections, must pass pointers to real nt
password and password length variables not constants.
(This used to be commit 236022071f2f6df0c583fd88d9802d9b3ea6f73e)

24 years agoPut back in GNU readline support for smbclient accidentally trashed by
Tim Potter [Fri, 9 Jul 1999 03:34:09 +0000 (03:34 +0000)]
Put back in GNU readline support for smbclient accidentally trashed by
tridge in the clientgen.c to clientutil.c conversion.
(This used to be commit 26d66071fbac2c46445153c214bb13d587a67b49)

24 years agoHived off string routines into a separate file.
Tim Potter [Fri, 9 Jul 1999 01:59:22 +0000 (01:59 +0000)]
Hived off string routines into a separate file.
(This used to be commit 4929513f1376d72409c1e5a39f723d1d2bd81dc0)

24 years agofixed problem with NULL ntpasswd parameters causing crash in
Luke Leighton [Thu, 8 Jul 1999 19:44:06 +0000 (19:44 +0000)]
fixed problem with NULL ntpasswd parameters causing crash in
static cli_calc_session_pwds().  this code used to be inside cli_session_setup()
itself and worked on non-NULL local variables.
(This used to be commit 7aff19ba57fd91572da7cbe16f118d11226590e3)

24 years agoIgnacio Coupeau <icoupeau@unav.es> suggested modification to ldap search.
Luke Leighton [Thu, 8 Jul 1999 19:04:04 +0000 (19:04 +0000)]
Ignacio Coupeau <icoupeau@unav.es> suggested modification to ldap search.
(This used to be commit 7d6337641703884a5c6914ca6e292d67ea0c803b)

24 years agoallow safe_strcpy() to pass 0 for max length of string, resulting in no
Luke Leighton [Thu, 8 Jul 1999 18:57:58 +0000 (18:57 +0000)]
allow safe_strcpy() to pass 0 for max length of string, resulting in no
effect.
(This used to be commit 47e54d049a4de3c2154b1e5edc3234b88bcc065f)

24 years agoissues with pwdb_sam_map_names() and pwdb_smb_map_names() returning NULL.
Luke Leighton [Thu, 8 Jul 1999 18:44:50 +0000 (18:44 +0000)]
issues with pwdb_sam_map_names() and pwdb_smb_map_names() returning NULL.
found by Bertl <bs@vpnet.at>
(This used to be commit 389c17a225884b39d097dc0851a794d3669fdc31)

24 years agouse of dos_mkdir() in generate_sam_sid() should be unix mkdir
Luke Leighton [Wed, 7 Jul 1999 21:22:18 +0000 (21:22 +0000)]
use of dos_mkdir() in generate_sam_sid() should be unix mkdir
(This used to be commit 16371d8fe130f89bedebc63fdc4bf0f6f993f309)

24 years agoadded debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()
Luke Leighton [Wed, 7 Jul 1999 18:44:58 +0000 (18:44 +0000)]
added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()
(This used to be commit baab30815238a803badeafa1ed8f029d7782242f)

24 years agooops, refused lm when ntlmv2 was true not false/auto. oops!
Luke Leighton [Wed, 7 Jul 1999 16:44:38 +0000 (16:44 +0000)]
oops, refused lm when ntlmv2 was true not false/auto.  oops!
(This used to be commit 6b4b24d2208b1b076dfc2f7202917ca0acaeb398)

24 years agousing jeremy's sys_getpwnam() call in the more critical area: Get_Pwnam().
Luke Leighton [Tue, 6 Jul 1999 22:08:55 +0000 (22:08 +0000)]
using jeremy's sys_getpwnam() call in the more critical area: Get_Pwnam().
made sure that hashed_getpwnam() has the copy-passwd-struct-wrapper
around it, too.
TODO: replace all calls of getpwnam() with sys_getpwnam().
(This used to be commit 436a89145524d3539b3a247f98c1e71f0616dd70)

24 years agoadded jeremy's sys_getpwnam() and sys_getpwuid() routines from 2_0 tree.
Luke Leighton [Tue, 6 Jul 1999 21:50:29 +0000 (21:50 +0000)]
added jeremy's sys_getpwnam() and sys_getpwuid() routines from 2_0 tree.
(This used to be commit df756f37230bcc47ef6a2067b6ddd8a0e2a125d1)

24 years agouse of safe_cli_errstr() and cli_establish_connection().
Luke Leighton [Tue, 6 Jul 1999 21:29:54 +0000 (21:29 +0000)]
use of safe_cli_errstr() and cli_establish_connection().
(This used to be commit b60eb8c9fc61bf207ab3600eec3ca722403c4d19)

24 years agoreporting failure to accept ntlmv2 (only) with down-level protocols (LANMAN1
Luke Leighton [Tue, 6 Jul 1999 21:26:39 +0000 (21:26 +0000)]
reporting failure to accept ntlmv2 (only) with down-level protocols (LANMAN1
and below).
(This used to be commit be7b978249ddb5e2e94aa160a360fecbf51f016e)

24 years agosmb_password_ok() checking incorrectly whether lm password exists.
Luke Leighton [Tue, 6 Jul 1999 21:25:42 +0000 (21:25 +0000)]
smb_password_ok() checking incorrectly whether lm password exists.
when lmcompatibilitylevel=0x2 on nt sp4+ clients, lm# is not sent.
(This used to be commit e655e68474dd0234b49c23a07d9cb8bdd8f6016a)

24 years agooops, set password lengths to a boolean value.
Luke Leighton [Tue, 6 Jul 1999 20:33:24 +0000 (20:33 +0000)]
oops, set password lengths to a boolean value.
(This used to be commit e6d43ddb1bdb249f93dca65180964a61d281935b)

24 years agopatch from michael stockman <pgmtekn-micke@algonet.se> to provide a static
Luke Leighton [Tue, 6 Jul 1999 19:08:40 +0000 (19:08 +0000)]
patch from michael stockman <pgmtekn-micke@algonet.se> to provide a static
struct passwd in _Get_Pwnam().  _Get_Pwnam() is responsible for malloc/
freeing the string pointers to this struct passwd, NOT the callers of
_Get_Pwnam().
(This used to be commit 41f071642dce994335e0ef180fa2d2503e216393)

24 years agomany small bugs...
Jean-François Micouleau [Thu, 1 Jul 1999 18:02:34 +0000 (18:02 +0000)]
many small bugs...

J.F.
(This used to be commit bda429eb73fa3c0a6d59cf47a8285e3fc0cdae98)

24 years agoremoved old code/comments.
Luke Leighton [Tue, 29 Jun 1999 20:51:29 +0000 (20:51 +0000)]
removed old code/comments.
(This used to be commit bc8c46bc088298d6247830b673790032e59d7f6a)

24 years agosmbclient modified to use cli_establish_connection(). smbclient therefore
Luke Leighton [Tue, 29 Jun 1999 19:39:23 +0000 (19:39 +0000)]
smbclient modified to use cli_establish_connection().  smbclient therefore
now uses improved authentication.  smbclient now "broken" for "scripts"
based on DEBUG() output.  cli_establish_connection() requires modification
to support old scripts.
(This used to be commit b0539d43407cb2b0bab7977908de09b21b145218)

24 years agoimproving authentication code (tidyup).
Luke Leighton [Tue, 29 Jun 1999 18:47:06 +0000 (18:47 +0000)]
improving authentication code (tidyup).
(This used to be commit ab1a6aa42db5217f025941fb5107436556bc23b7)

24 years agouse nmb_safe_namestr.
Luke Leighton [Thu, 24 Jun 1999 19:09:03 +0000 (19:09 +0000)]
use nmb_safe_namestr.
(This used to be commit de9a38b0bcb5adcb6e502f2200d3e84bdcbdfc48)

24 years agosafe string version of nmb_namestr.
Luke Leighton [Thu, 24 Jun 1999 19:02:37 +0000 (19:02 +0000)]
safe string version of nmb_namestr.
(This used to be commit 250621b3cec5fc463d348432d1d0ff5fb59e7a29)

24 years agosafe string error reporting functions (found a potential buffer overflow
Luke Leighton [Thu, 24 Jun 1999 18:58:08 +0000 (18:58 +0000)]
safe string error reporting functions (found a potential buffer overflow
of a pstrcpy into an fstring).
(This used to be commit ac0060443de800fec9042b69b299ff2e9128a31c)

24 years agodebugging of NBT messages added.
Luke Leighton [Thu, 24 Jun 1999 18:50:55 +0000 (18:50 +0000)]
debugging of NBT messages added.
(This used to be commit ceb20adb3c924818201fa8992e19e82f45b40710)

24 years ago#ifdef'd out hashed_getpwnam.
Luke Leighton [Thu, 24 Jun 1999 18:49:42 +0000 (18:49 +0000)]
#ifdef'd out hashed_getpwnam.
(This used to be commit 1d2557cc27b146aa88f70d4b973fd2178f90718b)

24 years agoFixed most memory leak and big-endian bug in the spoolss code.
Jean-François Micouleau [Tue, 22 Jun 1999 18:42:10 +0000 (18:42 +0000)]
Fixed most memory leak and big-endian bug in the spoolss code.

Also added addform/setform rpc api calls. Now I can add/change forms from
the server property dialog box.

Jean Francois
(This used to be commit 8d73f83b6c112327a51c0df2e96a1866deb13c3a)

24 years agomake proto
Tim Potter [Sun, 13 Jun 1999 04:49:13 +0000 (04:49 +0000)]
make proto
(This used to be commit 44f19b5062d0dc7beef8fa9a1c10c9ab6be5cae1)

24 years agoReturn a (void *)0 instead of NULL in readdir64() wrapper.
Tim Potter [Sun, 13 Jun 1999 04:27:57 +0000 (04:27 +0000)]
Return a (void *)0 instead of NULL in readdir64() wrapper.
(This used to be commit d78224a7d27097fa00d9e2a7b02efd7383d833ff)

24 years agoReturn a #error if no functions could be found to wrap around.
Tim Potter [Sun, 13 Jun 1999 04:26:58 +0000 (04:26 +0000)]
Return a #error if no functions could be found to wrap around.
(This used to be commit 36f9ce7993adc5a26e808842233108f28b8fdebf)

24 years agoModified to cope with functions that return a const something.
Tim Potter [Sun, 13 Jun 1999 04:15:30 +0000 (04:15 +0000)]
Modified to cope with functions that return a const something.
(This used to be commit 56738ec5263edba23d8337dde27e7da45ec06490)

24 years agoMoved code that changes the pw_passwd entry (i.e shadow password and
Tim Potter [Sun, 13 Jun 1999 04:14:24 +0000 (04:14 +0000)]
Moved code that changes the pw_passwd entry (i.e shadow password and
weird unixware stuff) into _Get_Pwnam() to fix a memory allocation bug.

Note that the Get_Pwnam() function now returns a const struct passwd *
as a hint to other developers not to change entries in the struct
passwd.
(This used to be commit 36d7cb4ccc42268e8e6a7b783c945d1853624958)

24 years agoHived off debugging code from smb.h and put into debug.h
Tim Potter [Sun, 13 Jun 1999 04:01:08 +0000 (04:01 +0000)]
Hived off debugging code from smb.h and put into debug.h
(This used to be commit afe5be3cf62b90100861e2433ea885f5d6f8708c)

24 years agoUse ${1+"$@"} instead of $*
Alexandre Oliva [Thu, 10 Jun 1999 10:16:26 +0000 (10:16 +0000)]
Use ${1+"$@"} instead of $*
Reported by SATOH Fumiyasu <fumiya@cij.co.jp>
(This used to be commit 6cd8d68965734ac24effde927c689f7d5202cde1)

24 years agoBumped version number in README to avoid confusion with SAMBA_2_0 branch.
Tim Potter [Mon, 7 Jun 1999 23:28:39 +0000 (23:28 +0000)]
Bumped version number in README to avoid confusion with SAMBA_2_0 branch.
(This used to be commit 341cf8aa8ee9ba10e8777d21dbbb31769f710692)

24 years agoFixing core dump bug with unix password sync, caused by a NULL
Matthew Chapman [Wed, 2 Jun 1999 04:11:50 +0000 (04:11 +0000)]
Fixing core dump bug with unix password sync, caused by a NULL
connection_struct in a call to OpenDir.
JF, you fixed a similar bug in printing/nt_printing.c, I think your fix
is incorrect as global configuration files should not go through a VFS.
(This used to be commit 0e0c310a3ea102c61e74b604bcc793a82554a828)

24 years agoSome more BDC-related fixes, mainly to the NET_SAM_SYNC RPC with respect
Matthew Chapman [Wed, 2 Jun 1999 03:19:20 +0000 (03:19 +0000)]
Some more BDC-related fixes, mainly to the NET_SAM_SYNC RPC with respect
to alignment, missing fields, etc. - it should now work correctly.
There is still the problem of decoding the private data field.
(This used to be commit c3c25e762fbc30d5663323f23449c913f2ce4b0e)

24 years agoAvoid a symbol conflict with /usr/include/sys/vfs.h under AIX.
Tim Potter [Tue, 11 May 1999 23:58:20 +0000 (23:58 +0000)]
Avoid a symbol conflict with /usr/include/sys/vfs.h under AIX.
Thanks to Steve Noyd Jones <noyd@u.washington.edu>
(This used to be commit 117d369aed6576b5932d3f973a64ca8b6ed921dc)

24 years agovariation of random SMBtrans2. random delays in between reconnections
Luke Leighton [Fri, 7 May 1999 20:21:30 +0000 (20:21 +0000)]
variation of random SMBtrans2.  random delays in between reconnections
increased.  size of large random buffer decreased.  number of reconnection
attempts increased.
(This used to be commit 980a7b11f3dabce561a0ed02041695451bfeb391)

24 years agothe times in sam_user_info_23 may not be in the right order
Luke Leighton [Fri, 7 May 1999 18:21:38 +0000 (18:21 +0000)]
the times in sam_user_info_23 may not be in the right order
(This used to be commit 34e623d607b45bce09ab2f98f3735cfbf5538dbf)

24 years agohad to move day display names into lib/util, to get rpctorture to compile.
Luke Leighton [Fri, 7 May 1999 18:20:59 +0000 (18:20 +0000)]
had to move day display names into lib/util, to get rpctorture to compile.
(This used to be commit 8c80742e4e5604bc667314e51c47924efd65df49)

24 years agoFix compiler warning.
Tim Potter [Thu, 6 May 1999 23:52:00 +0000 (23:52 +0000)]
Fix compiler warning.

Added checks to panic if VFS functions are passed NULL pointers.  This
may expose some bugs that have been lurking about.  Checks can be
easily removed later.
(This used to be commit c33c6330e3a2025f2fda0234635dfdd3acd04890)

24 years agoclean-up of cache-getpw-hash code needed (make proto showed up loads
Luke Leighton [Thu, 6 May 1999 18:13:23 +0000 (18:13 +0000)]
clean-up of cache-getpw-hash code needed (make proto showed up loads
of functions that should be static).
(This used to be commit 06fce76e535f151ff819210faf39dd77b9fcae08)

24 years agoJani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack
Luke Leighton [Thu, 6 May 1999 18:05:45 +0000 (18:05 +0000)]
Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack
(This used to be commit 899fc053c50448db65092d9f25fea99433cfb29f)

24 years agoadded 2 more (unknown) NTLMSSP negotiation bits
Luke Leighton [Thu, 6 May 1999 18:02:39 +0000 (18:02 +0000)]
added 2 more (unknown) NTLMSSP negotiation bits
(This used to be commit 0ddc301b690abfa5fafbf2eb9a65fefc1ef58afb)

24 years agoalignment needed after unicode string names in password change.
Luke Leighton [Thu, 6 May 1999 18:02:05 +0000 (18:02 +0000)]
alignment needed after unicode string names in password change.
(This used to be commit e66b6afc699593789e7a8372ddaa407c320cd15d)

24 years agolast part of RPC api change.
Jean-François Micouleau [Mon, 3 May 1999 22:04:02 +0000 (22:04 +0000)]
last part of RPC api change.

and of rpcclient eventlog funtion

Jean Francois
(This used to be commit 7fc8659e83bf0269df297016beac6793ff0bdf32)

24 years agoChanged the RPC api definition now first arg is a pipe_struct
Jean-François Micouleau [Mon, 3 May 1999 22:00:33 +0000 (22:00 +0000)]
Changed the RPC api definition now first arg is a pipe_struct

found some memory leak in the spoolss code.

Jean Francois
(This used to be commit 958591abd1645aaa459540a232231d380d879219)

24 years agoAdded a new command to rpcclient: eventlog <log> where <log> is System,
Jean-François Micouleau [Mon, 3 May 1999 21:52:29 +0000 (21:52 +0000)]
Added a new command to rpcclient: eventlog <log> where <log> is System,
Security or Application. That's a crude equivalent to the eventviewer.

Jean Francois
(This used to be commit 66b4b896fbcabb964a427d0c0aa2f57997e0f6bb)

24 years agoAdding "time" rpcclient command which displays the remote time.
Matthew Chapman [Sat, 1 May 1999 05:56:55 +0000 (05:56 +0000)]
Adding "time" rpcclient command which displays the remote time.
Also added special "now" time to the "at" command, e.g.:
  at now /i cmd   ; pops up a command prompt
(This used to be commit f456dcf08ec96c631f5e6f2e857115d4bbf94d1b)

24 years agoadded server ntlmv2 false/auto/true parameter, defaults to off.
Luke Leighton [Sat, 1 May 1999 01:41:28 +0000 (01:41 +0000)]
added server ntlmv2 false/auto/true parameter, defaults to off.
(This used to be commit 209944dabc764c6ea0c471e7868306c7d8d020d4)

24 years agomd5 and hmac_md5
Luke Leighton [Fri, 30 Apr 1999 05:37:55 +0000 (05:37 +0000)]
md5 and hmac_md5
(This used to be commit 5777c1fb12edca8e57e9d5911428f70db2cf9a62)

24 years agouse /dev/urandom not /dev/random in head branch.
Andrew Tridgell [Wed, 28 Apr 1999 02:00:38 +0000 (02:00 +0000)]
use /dev/urandom not /dev/random in head branch.

also got rid of /tmp time based random source. I saw a system with a
huge number of files in /tmp and logging in was taking a _long_ time.
(This used to be commit d48e452915ab92ba431ca8b40838a6bb8ed31640)

24 years agorpc_parse/parse_misc.c : defined a new BUFFER5 struct
Jean-François Micouleau [Tue, 27 Apr 1999 10:43:32 +0000 (10:43 +0000)]
rpc_parse/parse_misc.c : defined a new BUFFER5 struct
include/ntdomain.h     : added rpc_spoolss.h include statement
include/proto.h
include/rpc_dce.h      : added definition of RPC_ALTER_CONTEXT request &
                         reply
param/loadparm.c       : 2 new options for NT printing support and some
                         changes to initial values in the LPRNG case.
rpc_parse/parse_prs.c  : added prs_uint16s()
rpc_parse/parse_rpc.c  : added SYNT_SPOOLSS_V1 and code for the
                         alter-context support.
rpc_server/srv_pipe.c  : alter-context support
smbd/nttrans.c
smbd/server.c
include/rpc_misc.h
Makefile.in
include/smb.h

Jean Francois
(This used to be commit 4c515804b70254248e378a3f90f47e4c32639d29)

24 years agoAdding RPC spoolss code support and some new low-level printing functions.
Jean-François Micouleau [Tue, 27 Apr 1999 10:13:02 +0000 (10:13 +0000)]
Adding RPC spoolss code support and some new low-level printing functions.

Jean Francois
(This used to be commit 9e8192cc674db7551569d23982877dd25c488b50)

25 years agoAdding scheduler control pipe (\atsvc), client-side routines, and rpcclient
Matthew Chapman [Fri, 23 Apr 1999 23:49:46 +0000 (23:49 +0000)]
Adding scheduler control pipe (\atsvc), client-side routines, and rpcclient
command "at" (compatible with NT's "at" command - see rpcclient commit) -
useful for remote NT administration.
(This used to be commit 568c40cc65e46590ba1e9850662934f1a28bd83d)

25 years agoNew rpcclient command "at" for NT scheduler control, a slightly improved
Matthew Chapman [Fri, 23 Apr 1999 15:01:35 +0000 (15:01 +0000)]
New rpcclient command "at" for NT scheduler control, a slightly improved
version of the NT command.

at { time [/INTERACTIVE] [{/EVERY|/NEXT}:5,Sun,...] command | [/DEL] [jobid] }

Examples (options used in abbreviated form):
at                                         ; Shows all jobs
at 1                                       ; Detail on job 1
at /D                                      ; Deletes all jobs
at /D 1                                    ; Deletes job 1
at 11:11:11AM /I /N:1 d:\humour\silly.exe  ; First of next month
at 9:00AM /E:M,T,W,Th,F net send MATTY Hi  ; Each weekday
at 11:00PM /E c:\winnt\backup.exe          ; Every day
(This used to be commit cf8c476d2eec24c150877b6bb8af7f7875cc1840)

25 years agoAdded new define NT_STATUS_MORE_ENTRIES = 0x105.
Matthew Chapman [Fri, 23 Apr 1999 14:48:22 +0000 (14:48 +0000)]
Added new define NT_STATUS_MORE_ENTRIES = 0x105.
(This used to be commit 52b4fd5b55c22deb691124b743ae9d3beb33b39e)

25 years agoAdding scheduler control pipe (\atsvc), client-side routines, and rpcclient
Matthew Chapman [Fri, 23 Apr 1999 14:47:45 +0000 (14:47 +0000)]
Adding scheduler control pipe (\atsvc), client-side routines, and rpcclient
command "at" (compatible with NT's "at" command - see rpcclient commit) -
useful for remote NT administration.
(This used to be commit cf30a472f702d7b50c3a85e2cf2f55b46a2bd452)

25 years agoMake proto for VFS init changes and VFS fsync() stuff.
Tim Potter [Tue, 20 Apr 1999 03:44:06 +0000 (03:44 +0000)]
Make proto for VFS init changes and VFS fsync() stuff.
(This used to be commit fc53314032ddfb6c2baf128399f43b42316417eb)

25 years agoRewrite of VFS initialisation routines.
Tim Potter [Tue, 20 Apr 1999 03:42:48 +0000 (03:42 +0000)]
Rewrite of VFS initialisation routines.
(This used to be commit acc1c9e49cd40a600479a1a586d314b42e2cdf77)