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

47 Commits

Author SHA1 Message Date
Andrew Tridgell
7b07680d3b spruced up SWAT a bit - it now uses the new Samba logo at the top and
a table to give it a little border
(This used to be commit d35c6e8098)
1998-09-01 06:03:03 +00:00
Andrew Tridgell
296038d498 fixed a bug in the base64 hanlding that led to auth failures for some
passwords with SWAT
(This used to be commit edcde70108)
1998-09-01 06:01:19 +00:00
Andrew Tridgell
127655cc88 this checkin gets rid of the global Files[] array and makes it local
in files.c

it should now be faily easy to expand the default MAX_OPEN_FILES to
many thousands.
(This used to be commit b088c804f9)
1998-08-15 07:27:34 +00:00
Jeremy Allison
e13aeea928 configure: Changes for extra headers.
configure.in: Source for header changes.
client/clitar.c: Fixed isXXX macros & debugs for gcc pedantic compile.
include/config.h.in: Added MEMSET, BZERO, MEMORY, RPCSVC_YPCLNT, STRINGS headers.
include/includes.h: Headers for the above.
include/smb.h: Made SIGNAL_CAST POSIX by default void (*)(int).
lib/access.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/charset.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/debug.c: Fixed signal functs.
lib/kanji.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/smbrun.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/util.c: Fixed isXXX macros & debugs for gcc pedantic compile.
libsmb/namequery.c: Fixed isXXX macros & debugs for gcc pedantic compile.
locking/shmem.c: Fixed isXXX macros & debugs for gcc pedantic compile.
locking/shmem_sysv.c: Fixed error messages in sysV stuff.
nmbd/asyncdns.c: Fixed signal functs.
nmbd/nmbd.c: Fixed isXXX macros & debugs for gcc pedantic compile.
passdb/passdb.c: Fixed isXXX macros & debugs for gcc pedantic compile.
passdb/smbpassfile.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/chgpasswd.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/ipc.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/nttrans.c: Fixed fsp code path.
smbd/password.c: fixed HAVE_YP_GET_DEFAULT_DOMAIN problem.
smbd/printing.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/reply.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/server.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/trans2.c: Fixed core dump bug.
smbd/uid.c: Fixed isXXX macros & debugs for gcc pedantic compile.
Jeremy.
(This used to be commit 1b9cbcd02e)
1998-08-15 01:19:26 +00:00
Andrew Tridgell
b9623ab59e this is the bug change to using connection_struct* instead of cnum.
Connections[] is now a local array in server.c

I might have broken something with this change. In particular the
oplock code is suspect and some .dll files aren't being oplocked when
I expected them to be. I'll look at it after I've got some sleep.
(This used to be commit c7ee025ead)
1998-08-14 17:38:29 +00:00
Andrew Tridgell
fa88efbbac split the system password checking routines out of smbd/password.c and
into passdb/pass_check.c. This means SWAT no longer needs to link to
smbd/password.c
(This used to be commit 90d93889d7)
1998-08-10 07:04:53 +00:00
Andrew Tridgell
8d42ee0f2c some merge cleanups
(This used to be commit 1d655b7c64)
1998-07-29 03:15:02 +00:00
Andrew Tridgell
64578c0589 merge from the autoconf2 branch to the main branch
(This used to be commit 3bda7ac417)
1998-07-29 03:08:05 +00:00
Jeremy Allison
f888868f46 This is a security audit change of the main source.
It removed all ocurrences of the following functions :

sprintf
strcpy
strcat

The replacements are slprintf, safe_strcpy and safe_strcat.

It should not be possible to use code in Samba that uses
sprintf, strcpy or strcat, only the safe_equivalents.

Once Andrew has fixed the slprintf implementation then
this code will be moved back to the 1.9.18 code stream.

Jeremy.
(This used to be commit 2d77445400)
1998-05-12 00:55:32 +00:00
Andrew Tridgell
ffc88e2d26 changed to use slprintf() instead of sprintf() just about
everywhere. I've implemented slprintf() as a bounds checked sprintf()
using mprotect() and a non-writeable page.

This should prevent any sprintf based security holes.
(This used to be commit 6b0c1733d2)
1998-05-11 06:35:45 +00:00
Jeremy Allison
9f57f01b14 clitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'
messages.
nttrans.c: More updates.
smb.h: Removed stuff that didn't belong in the smb_passwd struct. Persuaded Luke
       to use a new structure.
