summaryrefslogtreecommitdiff
path: root/source/web
Commit message (Collapse)AuthorAgeFilesLines
* Move over to RELEASE branch.Jeremy Allison2002-02-014-3/+4
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-113-18/+100
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-062-7/+27
| | | | Jeremy.
* Incorrect call (wrong proto - must have been from HEAD).Jeremy Allison2001-04-121-1/+1
| | | | Jeremy.
* merge from HEADGerald Carter2001-04-121-3/+6
|
* Setup syslog correctly in swat. Patch from Andrew Bartlett.Jeremy Allison2001-04-051-0/+1
| | | | Jeremy.
* Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and ↵Jeremy Allison2001-03-261-7/+19
| | | | | | | smb.conf file in utf8. Jeremy.
* don't show main smbd as a connectionHerb Lewis2001-03-141-1/+5
|
* Dead code elimination from SGI compiler.Jeremy Allison2001-03-092-4/+3
| | | | Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-2/+2
| | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* Merge with fixes from appliance-head.Jeremy Allison2001-01-181-1/+2
| | | | Jeremy.
* Fix to the "known/unknown user" difference patch from "Ron Alexander" ↵Jeremy Allison2000-11-061-0/+1
| | | | | | <rcalex@home.com>. Jeremy.
* Back adding the swat po files from samba-2.0.7.John Terpstra2000-11-053-0/+392
|
* Remove CGI logging code. Make username / password lookups takeJeremy Allison2000-11-011-29/+28
| | | | | the same time. Jeremy.
* don't show equivalent enum options in swatAndrew Tridgell2000-09-131-5/+8
|
* Fix for swat to return correct MIME type for text files. From "RonTim Potter2000-09-011-0/+2
| | | | Alexander" <rcalex@home.com>
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-3/+3
| | | | | | | | | | | | | | | | assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed.
* two minor bugfixes for SCO UnixWare. The first is to catch SIGPIPE so that ↵Andrew Tridgell2000-04-112-0/+4
| | | | 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.
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-6/+6
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
* always restart nmbd and smbd when asked, even if they appear not to beAndrew Tridgell2000-01-071-4/+2
| | | | responding. They could be stuck
* added the unexpected packet database (unexpected.tdb)Andrew Tridgell2000-01-031-1/+1
| | | | | | | | | | | | this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :)
* fixed active shares displayAndrew Tridgell2000-01-031-2/+2
|
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-1/+1
| | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-7/+1
| | | | | | | | | | | | | instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-211-54/+63
| | | | | SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago!
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-135-120/+188
|
* Moved code that changes the pw_passwd entry (i.e shadow password andTim Potter1999-06-131-1/+1
| | | | | | | | 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.
* 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
|
* changed string_sub() to replace " ; and ` in the inserted string with _Andrew Tridgell1998-11-231-1/+1
| | | | use all_string_sub() if you don't want this.
* make SWAT obey the global "hosts allow" and "hosts deny" settings.Andrew Tridgell1998-11-212-13/+29
| | | | | 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.
* wrong directory path for smbd and nmbdHerb Lewis1998-11-201-2/+2
|
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-173-7/+7
| | | | | | | | | | 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-142-21/+36
| | | | 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
|