1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

2850 Commits

Author SHA1 Message Date
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
Luke Leighton
1d2557cc27 #ifdef'd out hashed_getpwnam. 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
8d73f83b6c 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
0001-01-01 00:00:00 +00:00
Tim Potter
44f19b5062 make proto 0001-01-01 00:00:00 +00:00
Tim Potter
d78224a7d2 Return a (void *)0 instead of NULL in readdir64() wrapper. 0001-01-01 00:00:00 +00:00
Tim Potter
36f9ce7993 Return a #error if no functions could be found to wrap around. 0001-01-01 00:00:00 +00:00
Tim Potter
56738ec526 Modified to cope with functions that return a const something. 0001-01-01 00:00:00 +00:00
Tim Potter
36d7cb4ccc 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.
0001-01-01 00:00:00 +00:00
Tim Potter
afe5be3cf6 Hived off debugging code from smb.h and put into debug.h 0001-01-01 00:00:00 +00:00
Alexandre Oliva
6cd8d68965 Use ${1+"$@"} instead of $*
Reported by SATOH Fumiyasu <fumiya@cij.co.jp>
0001-01-01 00:00:00 +00:00
Tim Potter
341cf8aa8e Bumped version number in README to avoid confusion with SAMBA_2_0 branch. 0001-01-01 00:00:00 +00:00
Matthew Chapman
0e0c310a3e 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.
0001-01-01 00:00:00 +00:00
Matthew Chapman
c3c25e762f 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.
0001-01-01 00:00:00 +00:00
Tim Potter
117d369aed Avoid a symbol conflict with /usr/include/sys/vfs.h under AIX.
Thanks to Steve Noyd Jones <noyd@u.washington.edu>
0001-01-01 00:00:00 +00:00
Luke Leighton
980a7b11f3 variation of random SMBtrans2. random delays in between reconnections
increased.  size of large random buffer decreased.  number of reconnection
attempts increased.
0001-01-01 00:00:00 +00:00
Luke Leighton
34e623d607 the times in sam_user_info_23 may not be in the right order 0001-01-01 00:00:00 +00:00
Luke Leighton
8c80742e4e had to move day display names into lib/util, to get rpctorture to compile. 0001-01-01 00:00:00 +00:00
Tim Potter
c33c6330e3 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
06fce76e53 clean-up of cache-getpw-hash code needed (make proto showed up loads
of functions that should be static).
0001-01-01 00:00:00 +00:00
Luke Leighton
899fc053c5 Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack 0001-01-01 00:00:00 +00:00
Luke Leighton
0ddc301b69 added 2 more (unknown) NTLMSSP negotiation bits 0001-01-01 00:00:00 +00:00
Luke Leighton
e66b6afc69 alignment needed after unicode string names in password change. 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
7fc8659e83 last part of RPC api change.
and of rpcclient eventlog funtion

	Jean Francois
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
958591abd1 Changed the RPC api definition now first arg is a pipe_struct
found some memory leak in the spoolss code.

	Jean Francois
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
66b4b896fb 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
0001-01-01 00:00:00 +00:00
Matthew Chapman
f456dcf08e 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
0001-01-01 00:00:00 +00:00
Luke Leighton
209944dabc added server ntlmv2 false/auto/true parameter, defaults to off. 0001-01-01 00:00:00 +00:00