1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

2980 Commits

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

	Jean Francois
-
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
-
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
-
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
-
Luke Leighton
209944dabc added server ntlmv2 false/auto/true parameter, defaults to off. -
Luke Leighton
5777c1fb12 md5 and hmac_md5 -
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.
-
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
-
Jean-François Micouleau
9e8192cc67 Adding RPC spoolss code support and some new low-level printing functions.
Jean Francois
-
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.
-
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
-
Matthew Chapman
52b4fd5b55 Added new define NT_STATUS_MORE_ENTRIES = 0x105. -
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.
-
Tim Potter
fc53314032 Make proto for VFS init changes and VFS fsync() stuff. -
Tim Potter
acc1c9e49c Rewrite of VFS initialisation routines. -
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.
-
Tim Potter
346c78d707 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.
-
Tim Potter
c72de36748 Broke out vfs structures to separate header file.
Some cpp hackery to avoid redefining types used by vfs header file.

Added a vfs_connection_struct to connection_struct so it can be
freed when a VFS share is disconnected.
-
Tim Potter
ee6f826ccc Changed arguments to fsync() function to break dependency on
connection_struct.
-
Tim Potter
373ffe7759 Broke out of smb.h
Changed arguments to fsync() function to break dependency on
connection_struct.
-
Andrew Tridgell
5fb06c603e open_socket_in() takes a different number of parameters in the head
branch. We need that merge soon!
-
Andrew Tridgell
12d55d208a fixed a typo -
Andrew Tridgell
a116228d37 damn, new files need to be added to the head branch first, I've told
other people this before then forgot myself :)
-
Tim Potter
fdbe79c1c3 Removed unused vfs_read_data() function at the request of tridge.
Removed unnecessary SSL stuff from vfs_write_data().
-
Tim Potter
deb6dfb4e0 Fix compile warning in nametouid(). -