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

2831 Commits

Author SHA1 Message Date
Luke Leighton
73891ca8e4 improving authentication code (tidyup).
(This used to be commit ab1a6aa42db5217f025941fb5107436556bc23b7)
1999-06-29 18:47:06 +00:00
Luke Leighton
1dc6c6c7ca use nmb_safe_namestr.
(This used to be commit de9a38b0bcb5adcb6e502f2200d3e84bdcbdfc48)
1999-06-24 19:09:03 +00:00
Luke Leighton
f63e807048 safe string version of nmb_namestr.
(This used to be commit 250621b3cec5fc463d348432d1d0ff5fb59e7a29)
1999-06-24 19:02:37 +00:00
Luke Leighton
cae3620b2e safe string error reporting functions (found a potential buffer overflow
of a pstrcpy into an fstring).
(This used to be commit ac0060443de800fec9042b69b299ff2e9128a31c)
1999-06-24 18:58:08 +00:00
Luke Leighton
07afc549e2 debugging of NBT messages added.
(This used to be commit ceb20adb3c924818201fa8992e19e82f45b40710)
1999-06-24 18:50:55 +00:00
Luke Leighton
0f6896b7a0 #ifdef'd out hashed_getpwnam.
(This used to be commit 1d2557cc27b146aa88f70d4b973fd2178f90718b)
1999-06-24 18:49:42 +00:00
Jean-François Micouleau
0c927f2b1b 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
(This used to be commit 8d73f83b6c112327a51c0df2e96a1866deb13c3a)
1999-06-22 18:42:10 +00:00
Tim Potter
76f2829428 make proto
(This used to be commit 44f19b5062d0dc7beef8fa9a1c10c9ab6be5cae1)
1999-06-13 04:49:13 +00:00
Tim Potter
0132160229 Return a (void *)0 instead of NULL in readdir64() wrapper.
(This used to be commit d78224a7d27097fa00d9e2a7b02efd7383d833ff)
1999-06-13 04:27:57 +00:00
Tim Potter
74e19e5b81 Return a #error if no functions could be found to wrap around.
(This used to be commit 36f9ce7993adc5a26e808842233108f28b8fdebf)
1999-06-13 04:26:58 +00:00
Tim Potter
cae193606d Modified to cope with functions that return a const something.
(This used to be commit 56738ec5263edba23d8337dde27e7da45ec06490)
1999-06-13 04:15:30 +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
Tim Potter
eaa085e8a7 Hived off debugging code from smb.h and put into debug.h
(This used to be commit afe5be3cf62b90100861e2433ea885f5d6f8708c)
1999-06-13 04:01:08 +00:00
Alexandre Oliva
042213eb22 Use ${1+"$@"} instead of $*
Reported by SATOH Fumiyasu <fumiya@cij.co.jp>
(This used to be commit 6cd8d68965734ac24effde927c689f7d5202cde1)
1999-06-10 10:16:26 +00:00
Tim Potter
b097ddb724 Bumped version number in README to avoid confusion with SAMBA_2_0 branch.
(This used to be commit 341cf8aa8ee9ba10e8777d21dbbb31769f710692)
1999-06-07 23:28:39 +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
Matthew Chapman
99e42c0656 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.
(This used to be commit c3c25e762fbc30d5663323f23449c913f2ce4b0e)
1999-06-02 03:19:20 +00:00
Tim Potter
c2919e499a Avoid a symbol conflict with /usr/include/sys/vfs.h under AIX.
Thanks to Steve Noyd Jones <noyd@u.washington.edu>
(This used to be commit 117d369aed6576b5932d3f973a64ca8b6ed921dc)
1999-05-11 23:58:20 +00:00
Luke Leighton
810d9a1627 variation of random SMBtrans2. random delays in between reconnections
increased.  size of large random buffer decreased.  number of reconnection
attempts increased.
(This used to be commit 980a7b11f3dabce561a0ed02041695451bfeb391)
1999-05-07 20:21:30 +00:00
Luke Leighton
f84a04c59a the times in sam_user_info_23 may not be in the right order
(This used to be commit 34e623d607b45bce09ab2f98f3735cfbf5538dbf)
1999-05-07 18:21:38 +00:00
Luke Leighton
94a4094f44 had to move day display names into lib/util, to get rpctorture to compile.
(This used to be commit 8c80742e4e5604bc667314e51c47924efd65df49)
1999-05-07 18:20:59 +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
48c3765a98 clean-up of cache-getpw-hash code needed (make proto showed up loads
of functions that should be static).
(This used to be commit 06fce76e535f151ff819210faf39dd77b9fcae08)
1999-05-06 18:13:23 +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
c6e5eb5bc2 added 2 more (unknown) NTLMSSP negotiation bits
(This used to be commit 0ddc301b690abfa5fafbf2eb9a65fefc1ef58afb)
1999-05-06 18:02:39 +00:00
Luke Leighton
d58b440fad alignment needed after unicode string names in password change.
(This used to be commit e66b6afc699593789e7a8372ddaa407c320cd15d)
1999-05-06 18:02:05 +00:00
Jean-François Micouleau
4e5bf481fb last part of RPC api change.
and of rpcclient eventlog funtion

	Jean Francois
