jra/samba/.git
24 years ago- initialising mach_passwd_file locks to zero (prev. uninit.)
Luke Leighton [Sun, 12 Sep 1999 22:40:27 +0000 (22:40 +0000)]
- initialising mach_passwd_file locks to zero (prev. uninit.)

- cleanup

- #defined report to sprintf as it's #defined to another function in
  other uses of cmd_lsarpc.c
(This used to be commit 8fb2ff247a2fe0ec5ce0c232d8a3da9774f7e6ae)

24 years agooops, port 455 instead of 445
Luke Leighton [Fri, 10 Sep 1999 16:27:14 +0000 (16:27 +0000)]
oops, port 455 instead of 445
(This used to be commit 4e5eac18d0d9325c8e524fb53b4e049f0893fae7)

24 years agoallan hourihane sent log 100 in which showed that some really old code
Luke Leighton [Thu, 9 Sep 1999 18:15:08 +0000 (18:15 +0000)]
allan hourihane sent log 100 in which showed that some really old code
for lsa_close response was messing up.  fixed by calling lsa_io_r_close()
which i've been meaning to do for over eighteen months.
(This used to be commit f9a0ea09486b18a130ce1a1e5381ca61e0293c75)

24 years agobertl <bs@niggard.org> patch for making samba listen on port 445, just like
Luke Leighton [Wed, 8 Sep 1999 19:37:45 +0000 (19:37 +0000)]
bertl <bs@niggard.org> patch for making samba listen on port 445, just like
nt 5 does.  cool!
(This used to be commit 727e1421b2c0f8c72c428776593498103304082b)

24 years agomatthew chapman identified 4 previously unknown samr functions.
Luke Leighton [Tue, 31 Aug 1999 13:19:55 +0000 (13:19 +0000)]
matthew chapman identified 4 previously unknown samr functions.
(This used to be commit 001b53866c819045bc52330cad5746e1a2f7a4b1)

24 years agodebugged enumgroups -g option
Luke Leighton [Mon, 30 Aug 1999 17:15:59 +0000 (17:15 +0000)]
debugged enumgroups -g option
(This used to be commit 1cde47ba6a6409e0ae178ca9f44be2123bef0f9d)

24 years agoadded call to samr_query_groupinfo in enumgroups command (-m option)
Luke Leighton [Mon, 30 Aug 1999 17:07:53 +0000 (17:07 +0000)]
added call to samr_query_groupinfo in enumgroups command (-m option)
(This used to be commit e2a72e2c64d6aad37d0c0f94d36f4fdadd3bd6cc)

24 years agoimproved "dominfo" rpcclient command
Luke Leighton [Sun, 29 Aug 1999 16:36:21 +0000 (16:36 +0000)]
improved "dominfo" rpcclient command
(This used to be commit 65a54b6e16c40ec40727547593154b341d98fc83)

24 years agoadded experimental del_groupmem and del_aliasmem commands that were not
Luke Leighton [Sun, 29 Aug 1999 13:18:10 +0000 (13:18 +0000)]
added experimental del_groupmem and del_aliasmem commands that were not
being called from rpcclient.c

improved add_groupmem command, but cannot test it against nt non-pdc!
(This used to be commit 7a383a2a021be1f0297e177b2c89130f1b37d440)

24 years agoRemoving a stray return, probably inserted during debugging, which broke
Matthew Chapman [Mon, 23 Aug 1999 08:54:07 +0000 (08:54 +0000)]
Removing a stray return, probably inserted during debugging, which broke
NetrShareEnum. Be careful what you commit Luke...
(This used to be commit cc27dba003d2f2ebcf05d01a750d3ee9350b0eb7)

24 years agoDon't print out a message in svcenum command for the ERRmoredata
Tim Potter [Wed, 18 Aug 1999 23:51:02 +0000 (23:51 +0000)]
Don't print out a message in svcenum command for the ERRmoredata
error.
(This used to be commit 92ebd8f12ce4997e77eee22c3bb0c599daa44500)

