summaryrefslogtreecommitdiffstats
path: root/source/web/swat.c
Commit message (Collapse)AuthorAgeFilesLines
* don't show equivalent enum options in swatAndrew Tridgell2000-09-131-5/+8
|
* two minor bugfixes for SCO UnixWare. The first is to catch SIGPIPE so that ↵Andrew Tridgell2000-04-111-0/+3
| | | | putmsg() inside their send() doesn't kill swat and the scond is to open /dev/null to replace stdin after we close that
* client/client.c:Jeremy Allison2000-02-251-14/+26
| | | | | | | libsmb/clientgen.c: Fixes for Win2k smbclient browsing. Other fixes implement smbpasswd -x user to delete users. Also allows swat to do the same. Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-72/+137
|
* mods to allow inter-domain trust accounts to be added to SAM databaseLuke Leighton1999-03-091-3/+18
| | | | using smbpasswd command.
* rpc_samr.h parse_samr.c srv_samr.c :Luke Leighton1998-12-011-1/+1
| | | | | | | | | | samr_query_aliasmembers (cool!) util_pwdb.c sids.c nmbd.c server.c smbpasswd.c swat.c : pwdb_initialise(BOOL is_server) now creates / reads DOMAIN_NAME.SID if is_server is True, and does LsaQueryInfoPolicy(levels 3 and 5) to obtain member and pdc sids.
* weekend work. user / group database API.Luke Leighton1998-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API...
* make the help links appear in a separate window, so you can read theAndrew Tridgell1998-11-271-1/+1
| | | | docs and do configuration at the same time.
* better layout of password options.Andrew Tridgell1998-11-271-19/+23
|
* make SWAT obey the global "hosts allow" and "hosts deny" settings.Andrew Tridgell1998-11-211-12/+5
| | | | | any attempt to run swat from a host that is disallowed will give an error.
* smbd/password.c: Added *SMBSERVER fix is name is too long.Jeremy Allison1998-11-211-1/+1
| | | | | web/swat.c: Changed '?' to help. Jeremy.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-3/+3
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* - group database API. oops and oh dear, the threat has been carried out:Luke Leighton1998-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the pre-alpha "domain group" etc parameters have disappeared. - interactive debug detection - re-added mem_man (andrew's memory management, detects memory corruption) - american spellings of "initialise" replaced with english spelling of "initialise". - started on "lookup_name()" and "lookup_sid()" functions. proper ones. - moved lots of functions around. created some modules of commonly used code. e.g the password file locking code, which is used in groupfile.c and aliasfile.c and smbpass.c - moved RID_TYPE_MASK up another bit. this is really unfortunate, but there is no other "fast" way to identify users from groups from aliases. i do not believe that this code saves us anything (the multipliers) and puts us at a disadvantage (reduces the useable rid space). the designers of NT aren't silly: if they can get away with a user- interface-speed LsaLookupNames / LsaLookupSids, then so can we. i spoke with isaac at the cifs conference, the only time for example that they do a security context check is on file create. certainly not on individual file reads / writes, which would drastically hit their performance and ours, too. - renamed myworkgroup to global_sam_name, amongst other things, when used in the rpc code. there is also a global_member_name, as we are always responsible for a SAM database, the scope of which is limited by the role of the machine (e.g if a member of a workgroup, your SAM is for _local_ logins only, and its name is the name of your server. you even still have a SID. see LsaQueryInfoPolicy, levels 3 and 5). - updated functionality of groupname.c to be able to cope with names like DOMAIN\group and SERVER\alias. used this code to be able to do aliases as well as groups. this code may actually be better off being used in username mapping, too. - created a connect to serverlist function in clientgen.c and used it in password.c - initialisation in server.c depends on the role of the server. well, it does now. - rpctorture. smbtorture. EXERCISE EXTREME CAUTION.
* - new prototypesAndrew Tridgell1998-11-141-3/+16
| | | | | - much as I hate doing it I've removed the "commit changes" button for users that don't have write access to smb.conf (Jeremy insisted)
* allow all user to view the configAndrew Tridgell1998-11-141-36/+22
|
* remove code that allows installation via cgiAndrew Tridgell1998-11-141-1/+1
| | | | swat will now give an error message if run via cgi
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-9/+9
| | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER.
* %\ is an interesting printf argument, but I prefer %sAndrew Tridgell1998-11-121-1/+1
|
* Removed code that used printf/fprintf in password changin libraries.Herb Lewis1998-11-121-3/+19
| | | | Now passes strings instead.
* .cvsignore: Removed old entries.Herb Lewis1998-11-121-21/+24
| | | | | | | | | | | | client/client.c: include/client.h: Added some debug messages that the old client used to generate. These are needed to make scripts such as 'findsmb' work - there may be other changes to keep backwards output compatibility. Do we need a -old-client-compat argument ? libsmb/clientgen.c: Fixed crash bug where malloc'ed data wasn't being cleared - corrupted malloc chains. web/swat.c: John's changes to get rid of "ghost" table entries.
* changes from John Sygulla for changing remote passwordsHerb Lewis1998-11-121-17/+79
|
* handle null usernamesAndrew Tridgell1998-11-121-8/+5
|
* show all buttons in demo modeAndrew Tridgell1998-11-121-1/+1
|
* fixed demo modeAndrew Tridgell1998-11-121-5/+10
|
* extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1998-11-121-299/+54
| | | | instead of opening pipes and other horrible stuff.
* Added the security changes suggested by Andrew - become theJeremy Allison1998-11-121-71/+45
| | | | | user that authenticated to swat permanently (if not root). Jeremy.
* Added enable user button. Fixed bug where log was always printed.Jeremy Allison1998-11-121-5/+15
| | | | Jeremy.
* changed is_root() to am_root() to prevent clash with variable names.Andrew Tridgell1998-11-111-11/+9
|
* rpc_server/srv_netlog.c: Fixed crash bug with ACB_PWNOTREQ.Jeremy Allison1998-11-111-5/+3
| | | | | | script/makeyodldocs.sh: Added code to make text docs for non-man page YODL docs. web/cgi.c web/swat.c: SGI compiler warnings fixed. Jeremy.
* added password change functionality to swatHerb Lewis1998-11-111-54/+501
|
* swat.c updated to use new yodl generated smb.conf.5.html file for helpHerb Lewis1998-11-111-5/+17
| | | | added smb.conf.5.html to swat/help
* replace getpass() with getsmbpass() if getsmbpass.c compilesAlexandre Oliva1998-09-211-1/+1
|
* use /swat/ prefix in both inetd and cgi modes, to enable a static header.htmlAndrew Tridgell1998-09-021-5/+4
|
* 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
* 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.
* 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.
* 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-081-19/+110
| | | | | | | | | | | 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.
* 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.
* oops, I got the sense of the show_defaults parameter to lp_dump()Andrew Tridgell1998-03-171-1/+1
| | | | wrong.
* this isn't a big commit, it just looks like it :-)Andrew Tridgell1998-03-171-0/+1
| | | | | | | | | 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-171-7/+28
| | | | | - added the ability to auto-refresh the status page. There is a problem with this (it can kill inetd!). Hopefully we can fix that.
* - added the ability to kill off individual connections from SWAT (fromAndrew Tridgell1998-03-151-137/+0
| | | | | | | | | 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
* 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