summaryrefslogtreecommitdiffstats
path: root/source3/web
Commit message (Collapse)AuthorAgeFilesLines
* s3-debug Move 'load_case_tables()' before lp_set_cmdline() and popt callsAndrew Bartlett2010-11-021-2/+2
| | | | | | | | | | The problem here is that we cannot run lp_set_cmdline() (directly or indirectly via the popt helpers) until load_case_tables() has been run. However, load_case_tables does not have auto-initialisation, so we must init it once, and once only. Andrew Bartlett
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-4/+5
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* Make getpwnam_alloc() static to lib/username.c, and ensure all username ↵Jeremy Allison2010-10-201-2/+2
| | | | | | | | | | | | lookups go through Get_Pwnam_alloc(), which is the correct wrapper function. We were using it *some* of the time anyway, so this just makes us properly consistent. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3: Remove talloc_autofree_context() from swatVolker Lendecke2010-09-261-2/+2
| | | | In both cases, pass is freed immediately
* s3: Lift smbd_server_fd() from pass_check()Volker Lendecke2010-08-281-1/+7
|
* s3: Move check_access to cgi.c, its only userVolker Lendecke2010-08-221-0/+81
|
* s3-auth: Remove obsolete 'update encrypted' option.Andreas Schneider2010-08-161-3/+1
|
* s3:auth Make Samba3 use the new common struct auth_usersupplied_infoAndrew Bartlett2010-08-141-1/+1
| | | | | | | | | | | | | This common structure will make it much easier to produce an auth module for s3compat that calls Samba4's auth subsystem. In order the make the link work properly (and not map twice), we mark both that we did try and map the user, as well as if we changed the user during the mapping. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3: Remove the smbd_messaging_context from load_printersVolker Lendecke2010-08-081-2/+2
|
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-261-3/+3
|
* s3: Add connections_forall_read()Volker Lendecke2010-03-011-9/+6
| | | | | | In a cluster, this makes a large difference: For r/w traverse, we have to do a fetch_locked on every record which for most users of connections_forall is just overkill.
* s3: last part of TYPESAFE_QSORT() conversionAndrew Tridgell2010-02-141-4/+3
| | | | convert smbcacls, sharesec and web/
* s3: Show share path in swat statuspageMarcin Gryszkalis2010-01-181-4/+7
|
* s3: Fix bug 6288Volker Lendecke2009-11-301-8/+8
|
* s3: Fix an uninitialized variable referenceVolker Lendecke2009-11-291-1/+2
|
* s3: Fix some nonempty blank linesVolker Lendecke2009-11-292-37/+36
|
* s3: Pass fake_dir_create_times down to file_exist_stat, none of the callers ↵Volker Lendecke2009-11-291-1/+2
| | | | look at the mtime
* s3: "cgi_download" only looks at the mode and sizeVolker Lendecke2009-11-291-1/+1
|
* s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke2009-11-291-2/+1
| | | | Step 0 to restore it as a per-share paramter
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett2009-04-143-14/+14
| | | | | | | | | | | | This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
* Fix bug #6040 - Missing <th> header in Status page.Jeremy Allison2009-01-151-1/+2
| | | | | Based on a patch from pkg-samba-maint@lists.alioth.debian.org. Jeremy.
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* s3/swat: Fix creation of the first share using SWAT.Volker Lendecke2009-01-061-1/+1
| | | | This fixes bug #5965.
* Fix more "ignore return value" warnings from gcc 4.3.Jeremy Allison2008-12-303-6/+9
| | | | Jeremy
* s3:loadparm: rename lp_local_ptr() to lp_local_ptr_by_snum()Michael Adam2008-12-151-2/+2
| | | | Michael
* Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison2008-11-061-2/+2
| | | | | | | | | | talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
* Add wrapper str_list_make_v3() to replace the old S3 behavior ofJeremy Allison2008-11-061-1/+1
| | | | | | | | str_list_make(). From Dan Sledz <dan.sledz@isilon.com>: In samba 3.2 passing NULL or an empty string returned NULL. In master, it now returns a list of length 1 with the first string set to NULL (an empty list). Jeremy.
* Use str_list_equal() rather than str_list_compare().Jelmer Vernooij2008-10-181-1/+2
|
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-182-3/+3
|
* Cope with changed signature of http_timestring().Jelmer Vernooij2008-10-111-2/+3
|
* Fix use of DLIST_REMOVE as spotted by Constantine Vetoshev <gepardcv@gmail.com>.Jeremy Allison2008-10-011-2/+3
| | | | | | | | | | | | | | | | | This API is unusual in that if used to remove a non-list head it nulls out the next and prev pointers. This is what you want for debugging (don't want an entry removed from the list to be still virtually linked into it) but means there is no consistent idiom for use as the next and prev pointers get trashed on removal from the list, meaning you must save them yourself. You can use it one way when deleting everything via the head pointer, as this preserves the next pointer, but you *must* use it another way when not deleting everything via the head pointer. Fix all known uses of this (the main one is in conn_free_internal() and would not free all the private data entries for vfs modules. The other changes in web/statuspage.c and winbindd_util.c are not strictly neccessary, as the head pointer is being used, but I've done them for consistency. Long term we must revisit this as this API is too hard to use correctly. Jeremy.
* Fix swat. Bug #5613.Jeremy Allison2008-07-151-13/+18
| | | | | Jeremy (This used to be commit 15920f838835f5dbbac8712202267c2a99237686)
* Fix empty input fields in SWAT; [#5515].Andreas Schneider2008-06-031-4/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit e1579c90fb27c07f95889dd8778daeef53e2ac16)
* Fix saving of the config file in SWAT; [#5516].Andreas Schneider2008-06-031-2/+2
| | | | | | | | The strlen of the source string passed to convert_string_allocate was too short :) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit ac3597ef8b7781499ab55f1039670ec82202e32c)
* Cleanup size_t return values in callers of convert_string_allocateTim Prouty2008-05-202-7/+10
| | | | | | This patch is the second iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
* swat: freeze swat_proto.h from "make proto"Michael Adam2008-05-181-0/+70
| | | | | Michael (This used to be commit 372c58cc220efc01af4b90b82b75191296a62e81)
* Cleanup size_t return values in convert_string_allocateTim Prouty2008-04-111-4/+4
| | | | | | This patch is the first iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 59124382d2894a1b194b48dd82bc5f956959eb48)
* Add a talloc context parameter to current_timestring() to fix memleaks.Michael Adam2008-03-281-1/+5
| | | | | | | | | | | | | | current_timestring used to return a string talloced to talloc_tos(). When called by DEBUG from a TALLOC_FREE, this produced messages "no talloc stackframe around, leaking memory". For example when used from net conf. This also adds a temporary talloc context to alloc_sub_basic(). For this purpose, the exit strategy is slightly altered: a common exit point is used for success and failure. Michael (This used to be commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
* loadparm: add convenience wrapper lp_kill_all_services()Michael Adam2008-03-121-1/+1
| | | | | Michael (This used to be commit 32bfd131e33d06be9dfaef02b57f5401d2bc7639)
* Always pass a TALLOC_CTX to str_list_make and str_list_copyVolker Lendecke2008-02-041-2/+2
| | | | (This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
* strtok -> strtok_rVolker Lendecke2008-01-231-1/+3
| | | | (This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-102-12/+12
| | | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* Tiny simplificationsVolker Lendecke2007-12-101-1/+1
| | | | | | | locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only) (This used to be commit 2f3c865707010bc7c463a02782dbee3dc2479da1)
* We don't need P_GSTRING or P_UGSTRING anymore.Jeremy Allison2007-12-071-15/+0
| | | | | Jeremy. (This used to be commit 78dc75600099b5b3b5a8ecffec747a227ff51d70)
* Remove some globalsVolker Lendecke2007-12-051-5/+12
| | | | (This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
* Make strhex_to_str clear on string limits. Remove pstring from web/*.cJeremy Allison2007-12-034-89/+123
| | | | | Jeremy. (This used to be commit f9c8d62389f8cb47837e5360209936176537df13)
* Make remote_password_change return malloced error stringsVolker Lendecke2007-11-231-3/+4
| | | | | This fixes a segfault in smbpasswd -r (This used to be commit 49949f0b85007c7c2b3c340c12f3d18909862135)