web/swat.c: Fixed gcc complaints about shadowing global 'string'.
Jeremy.
(This used to be commit 61c1dbb978)
1998-05-08 16:59:30 +00:00
Herb Lewis
51bc0c19c0 The globals section now shows non-default variables (like the
view config section does) in the basic view. There is also a
reset button to undo all changes you have made (that haven't
been committed). In addition each field now has a "Set Default"
button. Multi-choice fields are now select fields instead of
a set of radio buttons.

On the status screen I added a "restart" option for stopping then
starting smbd and nmbd.
(This used to be commit a6edde4f00)
1998-05-08 01:45:12 +00:00
Jeremy Allison
3eae1e3f8e Added patch from Bruce Tenison <btenison@dibbs.net> to allow encrypted
passwords to be stored over time, allowing a smbpasswd file migration.
Adds new parameter "update encrypted".
Will also add to 1.9.18 branch.
Docs update to follow.
Jeremy.
(This used to be commit 5d3e874d78)
1998-04-30 01:39:22 +00:00
John Terpstra
bee4067bd4 Getting ready for first Red Hat Linux RPMs for 1.9.19 pre-alpha release
(This used to be commit 4e424d0ba6)
1998-03-21 03:03:59 +00:00
Andrew Tridgell
002176a375 don't set the Expires header on any page generated from a POST. This
stops the "POST data has expired" problem when using the back button
in netscape.
(This used to be commit 112cf61cb6)
1998-03-18 07:51:57 +00:00
Andrew Tridgell
78dd0fe448 moved the refresh script to the end of the page so that silly things
like a refresh of 0 actually work.
(This used to be commit 4c04e1d2ae)
1998-03-18 07:44:27 +00:00
Andrew Tridgell
c8c61ac6a6 changed the method used for auto-reload on the status page to use
JavaScript. This avoids the nasty inetd problem.
(This used to be commit 9d9b138809)
1998-03-18 07:33:11 +00:00
Andrew Tridgell
e12cb8b610 oops, I got the sense of the show_defaults parameter to lp_dump()
wrong.
(This used to be commit b92c3b13d7)
1998-03-17 14:46:17 +00:00
Andrew Tridgell
d56fc8d169 when CGI_LOGGING is on log the host name and IP
this is just so I can snoop on who is looking at the demo :-)
(This used to be commit 78abb9fec3)
1998-03-17 12:37:06 +00:00
Andrew Tridgell
f996885676 this isn't a big commit, it just looks like it :-)
I needed the client_name() and client_addr() functions in swat so I
could tell who was connecting from where. The problem was that these
functions didn't take a file descriptor parameter they just used
the global "Client".

So I needed to change all calls to pass a parameter ... lots of files.
(This used to be commit a776058900)
1998-03-17 12:31:43 +00:00
Andrew Tridgell
59d7006b05 - added "Full View"/"Normal View" on the "view config" page
- added the ability to auto-refresh the status page. There is a
  problem with this (it can kill inetd!). Hopefully we can fix that.
(This used to be commit 4488d8932f)
1998-03-17 11:44:16 +00:00
Andrew Tridgell
8ffcec16fe show full path in ps by setting it in argv[0]
(This used to be commit 89a4dc6cf9)
1998-03-17 00:32:34 +00:00
Andrew Tridgell
9803496274 fixed call to execl() to get argv[0] right (thanks to Herb)
(This used to be commit aaa4db4de3)
1998-03-17 00:04:18 +00:00
Andrew Tridgell
7a418233e2 changed the date formatting
(This used to be commit 57aa1db47c)
1998-03-15 06:43:15 +00:00
Andrew Tridgell
86f5105fbc - claim the null connection after the session request to mak sure we
have the netbios name

- fix another kill connection bug
(This used to be commit c634b79987)
1998-03-15 03:06:50 +00:00
Andrew Tridgell
08a6e255fe safer killing of connections - it ensures the process is still a valid
smbd when killing
(This used to be commit 78675036e8)
1998-03-15 02:47:22 +00:00
Andrew Tridgell
d360320618 - added the ability to kill off individual connections from SWAT (from
the status page)
- split the claim_connection() code into its own file
- fixed the claim_connection() code to lock the file when manipulating
  it
