summaryrefslogtreecommitdiffstats
path: root/source/web
Commit message (Collapse)AuthorAgeFilesLines
...
* tridge the destroyer returns!Andrew Tridgell1998-09-051-168/+0
| | | | | | | | | | | | | | | | | | | | | | prompted by the interpret_security() dead code that Jean-Francois pointed out I added a make target "finddead" that finds potentially dead (ie. unused) code. It spat out 304 function names ... I went through these are deleted many of them, making others static (finddead also reports functions that are used only in the local file). in doing this I have almost certainly deleted some useful code. I may have even prevented compilation with some compile options. I apologise. I decided it was better to get rid of this code now and add back the one or two functions that are needed than to keep all this baggage. So, if I have done a bit too much "destroying" then let me know. Keep the swearing to a minimum :) One bit I didn't do is the ubibt code. Chris, can you look at that? Heaps of unused functions there. Can they be made static?
* use /swat/ prefix in both inetd and cgi modes, to enable a static header.htmlAndrew Tridgell1998-09-022-19/+8
|
* More abstraction of file system data types, to move to a 64Jeremy Allison1998-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
* spruced up SWAT a bit - it now uses the new Samba logo at the top andAndrew Tridgell1998-09-011-21/+27
| | | | a table to give it a little border
* fixed a bug in the base64 hanlding that led to auth failures for someAndrew Tridgell1998-09-011-2/+6
| | | | passwords with SWAT
* this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1998-08-151-1/+0
| | | | | | | in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands.
* configure: Changes for extra headers.Jeremy Allison1998-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-141-2/+0
| | | | | | | | 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.
* split the system password checking routines out of smbd/password.c andAndrew Tridgell1998-08-101-1/+1
| | | | | into passdb/pass_check.c. This means SWAT no longer needs to link to smbd/password.c
* some merge cleanupsAndrew Tridgell1998-07-291-0/+0
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-0/+1
|
* This is a security audit change of the main source.Jeremy Allison1998-05-123-9/+9
| | | | | | | | | | | | | | | | | | 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.
* changed to use slprintf() instead of sprintf() just aboutAndrew Tridgell1998-05-111-1/+1
| | | | | | | 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.
* clitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'Jeremy Allison1998-05-081-5/+5
| | | | | | | | | 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.
* The globals section now shows non-default variables (like theHerb Lewis1998-05-082-23/+125
| | | | | | | | | | | 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.
* Added patch from Bruce Tenison <btenison@dibbs.net> to allow encryptedJeremy Allison1998-04-301-0/+2
| | | | | | | | 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.
* Getting ready for first Red Hat Linux RPMs for 1.9.19 pre-alpha releaseJohn Terpstra1998-03-211-1/+1
|
* don't set the Expires header on any page generated from a POST. ThisAndrew Tridgell1998-03-181-1/+3
| | | | | stops the "POST data has expired" problem when using the back button in netscape.
* moved the refresh script to the end of the page so that silly thingsAndrew Tridgell1998-03-181-9/+12
| | | | like a refresh of 0 actually work.
* changed the method used for auto-reload on the status page to useAndrew Tridgell1998-03-182-6/+22
| | | | JavaScript. This avoids the nasty inetd problem.
* oops, I got the sense of the show_defaults parameter to lp_dump()Andrew Tridgell1998-03-171-1/+1
| | | | wrong.
* when CGI_LOGGING is on log the host name and IPAndrew Tridgell1998-03-171-1/+3
| | | | this is just so I can snoop on who is looking at the demo :-)
* this isn't a big commit, it just looks like it :-)Andrew Tridgell1998-03-172-0/+22
| | | | | | | | | 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.
* - added "Full View"/"Normal View" on the "view config" pageAndrew Tridgell1998-03-172-7/+61
| | | | | - added the ability to auto-refresh the status page. There is a problem with this (it can kill inetd!). Hopefully we can fix that.
* show full path in ps by setting it in argv[0]Andrew Tridgell1998-03-171-2/+2
|
* fixed call to execl() to get argv[0] right (thanks to Herb)Andrew Tridgell1998-03-171-2/+2
|
* changed the date formattingAndrew Tridgell1998-03-151-3/+11
|
* - claim the null connection after the session request to mak sure weAndrew Tridgell1998-03-151-9/+10
| | | | | | have the netbios name - fix another kill connection bug
* safer killing of connections - it ensures the process is still a validAndrew Tridgell1998-03-151-7/+13
| | | | smbd when killing
* - added the ability to kill off individual connections from SWAT (fromAndrew Tridgell1998-03-153-137/+205
| | | | | | | | | 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
* a smaller backgroundAndrew Tridgell1998-03-151-1/+1
|
* added a background image based on Pauls SAMBA logo but manipulated aAndrew Tridgell1998-03-141-1/+1
| | | | little with GIMP
* new files to support starting/stopping the serverAndrew Tridgell1998-03-142-0/+160
|
* added the ability to start/stop the server from SWAT.Andrew Tridgell1998-03-141-3/+46
| | | | | | | | 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.
* if a local parameter is changed at the global level then propogate theAndrew Tridgell1998-03-141-1/+23
| | | | change to all shares that are currently set to the default value.
* - added separatorsAndrew Tridgell1998-03-141-13/+43
| | | | - added "view config" button
* another fix for running under cgi-binAndrew Tridgell1998-03-141-2/+2
|
* fixed support for running swat via cgi-binAndrew Tridgell1998-03-142-10/+50
|
* use password_ok() instead of calling crypt()Andrew Tridgell1998-03-121-11/+2
|
* added status page to SWAT. Similar to smbstatus output but in a HTMLAndrew Tridgell1998-03-101-2/+109
| | | | table
* added a "home" iconAndrew Tridgell1998-03-101-0/+1
|
* added Date and Expires headers in the mini web server so clients knowAndrew Tridgell1998-03-102-10/+26
| | | | what they can cache.
* - remove redundent strstr()Andrew Tridgell1998-03-082-6/+1
| | | | - don't show printers in shares page
* allow for non-authenticated SWAT for demo purposesAndrew Tridgell1998-03-082-5/+8
|
* Jeremy is going to hate me ...Andrew Tridgell1998-03-082-2/+494
| | | | | | | | 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 is *not* a big change (although it looks like one).Jeremy Allison1998-01-221-1/+1
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* propogate my cgi changes to the main branchAndrew Tridgell1998-01-121-1/+1
|
* minor wsmbconf and cgi changesAndrew Tridgell1997-11-231-2/+17
|
* this new cgi code includes the ability to act as a mini web server,Andrew Tridgell1997-11-221-67/+510
| | | | | allowing people to use web configuration of Samba without installing a web server
* cgi.c is a simple set of CGI manipulation routinesAndrew Tridgell1997-09-111-0/+163
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.