summaryrefslogtreecommitdiffstats
path: root/source3/web
Commit message (Collapse)AuthorAgeFilesLines
* Store some path names in global variables initialized to configureMartin Pool2001-11-192-18/+28
| | | | | default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
* Fix const warning. Doxyfy comment.Martin Pool2001-11-191-5/+8
| | | | (This used to be commit 91e07a7fdc47b2baf42fc06e77d1e1d883111668)
* the next step in the intl changeover. This should get us compiling agian,Andrew Tridgell2001-10-144-352/+130
| | | | | | | | and also completes the switch to lang_tdb.c. SWAT should now work with a po file in the lib/ directory also removed useless SYSLOG defines in many files (This used to be commit 5296b20ad85d7519c870768455cb4d8df048c55a)
* first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell2001-10-111-107/+0
| | | | | of gettext for internationalisation support. There is more to do (This used to be commit ab7f67677a1ade4669e5c2750d0a38422ea616a9)
* merge from 2.2Gerald Carter2001-10-061-2/+84
| | | | (This used to be commit 831530d93d606d13a792be1d3d4ac561697504d8)
* Fixup passdb stuff to add new nisplus and ldap backends.Jeremy Allison2001-09-252-1/+2
| | | | | Jeremy. (This used to be commit 611bf806d569b70edabbc04a2f5408142370a550)
* Added SWAT i18n feature:Motonobu Takahashi2001-09-244-134/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | TO enable configure with --with-i18n-swat to support this gettext is integrated and a new directories name "po" and "intl" are created. now these languages are supported: en - English (default) ja - Japanese po - Polish tr - Turkish To add your language, to create ${your_language}.po by translating source/po/en.po into your language is needed. some of html and image files of various language version are not included yet, though message catalogue files are installed. you need to copy files manually under ${swatdir}/lang/$ln/{help,images,included,using_samba} And also added a option to intall manual pages: of various lang version To enable configure with --with-manlangs but manual pages themself are not included yet. (This used to be commit 486b79a6fc4ba20a751aab544bd0f7ccff2b3d19)
* fixed a silly off by 1 bugAndrew Tridgell2001-09-241-2/+2
| | | | (This used to be commit e558ab6ac8930e3393291fe12289ad43175b8a1d)
* fixed bug in POST var handlingAndrew Tridgell2001-09-241-4/+2
| | | | (This used to be commit 73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b)
* convert all POST variables from display to unix charsetAndrew Tridgell2001-09-242-23/+29
| | | | (This used to be commit cd6478ad9890949d0ef34a7078ec5518debe4a3c)
* Move pass_check.c over to NTSTATUS, allowing full NTSTATUS from PAM to wire!Andrew Bartlett2001-09-201-8/+5
| | | | | | Add the ability for swat to run in non-root-mode (ie non-root from inetd). - we still need some of the am_root() calls fixed however. (This used to be commit 2c2317c56ee13abdbdbc866363c3b52dab826e3c)
* Remove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c byAndrew Bartlett2001-09-191-47/+24
| | | | | | | | | | | | | | simply not doing Get_Pwnam() calls in pass_check.c We now make *one* sys_getpnam() call in cgi.c and we always call PAM no matter what it returns. We also no longer run the password cracker for these logins. The truly parinod will note the slight difference in call paths, in that we only call crypt for valid password structs (if not --with-pam). The truly parinoid don't run SWAT either, so I don't think this is an issue. Andrew Bartlett (This used to be commit 9020d884935243f28c19cedc88f076f0709e12cb)
* move to SAFE_FREE()Simo Sorce2001-09-172-2/+2
| | | | (This used to be commit 67db8f03c5c9e81e11b5f3276b50ee23e09a2659)
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
| | | | (This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-102-6/+6
| | | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
* convert more code to using d_printfAndrew Tridgell2001-09-081-165/+165
| | | | (This used to be commit 60d297303488ed583537ca2853828fccd6da2ade)
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
| | | | (This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
* A few changes:Andrew Bartlett2001-08-221-3/+1
| | | | | | | | | | | | | drop paramaters: status utmp hostname change session code to always record each vuid current on the server. The sessionid struct is no longer packed, as I couldn't get that to work ;-) change smbstatus to show this info and less of the connections.tdb info (its not actualy that accurate). I'll get swat doing some of this shortly. (This used to be commit b068ad300527c44673bbee0aede7849199c89de7)
* it was half committed last time,Simo Sorce2001-08-121-2/+2
| | | | | thanks to Hasch@t-online.de (Juergen Hasch) for spotting that. (This used to be commit a2a4d4e6286c2127b6f8e32fc97b96dabd7cdb40)
* Change all realloc() statements to Realloc() (ecxept for tdb.c)Simo Sorce2001-08-081-13/+13
| | | | | | | | changed some code to exploit the fact that Realloc(NULL, size) == malloc(size) fixed some possible mem leaks, or seg faults. thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c) (This used to be commit 7f33c01688b825ab2fa9bbb2730bff4f2fa352be)
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | | Jeremy. (This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
* This removes unused paramaters from various authtication functions, and shouldAndrew Bartlett2001-07-081-2/+2
| | | | | | | | | | not change behaviour. This should make my later diffs smaller, where I actualy start cleaning up this mess... Andrew Bartlett (This used to be commit 04f090c224bb7ac3b53c430a591fce1fc939a81c)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-12/+12
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* The big character set handling changeover!Andrew Tridgell2001-07-042-21/+8
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* uhm some pointer went wrongSimo Sorce2001-06-231-4/+4
| | | | (This used to be commit d0acacfc9df86abab24420f1807b4d5253e8c285)
* handle P_LIST parametersSimo Sorce2001-06-231-0/+25
| | | | (This used to be commit 26ab608c91c7357df3a79bc34111194f115de005)
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-041-1/+1
| | | | (This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
* make swat recover from previously bad umask from xinetdAndrew Tridgell2001-05-301-2/+8
| | | | (This used to be commit 045d7e1b167efc75bb3d411b3fcc35bba58c4ef7)
* Add border=0 in included swat images to get rid of the link border stuff.Tim Potter2001-05-301-1/+1
| | | | | Much prettier looking. (This used to be commit 16031364a8ce20cf425c758d3fd5035a776e9d9b)
* make sure the umask is set in swatAndrew Tridgell2001-05-281-0/+2
| | | | (This used to be commit 07c74fe83f77c73ff937a31b7df2f211596e9861)
* - added ability for swat to run under CGI. This needsAndrew Tridgell2001-05-171-1/+33
| | | | | | to be setup very carefully for it not to be a security hole - reran configure (This used to be commit cf4e439a1e0f3fadbe08c474e5b201827866d7f5)
* Check sizes of data entries in connections.tdb before deciding they're crecs...Jeremy Allison2001-05-151-5/+17
| | | | | | We will need this when we use finer grained locking for max connections. Jeremy. (This used to be commit c6cd42a6791e26174eb795fd08ddbbd797e5a9cf)
* merge some fixes from 2.2Andrew Tridgell2001-05-071-1/+5
| | | | (This used to be commit 7e57adf2a039cb5b6458496f9190c9c642645600)
* fix broken links in SWAT due to upper case anchors in the generatedGerald Carter2001-04-121-2/+5
| | | | | HTML man pages. Spotted by Herb. (This used to be commit be45c82c3ab3b626cd761f2cec3b160df2b7fcac)
* Setup syslog correctly in swat. Patch from Andrew Bartlett.Jeremy Allison2001-04-051-0/+1
| | | | | Jeremy. (This used to be commit ffd9bf192273370c1ebf6f1a2d5ebe8d8c434133)
* 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. (This used to be commit 42052d6079479452aa43eb37ad3d679d28337779)
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-112-4/+3
| | | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-171-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - Unrolled construct_notify_jobs_info() loop to only fetch printer info_2 structure once rather than num_print_jobs times. - convert command to unix codepage. - remove lp_remove_service() call as it prevents lp_killservice() from working. - Modified some DEBUG and DEBUGADD statements. source/param/loadparm.c source/param/params.c - change printer, preload, auto services to FLAG_DOS_STRING, reverted earlier changes to szPrintername et al, add comments. source/printing/load.c - fix bug with lp_auto_services() and strtok() source/printing/nt_printing.c source/printing/printing.c - remove redundant test that used SERVICE(snum) source/printing/pcap.c - add unix_to_dos() calls, add notes wrt FIXMEs for xxx_printer_fn() functions. source/web/swat.c - added FIXME comment. source/smbd/service.c - added comment re: dos codepage (This used to be commit 7b774b72c2857af9519012106714a9e2cb099da3)
* Large commit which restructures the local password storage API.Gerald Carter2000-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry (This used to be commit 0b92d0838ebdbe24f34f17e313ecbf61a0301389)
* Fix to the "known/unknown user" difference patch from "Ron Alexander" ↵Jeremy Allison2000-11-061-0/+1
| | | | | | | <rcalex@home.com>. Jeremy. (This used to be commit 7a698c1f23ea8740755c544f631789848a360e42)
* Remove CGI logging code. Make username/password lookups takeJeremy Allison2000-11-011-29/+28
| | | | | | the same time. Jeremy. (This used to be commit 9698f746858f0f2b37ec6494fca990e958d97cb7)
* don't show equivalent enum options in swatAndrew Tridgell2000-09-131-5/+8
| | | | (This used to be commit 52074960971995580a03647ac5c638043eb8f5e1)
* Fix for swat to return correct MIME type for text files. From "RonTim Potter2000-09-011-0/+2
| | | | | Alexander" <rcalex@home.com> (This used to be commit 061e5e50523913a26bc86bd816c4e26a37a832c7)
* 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. (This used to be commit 5937ab14d222696e40a3fc6f0e6a536f2d7305d3)
* 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 (This used to be commit d35bbe56bc9e3e5896b2ebdf33ff6468a0432e1f)
* 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. (This used to be commit 9f6ad046761adecafba59040baa3abc9f0959e65)
* 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. (This used to be commit 49d7f0afbc1c5425d53019e234d54ddf205c8e9a)
* always restart nmbd and smbd when asked, even if they appear not to beAndrew Tridgell2000-01-071-4/+2
| | | | | responding. They could be stuck (This used to be commit 8728c0bc94743935cec28caa83d93833ea3aa6a6)
* 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 :) (This used to be commit 280e6359d36c9bc8dcded302f15c3a1db8e3feeb)
* fixed active shares displayAndrew Tridgell2000-01-031-2/+2
| | | | (This used to be commit b87d1442db86165d983007dd58647c88ac702abf)