summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3: Remove a call to cli_errstrVolker Lendecke2011-06-241-2/+4
|
* s3: Add cli_symlinkVolker Lendecke2011-06-244-0/+242
|
* s3: Add SYMLINK_FLAG_RELATIVE defineVolker Lendecke2011-06-241-0/+2
|
* s3: Add symlink reparse point marshalling routinesVolker Lendecke2011-06-244-0/+185
|
* s3:vfs_commit: fix buildBjörn Jacke2011-06-241-0/+1
| | | | | | | | | fix build Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Fri Jun 24 14:51:31 CEST 2011 on sn-devel-104
* s3:smb2_ioctl/FSCTL_PIPE_TRANSCEIVE: generate STATUS_BUFFER_OVERFLOW if ↵Stefan Metzmacher2011-06-242-0/+10
| | | | | | | | | | | needed (bug #8260) This should fix DCERPC responses with fragments larger than 1024 bytes. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jun 24 11:25:36 CEST 2011 on sn-devel-104
* s3-build Add dep on popt to fix FreeBSD buildAndrew Bartlett2011-06-241-1/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jun 24 06:32:59 CEST 2011 on sn-devel-104
* s3-selftest Remove unused gdb_backtraceAndrew Bartlett2011-06-241-87/+0
| | | | | | The version in selftest/ has more features and is the one used by 'make test'. Andrew Bartlett
* s3-build Require fully defined symbols in ALL libraries by defaultAndrew Bartlett2011-06-241-54/+29
| | | | | | | | | | | The only exception here is libsmbregistry, which needs further work to resolve the library loop caused by the registry based smb.conf loading. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jun 24 05:01:38 CEST 2011 on sn-devel-104
* s3-build: Remove SECRETS3 as a samba3core depAndrew Bartlett2011-06-241-5/+10
| | | | | | | | This resolves the the library loop between libsmbconf and SECRETS3/passdb, and allows the next commit to require fully defined symbols in public libraries. Andrew Bartlett
* s3-param Remove %(DomainSID) supportAndrew Bartlett2011-06-241-102/+0
| | | | | | | | | | | | | | | This also removes the now unused longvar support. This experiment never took off. Fixing this allows me to resolve the the library loop between libsmbconf and SECRETS3/passdb. Andreas correctly points out that this loop originally comes from my patch to obtain the domain sid from passdb (25cfa29e29bdbb6c84bd85ea02ec542228ae585f), but as I would prefer to keep that feature, I'm hoping to break the loop here instead. Andrew Bartlett
* Fix bug #8254 - "acl check permissions = no" does not work in all casesJeremy Allison2011-06-242-2/+16
| | | | | | | | | | | Move lp_acl_check_permissions() into can_delete_file_in_directory() where it makes sense. Remove ACL check when requesting DELETE_ACCESS when lp_acl_check_permissions is false. Thanks to John Janosik @ IBM for noticing this. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jun 24 01:18:11 CEST 2011 on sn-devel-104
* s3-param Remove 'announce version' parameterAndrew Bartlett2011-06-239-89/+22
| | | | | | | | The only users I can find of this on the internet involve confused users, and our own documentation recommends never setting this. Don't confuse our users any longer. Andrew Bartlett
* param: Remove "announce as" parameterAndrew Bartlett2011-06-231-43/+2
|
* s3-net: Bind our gettext results to 'unix charset'Andrew Bartlett2011-06-233-2/+12
| | | | | | | | | | This ensures that the translations and any embedded strings are in the same charset. It won't be the one from the user's locale (we no longer auto-detect that), but it will be self-consistent. Thanks to Steve Langasek for pointing this function out! Andrew Bartlett
* s3-swat Remove d_printf() callsAndrew Bartlett2011-06-231-2/+2
| | | | | | | | These calls only ever output ASCII strings (protocol strings and debugging), and never user content, so make it clear that these don't need to be converted into UTF8. Andrew Bartlett
* lib/util/charset: Remove autodetection of charset from LOCALEAndrew Bartlett2011-06-232-3/+3
| | | | | | | | | | | | | | | | In the past, our LOCALE would set the display charset of Samba. The display charset has now been removed. This patch removes the support code that detected the locale from the environment. We cannot safely have 'unix charset' follow the locale (at it creates files on disk and entries in databases that must not vary), so this code is unused. As an example, imagine a database is manipulated in the administrator's locale, and then read by smbd starting up in the system default locale. Or smbd restarted by the administrator rather than a startup script. Both of these situations could corrupt databases or filenames on disk. Andrew Bartlett
* lib/util/charset: Remove 'display charset'Andrew Bartlett2011-06-235-50/+2
| | | | | | | | | | | | | | | | | As discussed in 'CH_DISPLAY and gettext' on the samba-technical list: http://lists.samba.org/archive/samba-technical/2011-June/078190.html Setting this to a value other than 'unix charset' does not make sense, as any system where the filesytem charset does not equal the terminal charset will already have problems with programs as simple as 'ls'. It also means that our output could not be pasted as our input in interactive programs or onto our command line, as we never did translate in the DISPLAY -> UNIX direction. The d_printf() calls are retained in case we need to revisit this, and to support display_set_stderr(). Andrew Bartlett
* s3: Add IO_REPARSE_TAG_SYMLINK defineVolker Lendecke2011-06-231-0/+1
| | | | | | | From http://msdn.microsoft.com/en-us/library/dd541667%28v=PROT.13%29.aspx Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jun 23 13:46:37 CEST 2011 on sn-devel-104
* s3: Fix some nonempty blank linesVolker Lendecke2011-06-231-3/+3
|
* s3: remove prototype of convert_string_error from proto.hMichael Adam2011-06-231-4/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Jun 23 12:34:31 CEST 2011 on sn-devel-104
* s3: remove prototype of convert_string from proto.hMichael Adam2011-06-231-4/+0
|
* s3: Added missing includes to .clang_complete.Andreas Schneider2011-06-221-0/+2
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jun 22 11:15:56 CEST 2011 on sn-devel-104
* s3-spoolss: Fix some valgrind warnings.Andreas Schneider2011-06-212-8/+8
| | | | | | | | | These are in/out values and need to be initialized. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Jun 21 18:58:30 CEST 2011 on sn-devel-104
* s3-rpc_client: Fix some valgrind warnings.Andreas Schneider2011-06-211-10/+12
| | | | | | These are in/out values and need to be initialized. Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Remove unused codeVolker Lendecke2011-06-213-127/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jun 21 15:36:01 CEST 2011 on sn-devel-104
* s3: Convert WINBINDD_WINS_BYNAME to the async APIVolker Lendecke2011-06-215-4/+159
|
* s3-smbd: longer explanation of smbd_shim codeAndrew Tridgell2011-06-211-2/+7
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 21 09:05:37 CEST 2011 on sn-devel-104
* s3-build: Provide a run-time shim to work around duplicate symbolsAndrew Bartlett2011-06-2113-95/+187
| | | | | | | | | | | | | | | | The become_root() and similar 'smbd' functions that are used widely in Samba libraries had 'dummy' copies in dummysmbd.c and dummyroot.c. These have been replaced by a runtime plugin mechanim, which ensures that standlone binaries still do nothing, while in smbd the correct function is used. This avoids having these as duplicate symbols in the smbd binary, which can cause unpredictable behaviour. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* selftest: Run tests for libsmbclient and libnetapiAndrew Bartlett2011-06-212-1/+5
| | | | | | | This adds the known failure for the one test (netbios browsing) that fails. Andrew Bartlett
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-217-99/+98
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
* lib/util: Use common d_printf() in the whole codebaseAndrew Bartlett2011-06-213-130/+1
| | | | | | | | | This removes the lang_tdb based varient, the only user of the lang_tdb code is SWAT, which calls that directly. 'net' and 'pam_winbind' are internationalised using gettext. Andrew Bartlett
* s3-param Put &Globals in the FN_ macros, rather than in each entryAndrew Bartlett2011-06-211-254/+254
| | | | | | | This global replace allows an easier comparison between the source3 and source4 loadparm systems. Andrew Bartlett
* lib/util Make unused d_vfprintf() staticAndrew Bartlett2011-06-212-3/+1
|
* s3: Fix a winbind messageVolker Lendecke2011-06-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 23:28:43 CEST 2011 on sn-devel-104
* s3:idmap_autorid: remove redundant codeMichael Adam2011-06-201-4/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Jun 20 14:56:29 CEST 2011 on sn-devel-104
* s3:idmap_autorid: in initialize, don't leak storedconfig to talloc_tos() in ↵Michael Adam2011-06-201-2/+4
| | | | the success case
* s3:idmap_autorid: use "idmap config * : rangesize" instead of "autorid : ↵Michael Adam2011-06-201-1/+1
| | | | rangesize"
* s3:idmap_autorid: fail initialization if the domain is not "*"Michael Adam2011-06-201-0/+7
| | | | autorid can only be used as a backend for the default idmap configuration.
* s3: Fix the build, NAME_MAX not universally availableVolker Lendecke2011-06-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 13:45:21 CEST 2011 on sn-devel-104
* Use tevent_req_oomVolker Lendecke2011-06-209-15/+15
| | | | This fixes a few Coverity errors
* tdb2: create tdb2 versions of various testing TDBs.Rusty Russell2011-06-201-0/+0
| | | | | | | Soon, TDB2 will handle tdb1 files, but until then, we substitute. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/lib/util_tdb.c: operation timeout support for TDB2.Rusty Russell2011-06-201-0/+96
| | | | | | | | | | | TDB2 doesn't have (the racy) signal pointer; the new method is to override the locking callbacks and do the timeout internally. The technique here is to invalidate the struct flock when the timeout occurs, so it works even if it happens before we enter the fcntl() call. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-2020-34/+34
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-205-13/+26
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: tdb_parse_record() returns negative errors, not -1.Rusty Russell2011-06-202-3/+3
| | | | | | | Fixup callers to tdb_parse_record() to be compatible with tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/winbindd/idmap_tdb.c: tdb2 support for wrong endian.Rusty Russell2011-06-201-2/+16
| | | | | | | | | TDB has no idea of endian itself, but it knows whether the TDB is the same endian as the current machine, so we should use that rather than implementing TDB_BIGENDIAN in tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_validate: TDB2 support for tdb_validate_child and tdb_backup.Rusty Russell2011-06-201-2/+10
| | | | | | | We don't expose freelist or hash size for TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: #ifdef out TDB_ERR_NOLOCK and TDB_ERR_LOCK_TIMEOUT.Rusty Russell2011-06-202-1/+10
| | | | | | | | These don't exist in tdb2. The former is used in one weird place in tdb1, and the latter not at all. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldb: replace 'struct TDB_DATA' with 'TDB_DATA'Rusty Russell2011-06-204-6/+9
| | | | | | | The typedef is TDB2 compatible, the struct isn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>