summaryrefslogtreecommitdiffstats
path: root/source/web
Commit message (Collapse)AuthorAgeFilesLines
* Fixup swat warning.Jeremy Allison2003-04-031-1/+1
| | | | | | Fix winbindd dual mode in the same was as in APP_HEAD. "Ken Cross" <kcross@nssolutions.com> noticed the problem. Jeremy.
* Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-3/+2
|
* Use True, not TRUE and False, not FALSEJelmer Vernooij2003-03-201-1/+1
|
* Make swat use poptJelmer Vernooij2003-03-201-12/+15
|
* Fix HTTP error codes (patch by Vance Lankhaar)Jelmer Vernooij2003-02-281-3/+3
|
* Doxygen janitorMartin Pool2003-02-281-1/+1
|
* Fix comment typoMartin Pool2003-02-281-1/+1
|
* base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().Jim McDonough2003-02-191-1/+1
|
* Prompted by RedHat bugzilla bug #77999, convert the user's username andAndrew Bartlett2003-02-011-4/+11
| | | | | | password from 'display' to 'unix' before we check them. Andrew Bartlett
* connect to the actual netbios name in smb.conf and not LOCALHOSTGerald Carter2003-01-171-1/+1
|
* Updates to the NTLMSSP code again - moving the base64 decode fuctionality outAndrew Bartlett2003-01-161-31/+0
| | | | | | | | | | | | | of the SWAT code, and adding a base64 encoder. The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for use with Squid. Unfortunetly the squid side doesn't quite support what we need yet. Changes to winbind to get us the info we need, and a couple of consequential changes/cleanups in the rest of the code. Andrew Bartlett
* patch to include support for daemontools from Michael HandlerGerald Carter2003-01-031-3/+3
|
* BIG patch...Andrew Bartlett2003-01-023-25/+25
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* Remove FILE_MACRO as __FILE__ is ANSI C.Tim Potter2002-12-041-1/+1
|
* use FILE_MACRO instead of __FILE__Herb Lewis2002-12-031-1/+1
| | | | use FUNCTION_MACRO instead of __FUNCTION_
* Add ntlm_auth, a new program to provide a stable interface to winbind'sAndrew Bartlett2002-11-241-41/+4
| | | | | | | | | | | | | | | | authentication code. In particular, ntlm_auth is designed to replace the winbind authentication 'helpers' currently supplied by Squid. I have added support for the current plaintext password protocol used by Squid, and will add the real guts (NTLMSSP support) shortly. I'll merge this into 3.0 when I've got the interface more stable (error message format etc) and got the important NTLMSSP support added. Also move SWAT's URL decoding code into util_str.c, for use in both utilities. Andrew Bartlett
* Use memmove when copies can overlap. Spotted by SUGIOKA Toshinobu ↵Jeremy Allison2002-10-091-1/+1
| | | | | | <sugioka@itonet.co.jp>. Jeremy.
* Fix John's little typo ...Richard Sharpe2002-10-071-1/+1
|
* Fix ability to locate if we are a WINS client.John Terpstra2002-10-071-3/+3
|
* Another patch from Steve Langasek <vorlon@netexpress.net>, again from theAndrew Bartlett2002-10-031-1/+1
| | | | | | | | | | | | Debian patchset. The idea is to still allow DNS domains to be specified in 'hosts allow' and 'hosts deny' without making the admin set 'hostname lookups' in their smb.conf. His concern is about upgrades. This has been designed not to change the value of %M. Andrew Bartlett
* Committing changes before I lose them. Work still in progress.John Terpstra2002-09-161-53/+290
|
* fix log level, set a default, and also copy the value set in smb.conf into ↵Simo Sorce2002-08-031-8/+8
| | | | | | | parm_struct.ptr this one also fixes log level not shown in swat fix swat help system
* people should be happier now.Simo Sorce2002-07-291-23/+33
| | | | | changed strtof with sscanf to make things working on all platforms. changed auto-made bubble sort for more efficient and clean qsort()
* found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be ↵Simo Sorce2002-07-281-5/+45
| | | | | | | | | | | | null before close this one fixes swat not working with browsers that set more then one language. along the way implemented language priority in web/neg_lang.c with bubble sort also changet str_list_make to be able to use a different separator string Simo.
* as per user request added windbind start/stop/restart in swatSimo Sorce2002-07-273-0/+78
| | | | almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
* This commit finally gives us multiple wins server groups. We nowAndrew Tridgell2002-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | accept an extended syntax for 'wins server' like this: wins server = group1:192.168.2.10 group2:192.168.3.99 group1:192.168.0.1 The tags before the IPs don't mean anything, they are just a way of grouping IPs together. If you use the old syntax (ie. no ':') then an implicit group name of '*' is used. In general I'd recommend people use interface names for the group names, but it doesn't matter much. When we register in nmbd we try to register all our IPs with each group of WINS servers. We keep trying until all of them are registered with every group, falling back to the failover WINS servers for each group as we go. When we do a WINS lookup we try each of the WINS servers for each group. If a WINS server for a group gives a negative answer then we give up on that group and move to the next group. If it times out then we move to the next failover wins server in the group. In either case, if a WINS server doesn't respond then we mark it dead for 10 minutes, to prevent lengthy waits for dead servers.
* Break up samba's object dependencies, and its prototype includes.Andrew Bartlett2002-06-257-3/+7
| | | | | | | | | | | | | | | | Now smbclient, net, and swat use their own proto files - now the global proto.h The change to libads/kerberos.c was to break up the dependency on secrets.c - we want to be able to write an ADS client that doesn't need local secrets. I have other breakups in the works - I will remove the dependency of rpc_parse on passdb (and therefore secrets.c) shortly. (NOTE: This patch does *not* break up includes.h, or other such forbidden actions). Andrew Bartlett
* moved lp_list_* functions away from param/loadparm.c, put int lib/util_str.cSimo Sorce2002-06-141-1/+1
| | | | | and renamed to str_list_* as it is a better name. Elrond should be satisfied now :)
* Changes to allow head to translate NMB flags ...Richard Sharpe2002-05-171-2/+2
|
* Add assertions that kill() is never accidentally passed a non-positiveMartin Pool2002-03-201-2/+2
| | | | | | | | | pid. This follows a bug in rsync where it would accidentally kill(-1), removing all the user's processes. I can't see any way this would directly happen in Samba, but having the assertions seems beneficial. http://cvs.samba.org/cgi-bin/cvsweb/rsync/util.c.diff?r1=1.108&r2=1.109&f=h
* Removed version number from file header.Tim Potter2002-01-305-9/+5
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* getpwnam -> getpwnam_allocAndrew Bartlett2002-01-211-1/+2
|
* A nice *big* change to the fundemental way we do things.Andrew Bartlett2002-01-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Samba (ab)uses the returns from getpwnam() a lot - in particular it keeps them around for a long time - often past the next call... This adds a getpwnam_alloc and a getpwuid_alloc to the collection. These function as expected, returning a malloced structure that can be free()ed with passwd_free(&passwd). This patch also cuts down on the number of calls to getpwnam - mostly by taking advantage of the fact that the passdb interface is already case-insensiteve. With this patch most of the recursive cases have been removed (that I know of) and the problems are reduced further by not using the sys_ interface in the new code. This means that pointers to the cache won't be affected. (This is a tempoary HACK, I intend to kill the password cache entirly). The only change I'm a little worried about is the change to rpc_server/srv_samr_nt.c for private groups. In this case we are getting groups from the new group mapping DB. Do we still need to check for private groups? I've toned down the check to a case sensitve match with the new code, but we might be able to kill it entirly. I've also added a make_modifyable_passwd() function, that copies a passwd struct into the form that the old sys_getpw* code provided. As far as I can tell this is only actually used in the pass_check.c crazies, where I moved the final 'special case' for shadow passwords (out of _Get_Pwnam()). The matching case for getpwent() is dealt with already, in lib/util_getent.c Also included in here is a small change to register the [homes] share at vuid creation rather than just in one varient of the session setup. (This picks up the SPNEGO cases). The home directory is now stored on the vuid, and I am hoping this might provide a saner way to do %H substitions. TODO: Kill off remaining Get_Pwnam_Modify calls (they are not needed), change the remaining sys_getpwnam() callers to use getpwnam_alloc() and move Get_Pwnam to return an allocated struct. Andrew Bartlett
* Store some path names in global variables initialized to configureMartin Pool2001-11-192-18/+28
| | | | default, rather than in preprocessor macros.
* Fix const warning. Doxyfy comment.Martin Pool2001-11-191-5/+8
|
* 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
* 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
* merge from 2.2Gerald Carter2001-10-061-2/+84
|
* Fixup passdb stuff to add new nisplus and ldap backends.Jeremy Allison2001-09-252-1/+2
| | | | Jeremy.
* 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.
* fixed a silly off by 1 bugAndrew Tridgell2001-09-241-2/+2
|
* fixed bug in POST var handlingAndrew Tridgell2001-09-241-4/+2
|
* convert all POST variables from display to unix charsetAndrew Tridgell2001-09-242-23/+29
|
* 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.
* 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
* move to SAFE_FREE()Simo Sorce2001-09-172-2/+2
|
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|
* 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.
* convert more code to using d_printfAndrew Tridgell2001-09-081-165/+165
|
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
|