1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

3076 Commits

Author SHA1 Message Date
Tim Potter
bf61fdace8 Moved a whole bunch of macros out of smb.h and into their own #include
file.
0001-01-01 00:00:00 +00:00
Luke Leighton
30620b93e5 Tim Potter spotted compile error: matthew had added BDC support to smbd,
which i didn't know about!
0001-01-01 00:00:00 +00:00
Luke Leighton
2331aa32ab BDC support. 0001-01-01 00:00:00 +00:00
Luke Leighton
50f7bd8a9c comments requested by jeremy as to why NT/95 NULL-password distinction hack
was modified.
0001-01-01 00:00:00 +00:00
Luke Leighton
43d3d2336f use pstring for at command instead of fstring 0001-01-01 00:00:00 +00:00
Alexandre Oliva
b0a59e90c5 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? :-)
0001-01-01 00:00:00 +00:00
Alexandre Oliva
407eec6316 Avoid multiple ``Updating dependencies'' messages before .deps/.stamp
is created
0001-01-01 00:00:00 +00:00
Luke Leighton
7a58895ff2 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
0d1f5e5a6d check to see if copy_passwd_struct() ever receives its own internal
buffer as an argument :-) :-)
0001-01-01 00:00:00 +00:00
Luke Leighton
93298bca1c copy of password struct needed to be made prior to calling copy_passwd_struct
found by Bertl <bs@vpnet.at>.
0001-01-01 00:00:00 +00:00
Herb Lewis
1a0e378a6f add Windows 2000 version of Plain Text Password registry entry 0001-01-01 00:00:00 +00:00
Luke Leighton
44e6d4c1b0 work-around for win95 NULL session bug: NULL password actually being
placed in data stream before username / domain, whereas NT doesn't do
this...
0001-01-01 00:00:00 +00:00
Luke Leighton
00d4aebce9 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
d9ada8b55d dfs issues 0001-01-01 00:00:00 +00:00
Luke Leighton
ec918ba144 added %d %d to error message, try to track down the uid / smb_uid mismatch 0001-01-01 00:00:00 +00:00
Luke Leighton
80d3677843 code from bertl to allow remap of default built-in names to anything.
parameter is "builtin rid file".
Copyright 1999 Bertl <bp@vpnet.at>
0001-01-01 00:00:00 +00:00
Luke Leighton
4bdff27489 removed strncpy() 0001-01-01 00:00:00 +00:00
Luke Leighton
ef6df590fd 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
5d1fad53c2 dfs parsed string length was being set explicitly to value "6", overwriting
the correct length.
0001-01-01 00:00:00 +00:00
Luke Leighton
e6116c40d4 Jean-Francois Micouleau's rewrite of Nigel William's DFS support 0001-01-01 00:00:00 +00:00
Luke Leighton
98d43b20dc 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
270981960b 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
12ee037d44 anon passwd connection: passlen=1; ntpasslen=0. 0001-01-01 00:00:00 +00:00
Luke Leighton
91d5bda9ad NULL pwdb_xxx_map_names() parameter can be passed here (which is a bug
anyway!)
0001-01-01 00:00:00 +00:00
Tim Potter
795fa6a518 Partial GNU readline support for rpcclient. Only command line history
and command completion implemented.
0001-01-01 00:00:00 +00:00
Tim Potter
236022071f When making anonymous connections, must pass pointers to real nt
password and password length variables not constants.
0001-01-01 00:00:00 +00:00
Tim Potter
26d66071fb Put back in GNU readline support for smbclient accidentally trashed by
tridge in the clientgen.c to clientutil.c conversion.
0001-01-01 00:00:00 +00:00
Tim Potter
4929513f13 Hived off string routines into a separate file. 0001-01-01 00:00:00 +00:00
Luke Leighton
7aff19ba57 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
7d63376417 Ignacio Coupeau <icoupeau@unav.es> suggested modification to ldap search. 0001-01-01 00:00:00 +00:00
Luke Leighton
47e54d049a allow safe_strcpy() to pass 0 for max length of string, resulting in no
effect.
0001-01-01 00:00:00 +00:00
Luke Leighton
389c17a225 issues with pwdb_sam_map_names() and pwdb_smb_map_names() returning NULL.
found by Bertl <bs@vpnet.at>
0001-01-01 00:00:00 +00:00
Luke Leighton
16371d8fe1 use of dos_mkdir() in generate_sam_sid() should be unix mkdir 0001-01-01 00:00:00 +00:00
Luke Leighton
baab308152 added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names() 0001-01-01 00:00:00 +00:00
Luke Leighton
6b4b24d220 oops, refused lm when ntlmv2 was true not false/auto. oops! 0001-01-01 00:00:00 +00:00
Luke Leighton
436a891455 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().
0001-01-01 00:00:00 +00:00
Luke Leighton
df756f3723 added jeremy's sys_getpwnam() and sys_getpwuid() routines from 2_0 tree. 0001-01-01 00:00:00 +00:00
Luke Leighton
b60eb8c9fc use of safe_cli_errstr() and cli_establish_connection(). 0001-01-01 00:00:00 +00:00
Luke Leighton
be7b978249 reporting failure to accept ntlmv2 (only) with down-level protocols (LANMAN1
and below).
0001-01-01 00:00:00 +00:00
Luke Leighton
e655e68474 smb_password_ok() checking incorrectly whether lm password exists.
when lmcompatibilitylevel=0x2 on nt sp4+ clients, lm# is not sent.
0001-01-01 00:00:00 +00:00
Luke Leighton
e6d43ddb1b oops, set password lengths to a boolean value. 0001-01-01 00:00:00 +00:00
Luke Leighton
41f071642d 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().
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
bda429eb73 many small bugs...
J.F.
0001-01-01 00:00:00 +00:00
Luke Leighton
bc8c46bc08 removed old code/comments. 0001-01-01 00:00:00 +00:00
Luke Leighton
b0539d4340 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
ab1a6aa42d improving authentication code (tidyup). 0001-01-01 00:00:00 +00:00
Luke Leighton
de9a38b0bc use nmb_safe_namestr. 0001-01-01 00:00:00 +00:00
Luke Leighton
250621b3ce safe string version of nmb_namestr. 0001-01-01 00:00:00 +00:00
Luke Leighton
ac0060443d safe string error reporting functions (found a potential buffer overflow
of a pstrcpy into an fstring).
0001-01-01 00:00:00 +00:00
Luke Leighton
ceb20adb3c debugging of NBT messages added. 0001-01-01 00:00:00 +00:00