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

2274 Commits

Author SHA1 Message Date
Tim Potter
0132160229 Return a (void *)0 instead of NULL in readdir64() wrapper.
(This used to be commit d78224a7d2)
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 36f9ce7993)
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 56738ec526)
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 36d7cb4ccc)
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 afe5be3cf6)
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 6cd8d68965)
1999-06-10 10:16:26 +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 0e0c310a3e)
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 c3c25e762f)
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 117d369aed)
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 980a7b11f3)
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 34e623d607)
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 8c80742e4e)
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 c33c6330e3)
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 06fce76e53)
1999-05-06 18:13:23 +00:00
Luke Leighton
150645f955 Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack
(This used to be commit 899fc053c5)
1999-05-06 18:05:45 +00:00
Luke Leighton
c6e5eb5bc2 added 2 more (unknown) NTLMSSP negotiation bits
(This used to be commit 0ddc301b69)
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 e66b6afc69)
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 7fc8659e83)
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 958591abd1)
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 66b4b896fb)
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 f456dcf08e)
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 209944dabc)
1999-05-01 01:41:28 +00:00
Luke Leighton
d6ba4580d7 md5 and hmac_md5
(This used to be commit 5777c1fb12)
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 d48e452915)
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 4c515804b7)
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 9e8192cc67)
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 568c40cc65)
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 cf8c476d2e)
1999-04-23 15:01:35 +00:00
Matthew Chapman
2bc0641b88 Added new define NT_STATUS_MORE_ENTRIES = 0x105.
(This used to be commit 52b4fd5b55)
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 cf30a472f7)
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 fc53314032)
1999-04-20 03:44:06 +00:00
Tim Potter
025493a3c9 Rewrite of VFS initialisation routines.
(This used to be commit acc1c9e49c)
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 f6d0b55e92)
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 346c78d707)
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 c72de36748)
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 ee6f826ccc)
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 373ffe7759)
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 5fb06c603e)
1999-04-17 14:13:06 +00:00
Andrew Tridgell
388a408a73 fixed a typo
(This used to be commit 12d55d208a)
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 a116228d37)
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 fdbe79c1c3)
1999-04-14 07:21:48 +00:00
Tim Potter
069f1b5ff2 Fix compile warning in nametouid().
(This used to be commit deb6dfb4e0)
1999-04-12 01:39:46 +00:00
Matthew Chapman
5be247c62c Allow "Yes" and "No" as well as "True" and "False" in the three-state
enumeration.
(This used to be commit 4ed67ccf1c)
1999-04-11 11:47:33 +00:00
Matthew Chapman
9c2520e6cd Trying to improve DC location & browsing performance for the average user
who doesn't know what an LMB or DMB is.

* check_master_browser_exists now performs the check the first time
around, so if there is indeed no master browser then Samba takes up the job
much faster.

* Upped default OS level to 32. There is no reason why some stupid little
Windows box should become LMB instead of a Samba *server*.

* "domain master" now defaults to "auto". Currently this attempts to
become DMB iff Samba is the PDC (ala Windows NT). "preferred master" also
defaults to "auto", which enables preferred master iff Samba is DMB.

* lp_server_role now just returns the predetermined role, rather than
working it out each time, since the server role is becoming very heavily
used (esp for the BDC code).
(This used to be commit 4a23a358b5)
1999-04-11 10:23:19 +00:00
Matthew Chapman
7930cb0dfc Fixed rpcclient's samuser command.
(This used to be commit 60a8b478ac)
1999-04-11 02:34:44 +00:00
Matthew Chapman
1c71256291 Incorrect length (number of unicode characters rather than buffer size)
passed to ascii_to_unibuf in make_buffer2 was breaking User Manager.
(This used to be commit c518cef78d)
1999-04-11 01:39:16 +00:00
Tim Potter
94928d4de7 Modification to compile under egcs 2.91.63.
(This used to be commit d04c530836)
1999-04-11 00:27:43 +00:00
Matthew Chapman
a1d6f07e54 Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Added -b switch to smbpasswd (for a BDC (server) trust account).
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
(This used to be commit 6f2b37bfc5)
1999-04-08 05:37:15 +00:00
Matthew Chapman
68e1888fd3 Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
(This used to be commit ca540c21f7)
1999-04-08 05:36:39 +00:00
Matthew Chapman
373ea639e0 Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
  BUFFER2 is really a "unibuf" in my terminology and we should treat it as
  such.
* Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4).
* Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication.
  Still experimental and incomplete, with a few too many NULL security
  descriptors lying around (must go look at Jeremy's SD code). Haven't
  worked out password encryption yet either.
  However, the XXX_INFO structures I've added to rpc_netlogon.h are quite
  nice as they give some insight into how these objects are stored in the
  SAM.
(This used to be commit 7b830350eb)
1999-04-08 05:36:15 +00:00