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

2291 Commits

Author SHA1 Message Date
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
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
Luke Leighton
5777c1fb12 md5 and hmac_md5 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d48e452915 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.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
4c515804b7 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
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
9e8192cc67 Adding RPC spoolss code support and some new low-level printing functions.
Jean Francois
0001-01-01 00:00:00 +00:00
Matthew Chapman
568c40cc65 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.
0001-01-01 00:00:00 +00:00
Matthew Chapman
cf8c476d2e 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
0001-01-01 00:00:00 +00:00
Matthew Chapman
52b4fd5b55 Added new define NT_STATUS_MORE_ENTRIES = 0x105. 0001-01-01 00:00:00 +00:00
Matthew Chapman
cf30a472f7 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.
0001-01-01 00:00:00 +00:00
Tim Potter
fc53314032 Make proto for VFS init changes and VFS fsync() stuff. 0001-01-01 00:00:00 +00:00
Tim Potter
acc1c9e49c Rewrite of VFS initialisation routines. 0001-01-01 00:00:00 +00:00
Tim Potter
f6d0b55e92 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.
0001-01-01 00:00:00 +00:00