- always claim a null connection at startup
- fixed a bug in the pidfile code
(This used to be commit abd4a17e21)
1998-03-15 02:37:52 +00:00
Andrew Tridgell
4dfe60de10 a smaller background
(This used to be commit bcec95740f)
1998-03-15 00:01:34 +00:00
Andrew Tridgell
3070005521 added a background image based on Pauls SAMBA logo but manipulated a
little with GIMP
(This used to be commit 57f4dfcbf3)
1998-03-14 23:55:27 +00:00
Andrew Tridgell
e02b05b565 new files to support starting/stopping the server
(This used to be commit 087981009d)
1998-03-14 13:00:09 +00:00
Andrew Tridgell
c063e9ec3e added the ability to start/stop the server from SWAT.
I needed to modify the way the pidfile is handled in nmbd and smbd to
do this. Jeremy, you may wish to look at what I've done as it probably
breaks the Whistle use of pidfiles. In particular I've removed the -f
option and instead smbd and nmbd always create a pidfile in the lock
directory.
(This used to be commit 20bb22d61b)
1998-03-14 12:57:58 +00:00
Andrew Tridgell
e2b50d04ad if a local parameter is changed at the global level then propogate the
change to all shares that are currently set to the default value.
(This used to be commit b0e1183b2c)
1998-03-14 11:24:01 +00:00
Andrew Tridgell
8326dad3d6 - added separators
- added "view config" button
(This used to be commit 486a059fe1)
1998-03-14 08:29:06 +00:00
Andrew Tridgell
0309230280 another fix for running under cgi-bin
(This used to be commit 6e2248532a)
1998-03-14 04:20:55 +00:00
Andrew Tridgell
d5c1af5d9f fixed support for running swat via cgi-bin
(This used to be commit 9dbfb16990)
1998-03-14 04:13:24 +00:00
Andrew Tridgell
e1f131bab8 use password_ok() instead of calling crypt()
(This used to be commit 53dc8ea5e3)
1998-03-12 02:42:39 +00:00
Andrew Tridgell
c0b06785c1 added status page to SWAT. Similar to smbstatus output but in a HTML
table
(This used to be commit 8e4a412dba)
1998-03-10 06:42:36 +00:00
Andrew Tridgell
0987de0b1a added a "home" icon
(This used to be commit 60ef0b31a0)
1998-03-10 05:47:01 +00:00
Andrew Tridgell
49a5dd09b9 added Date and Expires headers in the mini web server so clients know
what they can cache.
(This used to be commit b6055e40bb)
1998-03-10 04:56:58 +00:00
Andrew Tridgell
c03c56b2e2 - remove redundent strstr()
- don't show printers in shares page
(This used to be commit 2b4204a776)
1998-03-08 14:52:45 +00:00
Andrew Tridgell
6a37b245e3 allow for non-authenticated SWAT for demo purposes
(This used to be commit 6e1237568b)
1998-03-08 14:31:50 +00:00
Andrew Tridgell
35d67dd80a Jeremy is going to hate me ...
These are some hacks on SWAT. Maybe users will actually be able to
work out how to use it now.

Unfortunately these changes required some editing in loadparm.c and
smb.h which will make Jeremys merge job harder. Sorry!
(This used to be commit 674c88a6bf)
1998-03-08 14:14:49 +00:00
Jeremy Allison
55f400bd84 This is *not* a big change (although it looks like one).
This is merely updating the Copyright statements from 1997 to 1998.
It's a once a year thing :-).
NO OTHER CHANGES WERE MADE.
Jeremy.
(This used to be commit b9c1697723)
1998-01-22 13:27:43 +00:00
Andrew Tridgell
96eed00608 propogate my cgi changes to the main branch
(This used to be commit 215c97e83a)
1998-01-12 00:32:27 +00:00
Andrew Tridgell
74f06e4062 minor wsmbconf and cgi changes
(This used to be commit bca9c49e6f)
1997-11-23 02:42:22 +00:00
Andrew Tridgell
8d971f1db1 this new cgi code includes the ability to act as a mini web server,
allowing people to use web configuration of Samba without installing a
web server
(This used to be commit b4e05c360e)
1997-11-22 07:51:23 +00:00
Andrew Tridgell
926f4d9125 cgi.c is a simple set of CGI manipulation routines
wsmbconf.c is a rudimentary web based smb.conf editor. Its really
there just to demonstrate how such an editor can hook into loadparm.c,
I don't expect anyone to actually use it as is.

wsmbstatus.c is a simple web based smbstatus. Its probably broken.
(This used to be commit ced5205f72)
1997-09-11 02:17:16 +00:00