1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

725 Commits

Author SHA1 Message Date
Luke Leighton
fe8383382d samuserset <username> -p password. YESSSSS :)
you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no).
(This used to be commit f52504c553becc64b89d546a57b1bd9cf1bc5b5c)
1999-11-04 21:41:36 +00:00
Luke Leighton
cae821d459 adding experimental set user password command to rpcclient, it returns
error wrong password against nt.  ????
(This used to be commit b3f16e6b5aa5ba1b6afa38ad698646c8e765ec90)
1999-11-04 00:09:15 +00:00
Luke Leighton
902b53dcc0 cli_nt_setup_creds() returns uint32 NT status code not a BOOL.
removed all comparisons to if (fn() == False), replaced with if (!fn()).
(This used to be commit fdef97eb7c20a33b26104661cd010baebcb4bdcd)
1999-10-29 15:53:18 +00:00
Luke Leighton
6f9105c853 various. debug levels changed. nmbd doesn't need libsmb/clienttrust.c.
samr_lookup_rids() moved to a dynamic memory structure not a
static one limited to 32 RIDs.  cli_pipe.c reading wasn't checking
ERRmoredata when DOS error codes negotiated (this terminates
MSRPC code with prejudice).
(This used to be commit 8976eca2db43576c32069dcda017e8777048e007)
1999-10-21 16:53:50 +00:00
Luke Leighton
eb9268550f David van Geyn spotted that ulong is not defined on FREEBSD, not supposed
to use ulong use uint32 instead.
(This used to be commit 16dd94db1fd2ed8ed7d240c5aac5a481b64cd26d)
1999-10-05 21:35:17 +00:00
Jean-François Micouleau
ed5fbd743b don't leak printer handles,
don't coredump when adding forms,
and a small non obvious memory leak in the rpc buffers

	J.F.
(This used to be commit bee11f8889378b9f1cc6e2818fd0f8dd7ddcf10d)
1999-09-27 13:12:55 +00:00
Luke Leighton
701f9ed2c9 reading in smb server domain name from SMBnegprot response
(This used to be commit 25025f450531c66c0fd9f7eed886cb288d76d025)
1999-09-16 22:46:45 +00:00
Luke Leighton
b9b4c1d563 #defines for port 445 to SMB_PORT2
(This used to be commit a8d4560e0064a67a234eae89a564b79d2426d9a9)
1999-09-15 17:30:02 +00:00
Luke Leighton
ddf33698b5 - 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)
1999-09-12 22:40:27 +00:00
Luke Leighton
856a3e2740 oops, port 455 instead of 445
(This used to be commit 4e5eac18d0d9325c8e524fb53b4e049f0893fae7)
1999-09-10 16:27:14 +00:00
Luke Leighton
7f8f5e15bd bertl <bs@niggard.org> patch for making samba listen on port 445, just like
nt 5 does.  cool!
(This used to be commit 727e1421b2c0f8c72c428776593498103304082b)
1999-09-08 19:37:45 +00:00
Luke Leighton
ad000ee7dc spelling mistake.
(This used to be commit b8ac96cd9c8efaf0e07651657f878a2dea127290)
1999-08-13 21:11:38 +00:00
Luke Leighton
dde759352f pnum should be a uint16.
(This used to be commit 41cb8b0ba071ef73bf00130ec863b592c16d359a)
1999-08-13 19:35:33 +00:00
Tim Potter
331ab45321 Copy service name into vfs_connection_struct.
(This used to be commit 19242cd44e059d90e91f1c27bfb45899ce5de26a)
1999-07-22 04:47:14 +00:00
Tim Potter
f809734105 Pass VFS options defined in smb.conf to vfs_init() function.
(This used to be commit 8cde172a77a1582c0af2e685097c53ba5f302a4e)
1999-07-22 04:43:59 +00:00
Luke Leighton
46ce0d4619 comments requested by jeremy as to why NT/95 NULL-password distinction hack
was modified.
(This used to be commit 50f7bd8a9c47d073bbde66ae26e9f71f030afc4c)
1999-07-21 00:31:16 +00:00
Luke Leighton
33ed8059a2 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)
1999-07-16 22:23:45 +00:00
Luke Leighton
0262b2a6b4 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)
1999-07-16 22:03:15 +00:00
Luke Leighton
7c29698e41 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)
1999-07-15 21:25:58 +00:00
Luke Leighton
939f6d6794 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)
1999-07-15 20:44:24 +00:00
Luke Leighton
2b354d7330 dfs issues
(This used to be commit d9ada8b55d539e555d25298e0a308ea952e2807e)
1999-07-15 17:52:44 +00:00
Luke Leighton
92b8937bae added %d %d to error message, try to track down the uid / smb_uid mismatch
(This used to be commit ec918ba144e7c1bd1689007143ca2b8bee604768)
1999-07-15 17:50:27 +00:00
Luke Leighton
c553c01c86 removed strncpy()
(This used to be commit 4bdff2748956a61f12a92e19a9af98c7b9668e8f)
1999-07-14 18:16:57 +00:00
Luke Leighton
d2b2dff2e8 dfs parsed string length was being set explicitly to value "6", overwriting
the correct length.
(This used to be commit 5d1fad53c2bdfef63930e0b9d5cc460c9740066e)
1999-07-13 19:52:33 +00:00
Luke Leighton
d9a18c82d1 Jean-Francois Micouleau's rewrite of Nigel William's DFS support
(This used to be commit e6116c40d4d0473a7412e82791afd9f44e4905a4)
1999-07-12 21:33:11 +00:00
Luke Leighton
ac61e4aee2 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)
1999-07-12 18:57:05 +00:00
Luke Leighton
8f1404739f 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)
1999-07-12 18:46:15 +00:00
Luke Leighton
527820d306 oops, refused lm when ntlmv2 was true not false/auto. oops!
(This used to be commit 6b4b24d2208b1b076dfc2f7202917ca0acaeb398)
1999-07-07 16:44:38 +00:00
Luke Leighton
e71801c3de reporting failure to accept ntlmv2 (only) with down-level protocols (LANMAN1
and below).
(This used to be commit be7b978249ddb5e2e94aa160a360fecbf51f016e)
1999-07-06 21:26:39 +00:00
Luke Leighton
ec711742c0 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)
1999-07-06 21:25:42 +00:00
Luke Leighton
73891ca8e4 improving authentication code (tidyup).
(This used to be commit ab1a6aa42db5217f025941fb5107436556bc23b7)
1999-06-29 18:47:06 +00:00
Luke Leighton
07afc549e2 debugging of NBT messages added.
(This used to be commit ceb20adb3c924818201fa8992e19e82f45b40710)
1999-06-24 18:50:55 +00:00
Tim Potter
731c7f2ecf 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)
1999-06-13 04:14:24 +00:00
Matthew Chapman
6aa63bd761 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)
1999-06-02 04:11:50 +00:00
Tim Potter
798fdf4fd8 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)
1999-05-06 23:52:00 +00:00
Luke Leighton
150645f955 Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack
(This used to be commit 899fc053c50448db65092d9f25fea99433cfb29f)
1999-05-06 18:05:45 +00:00
Luke Leighton
89d51caba5 added server ntlmv2 false/auto/true parameter, defaults to off.
(This used to be commit 209944dabc764c6ea0c471e7868306c7d8d020d4)
1999-05-01 01:41:28 +00:00
Jean-François Micouleau
be552ca350 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)
1999-04-27 10:43:32 +00:00
Tim Potter
025493a3c9 Rewrite of VFS initialisation routines.
(This used to be commit acc1c9e49cd40a600479a1a586d314b42e2cdf77)
1999-04-20 03:42:48 +00:00
Tim Potter
c1d60a9b26 Added dummy connect and disconnect VFS operations to avoid the
possibilty of NULL function pointers being called.