24 years agopatch from michael glauche to add session enum code into smbd.
Luke Leighton [Wed, 18 Aug 1999 21:18:42 +0000 (21:18 +0000)]
patch from michael glauche to add session enum code into smbd.
(This used to be commit e90e38c66d51dc1808f716c016299b1604636ce9)

24 years agodisplay of session enum info
Luke Leighton [Wed, 18 Aug 1999 21:13:15 +0000 (21:13 +0000)]
display of session enum info
(This used to be commit e0713cf9332e562d1b41a794b8044e05aeb2b937)

24 years agoevent log update, netsessenum, netconnenum update.
Luke Leighton [Wed, 18 Aug 1999 20:33:49 +0000 (20:33 +0000)]
event log update, netsessenum, netconnenum update.
(This used to be commit 819af560745b0bec7bfb9067dd9d9d6cfabb1555)

24 years agoevent log update
Luke Leighton [Wed, 18 Aug 1999 20:11:29 +0000 (20:11 +0000)]
event log update
(This used to be commit bcc1212b07c71256fad93d82a996fa86b27db250)

24 years agodebug info display (netbios layer).
Luke Leighton [Wed, 18 Aug 1999 20:10:12 +0000 (20:10 +0000)]
debug info display (netbios layer).
(This used to be commit 5c974cc4a4cdcb9fd3fe01e93aa577b81cf2d18b)

24 years agoadded back test to exclude unused connections.
Luke Leighton [Wed, 18 Aug 1999 19:01:07 +0000 (19:01 +0000)]
added back test to exclude unused connections.
(This used to be commit 6218d986c7cc9d8789b340adf1ca9a07ddc18a9a)

24 years agopatch from Michael Glauche to call get_status_connections() instead of
Luke Leighton [Wed, 18 Aug 1999 00:12:19 +0000 (00:12 +0000)]
patch from Michael Glauche to call get_status_connections() instead of
reading STATUS..LCK direct.
(This used to be commit d794e2eb51b94a334ddb1d1b0775ebf4cef048db)

24 years agouse read() instead of fread() as fread() fails on redhat 6.
Luke Leighton [Wed, 18 Aug 1999 00:01:00 +0000 (00:01 +0000)]
use read() instead of fread() as fread() fails on redhat 6.
(This used to be commit b1025d499ba81233634daf78c3345b9620f9b3a6)

24 years agoadding lib/util_status.c to Makefile.in
Luke Leighton [Tue, 17 Aug 1999 23:20:44 +0000 (23:20 +0000)]
adding lib/util_status.c to Makefile.in
(This used to be commit f1fdf4c3911e7b6c8f8fe8076fec3b67ff666e18)

24 years agopatch from Michael Glauche to list connections from STATUS..LCK.
Luke Leighton [Tue, 17 Aug 1999 23:16:17 +0000 (23:16 +0000)]
patch from Michael Glauche to list connections from STATUS..LCK.
(This used to be commit 91a66dd5c3a551691fbf91e782cb6ff16dfea37b)

24 years agoadded some usage info for rpcclient.
Luke Leighton [Tue, 17 Aug 1999 20:11:12 +0000 (20:11 +0000)]
added some usage info for rpcclient.
(This used to be commit ec11bbaf54764e50687c96ce0979d7aeebe18cb0)

24 years agospelling mistake.
Luke Leighton [Fri, 13 Aug 1999 21:11:38 +0000 (21:11 +0000)]
spelling mistake.
(This used to be commit b8ac96cd9c8efaf0e07651657f878a2dea127290)

24 years agopnum should be a uint16.
Luke Leighton [Fri, 13 Aug 1999 19:35:33 +0000 (19:35 +0000)]
pnum should be a uint16.
(This used to be commit 41cb8b0ba071ef73bf00130ec863b592c16d359a)