(This used to be commit 7fc8659e83bf0269df297016beac6793ff0bdf32)
1999-05-03 22:04:02 +00:00
Jean-François Micouleau
9ac038817e Changed the RPC api definition now first arg is a pipe_struct
found some memory leak in the spoolss code.

	Jean Francois
(This used to be commit 958591abd1645aaa459540a232231d380d879219)
1999-05-03 22:00:33 +00:00
Jean-François Micouleau
60c211a3ab 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
(This used to be commit 66b4b896fbcabb964a427d0c0aa2f57997e0f6bb)
1999-05-03 21:52:29 +00:00
Matthew Chapman
e3a888d5a9 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
(This used to be commit f456dcf08ec96c631f5e6f2e857115d4bbf94d1b)
1999-05-01 05:56:55 +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
Luke Leighton
d6ba4580d7 md5 and hmac_md5
(This used to be commit 5777c1fb12edca8e57e9d5911428f70db2cf9a62)
1999-04-30 05:37:55 +00:00
Andrew Tridgell
4d24845de6 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.
(This used to be commit d48e452915ab92ba431ca8b40838a6bb8ed31640)
1999-04-28 02:00:38 +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
Jean-François Micouleau
de0c233a7a Adding RPC spoolss code support and some new low-level printing functions.
Jean Francois
(This used to be commit 9e8192cc674db7551569d23982877dd25c488b50)
1999-04-27 10:13:02 +00:00
Matthew Chapman
efd4ae27a6 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.
(This used to be commit 568c40cc65e46590ba1e9850662934f1a28bd83d)
1999-04-23 23:49:46 +00:00
Matthew Chapman
16758a4252 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
(This used to be commit cf8c476d2eec24c150877b6bb8af7f7875cc1840)
1999-04-23 15:01:35 +00:00
Matthew Chapman
2bc0641b88 Added new define NT_STATUS_MORE_ENTRIES = 0x105.
(This used to be commit 52b4fd5b55c22deb691124b743ae9d3beb33b39e)
1999-04-23 14:48:22 +00:00
Matthew Chapman
7fe5ba774b 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.
(This used to be commit cf30a472f702d7b50c3a85e2cf2f55b46a2bd452)
1999-04-23 14:47:45 +00:00
Tim Potter
9837c863c2 Make proto for VFS init changes and VFS fsync() stuff.
(This used to be commit fc53314032ddfb6c2baf128399f43b42316417eb)
1999-04-20 03:44:06 +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
287476e8a0 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.
(This used to be commit c72de36748aedb6b478fe32d18e77f85e34abfb0)
1999-04-20 03:31:12 +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
1fa178f6ce Broke out of smb.h
Changed arguments to fsync() function to break dependency on
connection_struct.
(This used to be commit 373ffe77599275b5cb17fed90ca0737785133b54)
1999-04-20 03:28:46 +00:00
Andrew Tridgell
4c5c9d6734 open_socket_in() takes a different number of parameters in the head
branch. We need that merge soon!
(This used to be commit 5fb06c603efe08ea64da602de848b79fea6505c0)
1999-04-17 14:13:06 +00:00
Andrew Tridgell
388a408a73 fixed a typo
(This used to be commit 12d55d208a04b6466035be425173f20c24be094a)
1999-04-17 14:09:15 +00:00
Andrew Tridgell
a32c926289 damn, new files need to be added to the head branch first, I've told
other people this before then forgot myself :)
(This used to be commit a116228d37fdd18979caec6765394e79be49fa99)
1999-04-17 14:06:57 +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