Changed arguments to fsync() function to break dependency on
connection_struct.
(This used to be commit f6d0b55e92cc5250dc65f65c8689bf96cf7001df)
1999-04-20 03:38:22 +00:00
Tim Potter
b7100673fe Changed the way a VFS is initialised. The vfs_init() function is
executed from the VFS object file and it returns a pointer to a
vfs_ops structure.  If any of the function pointers in vfs_ops are
NULL, then they are replaced with the standard disk functions.  This
should allow disk-related VFS modules to be easily added.  I've
written an auditing VFS module which logs various calls (connect,
disconnect, mkdir, rmdir, open and a few others) to syslog in a couple
of pages of code.

Thanks to tridge for various useful suggestions.
(This used to be commit 346c78d7078d87bc95abc274f2bc66476aeee54c)
1999-04-20 03:37:11 +00:00
Tim Potter
1e1a52bb5f Changed arguments to fsync() function to break dependency on
connection_struct.
(This used to be commit ee6f826ccc0897a4538f6f9a560127c54a4c4038)
1999-04-20 03:29:05 +00:00
Tim Potter
bc6858805b Removed unused vfs_read_data() function at the request of tridge.
Removed unnecessary SSL stuff from vfs_write_data().
(This used to be commit fdbe79c1c3061c844c1eb859e3e40634a098a8f3)
1999-04-14 07:21:48 +00:00
Matthew Chapman
68e1888fd3 Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
(This used to be commit ca540c21f78b4bc8ca36ac3d5af2b8f67cf716c3)
1999-04-08 05:36:39 +00:00
Tim Potter
ab0d0a6f4e Always do a compile before CVS commit! )-:
(This used to be commit 0f37e900fa0744573754796916abf967fee05ea2)
1999-04-08 03:13:33 +00:00
Tim Potter
06c7ec8485 Forgot about closedir() function for VFS. Hoo embarassing.
(This used to be commit c1cbe07c0391c36066b068fdd42bf1aa40259a5c)
1999-04-08 03:01:18 +00:00
Tim Potter
44784f69e0 Under IRIX, a void function may return a value, even if that value is
void!
(This used to be commit e15da6882426edd39ff7fdcd47f1be30c053d4ec)
1999-04-05 23:35:50 +00:00
Tim Potter
4085fb08fd Fix incorrect conversion of fd_attempt_open() calls to vfs_ops.open().
Use VFS I/O for fd_attempt_open() and check_access_allowed_for_current_user().
(This used to be commit abf31ca66f3dab1b8bd7772f83e736e41afb4b1e)
1999-04-05 05:19:34 +00:00
Tim Potter
a4194191ce Use VFS I/O for stat_cache_lookup()
(This used to be commit 5ece1fcffbc5a5062c02edf6f2ecb405c2a2f43e)
1999-04-05 05:18:44 +00:00
Tim Potter
69ae7902bb Disable VFS routines if no libdl available.
(This used to be commit cbfd8a8990b4d06d0c866274e7d28e4a5e384686)
1999-04-05 05:18:07 +00:00