24 years agoFix for Win95 not being able to find PDC (for User/Server Manager, and
Matthew Chapman [Sun, 8 Aug 1999 04:51:13 +0000 (04:51 +0000)]
Fix for Win95 not being able to find PDC (for User/Server Manager, and
password change requests), from Michael Stockman <pgmtekn@algonet.se>.
GETDC on \MAILSLOT\NET\NETLOGON necessarily returns less information
than the NTLOGON version.
(This used to be commit 8a603a8793cb067cd06edc3d73d0b35c427ed5ed)

24 years agoSome compilers want (void) instead of just () in function declarations.
Matthew Chapman [Sun, 8 Aug 1999 04:44:36 +0000 (04:44 +0000)]
Some compilers want (void) instead of just () in function declarations.
(This used to be commit c086c7ab94d676e22801bc78588c116cf2e5a4eb)

24 years agoreverted lookup change. from ignacio.
Luke Leighton [Thu, 5 Aug 1999 18:50:13 +0000 (18:50 +0000)]
reverted lookup change.  from ignacio.
(This used to be commit 5b8961a9d4ef6c8188062aaca7f42151ff9684ae)

24 years agochanging debug output message reg_io_unknown_1 to reg_io_close.
Luke Leighton [Tue, 3 Aug 1999 20:54:22 +0000 (20:54 +0000)]
changing debug output message reg_io_unknown_1 to reg_io_close.
(This used to be commit c4901f595193f73b0c248d9315d3bbf547a5dafc)

24 years agoreverted jeremy's c++-like security descriptor modifications as the
Luke Leighton [Tue, 3 Aug 1999 20:30:25 +0000 (20:30 +0000)]
reverted jeremy's c++-like security descriptor modifications as the
simplest method to get rpcclient's reggetsec command working.  the
buffers passed as arguments in do_reg_get_key_sec() do need to be
locally allocated not dynamically allocated, as two calls to
reg_get_key_sec() are needed.  on the first, the server fills in the
size of the security descriptor buffer needed.  on the second, the
server fills in the security descriptor buffer.
(This used to be commit b2d9cbef6f65bb696df8d8f49aa0c240e0bb1f50)

24 years agobug-fix in connection to port 445. cool! it works!
Luke Leighton [Tue, 3 Aug 1999 18:03:08 +0000 (18:03 +0000)]
bug-fix in connection to port 445.  cool!  it works!
(This used to be commit 062b9302c1c7a21df74571ead5f89ce002820d53)

24 years agoattempting a connection to port 445 first, followed by a connection to 139
Luke Leighton [Tue, 3 Aug 1999 17:43:12 +0000 (17:43 +0000)]
attempting a connection to port 445 first, followed by a connection to 139
if this fails.
(This used to be commit 5f821e65015c27f5306c3a707841cd0228509974)

24 years agoclose socket issues:
Luke Leighton [Tue, 3 Aug 1999 17:21:34 +0000 (17:21 +0000)]
close socket issues:
- ssl close from cli_reestablish_connection() not called.
- ntlmv2 fall-back to ntlmv1 failed.
(This used to be commit fdc275353de85fde0c348320e4d64ba66365b73b)

24 years agoFixed quoting/escaping bug in example code.
Tim Potter [Mon, 2 Aug 1999 03:35:39 +0000 (03:35 +0000)]
Fixed quoting/escaping bug in example code.
(This used to be commit 5e0994b8bb960fe754e889c797bd91e64be946f1)

24 years ago- enumprintprocessors and enumprintmonitors added.
Jean-François Micouleau [Tue, 27 Jul 1999 10:46:44 +0000 (10:46 +0000)]
- enumprintprocessors and enumprintmonitors added.
- getjob (level 1 and 2) done.
- better handling of getprinterdriver (level 2).
- added workaround to print PCL files.

Now the spoolss code should be compliant with all kind of printers :-)

Jean Francois
(This used to be commit bf9b639bf9162d61eb152af506dc2c1a7e8a4c85)

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)