summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* build: Bring DYNCONFIG into samba-util library to avoid symbol duplicationAndrew Bartlett2011-04-131-5/+5
| | | | | | | | | | When this was depended on directly as a subsystem, it ended up in multiple libraries. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 13 08:39:35 CEST 2011 on sn-devel-104
* s3-build Remove distinct LOCALEDIR subsystemAndrew Bartlett2011-04-1310-28/+9
| | | | | | | This is no different to the rest of dynconfig, and so should be dealt with there. Andrew Bartlett
* s3-charcnv: Move convert_string() et al to lib/util/charsetAndrew Bartlett2011-04-134-447/+4
| | | | | | | | | This is the first step to this being the common convert_string implementation. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-selftest Add workaround for RAP test failureAndrew Bartlett2011-04-131-0/+2
| | | | | | | | | | | The rap.sam test reads 0xFFFFFFFF as a string in the level 2 r->HomeDir attribute, which once we start validating ASCII strings fails. This restores a unchecked dos charset for this test only, until it is determined if the client or server RAP code is at fault. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util: Make string_replace from s3 commonAndrew Bartlett2011-04-131-43/+0
| | | | | | | | | The s4 implementation didn't do multibyte strings, so was only good for '/' which is known to be safe in all multibyte charsets. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util ucs2_align is identical, put it in commonAndrew Bartlett2011-04-131-7/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Move simple string routines into common code.Andrew Bartlett2011-04-132-50/+2
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Move source3/lib/util_unistr.c to the common code.Andrew Bartlett2011-04-135-389/+44
| | | | | | | | This file (largely) contains functions to deal with UTF16 strings. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Move strdup_w to it's only user in mangle_hash.cAndrew Bartlett2011-04-133-19/+19
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett2011-04-135-54/+34
| | | | | | | | | | | | This means that there is no need for the 'valid.dat' table to be loaded by anything other than smbd, so the unloader is also removed. The concept of a 'valid dos character' has been replaced by the hash2 mangle method. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib make static and remove more _w functionsAndrew Bartlett2011-04-132-16/+2
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Remove unused #defineAndrew Bartlett2011-04-131-4/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Remove unused skip_unibuf()Andrew Bartlett2011-04-132-21/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib: Remove unused _w functions.Andrew Bartlett2011-04-133-226/+1
| | | | | | | | | In general we don't manipulate UTF16 strings internally, particularly as they are also multibyte, so are no easier to work with than UTF8. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Correct comment in strlen_w()Andrew Bartlett2011-04-131-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Remove more unused fstring.c functionsAndrew Bartlett2011-04-132-47/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-charcnv: make pull_ucs2 staticAndrew Bartlett2011-04-132-2/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib: Remove unused pull_ucs2_fstring()Andrew Bartlett2011-04-132-5/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/ldap pull LIBCLI_LDAP_MESSAGE and LIBCLI_LDAP_NDR into a libraryAndrew Bartlett2011-04-132-5/+5
| | | | | | This reduces symbol duplication Andrew Bartlett
* s3: For net ads join, create a krb5.confVolker Lendecke2011-04-121-0/+5
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 12 14:10:05 CEST 2011 on sn-devel-104
* s3: Initialize output in libnet_JoinVolker Lendecke2011-04-121-0/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Retry the join with the short nameVolker Lendecke2011-04-121-0/+5
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-util: separate out cmdline helpers.Günther Deschner2011-04-125-287/+314
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 12 13:06:27 CEST 2011 on sn-devel-104
* s3: add some forward declarations.Günther Deschner2011-04-122-3/+4
| | | | Guenther
* s3-netapi: use dcerpc_try_samr_connects().Günther Deschner2011-04-121-4/+18
| | | | Guenther
* s3-netapi: use libnetapi_get_binding_handle().Günther Deschner2011-04-126-108/+54
| | | | Guenther
* s3-netapi: add libnetapi_get_binding_handle().Günther Deschner2011-04-122-0/+27
| | | | Guenther
* s3-librpc: let librpc/rpc/dcerpc.h include ndr and generated dcerpc headers.Günther Deschner2011-04-121-0/+2
| | | | Guenther
* s3-rpc_client: move rpc_cli_transport structs and protos to rpc_transport.hGünther Deschner2011-04-126-80/+111
| | | | Guenther
* s3-printing: Use become_user_by_session() function.Andreas Schneider2011-04-111-3/+3
| | | | | | | | | | We create a fake connection here and don't have an vuid. So work with the session_info directly here. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 11 22:56:12 CEST 2011 on sn-devel-104
* s3-smbd: Added a become_user_by_session() function.Andreas Schneider2011-04-112-0/+19
| | | | | | | | This uses the provided session_info instead of searching the user via the vuid. This is useful to work with fake connnection you need to create if someone connects directly to a rpc service. Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-smbd: Added a change_to_user_by_session() function.Andreas Schneider2011-04-112-74/+98
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Wrap creating the svcctl keys in a transactionVolker Lendecke2011-04-111-0/+28
| | | | | | | | This makes the startup of smbd in make test much quicker and thus more reliable (cherry picked from commit f1aa38b414e97d8687d0bebf65baa384f75301b4) Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 11 22:09:58 CEST 2011 on sn-devel-104
* s3: Make reg_backend_db.h includable by itselfVolker Lendecke2011-04-111-0/+1
| | | | (cherry picked from commit 6ba31d3bd29dd11b1b98859f4d8a65d9be7dac60)
* s3: Fix Coverity ID 2472, UNINITVolker Lendecke2011-04-111-2/+1
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Apr 11 17:14:35 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2473, UNINITVolker Lendecke2011-04-111-2/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Fix timeout calculation in event_add_to_poll_argsVolker Lendecke2011-04-111-1/+1
| | | | | | | | | In the initial phase nmbd does not yet have timed events. This led to nmbd not correctly registering its names in make test and certainly everywhere else. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 11 14:35:45 CEST 2011 on sn-devel-104
* s3-modules: Fix debug messageBjörn Baumbach2011-04-111-1/+1
| | | | | | | | | Print child descriptor instead of parent. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Apr 11 11:48:42 CEST 2011 on sn-devel-104
* Fix bug 8072 - PANIC: create_file_acl_common frees handle two times.Jeremy Allison2011-04-091-51/+48
| | | | | | | | | | | | Caused by premature optimisation storing the parent ACL on the module handle instead of (correctly) on the file fsp. Previous code wasn't reentrant safe. This is less optimal but doesn't crash in the specific case :-). Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 9 02:05:15 CEST 2011 on sn-devel-104
* Subtle change. Microsoft SMB2 tests return different access mask than for ↵Jeremy Allison2011-04-081-1/+12
| | | | SMB1 with raw.acls.
* s3:net idmap check: fix output of an invalid recordMichael Adam2011-04-081-1/+6
| | | | | | | | | Only print the value number for hwm, version and seqnum keys. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Apr 8 17:29:31 CEST 2011 on sn-devel-104
* s3-net: "idmap check" ignore __db_sequence_number__Gregor Beck2011-04-081-1/+7
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net rpc trust: fix two C++ implicit void * cast warningsMichael Adam2011-04-071-2/+5
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Apr 7 17:52:28 CEST 2011 on sn-devel-104
* s3:passdb:pdb_ipa: fix a C++ implicit void * cast warningsMichael Adam2011-04-071-1/+2
|
* s3:net idmap check: fix a couple of c++ implicit void * cast warningsMichael Adam2011-04-071-5/+5
|
* s3-net: fix the usage output of "net idmap check"Gregor Beck2011-04-071-4/+5
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Revert "s3-test: disable ktest for now"Andrew Bartlett2011-04-071-1/+0
| | | | | | | | | | | | This reverts commit 77820d59fe517168db5cb79b05214ae9fd6b4467. I beleive this is now reliable, after the changes to wait for an actual connection at startup and to use the fake DNS file. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 7 07:20:03 CEST 2011 on sn-devel-104
* s3-test: disable ktest for nowAndrew Tridgell2011-04-071-0/+1
| | | | | | | | the ktest tests are currently flakey. Once andrew has found the problem they can be re-enabled Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Apr 7 03:36:36 CEST 2011 on sn-devel-104
* Fix bug 6966 - "allow trusted domains = no" not respected in winbind.Dmitry Butskoy2011-04-061-6/+6
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 6 23:37:27 CEST 2011 on sn-devel-104
* s3: Fix tldap_make_mod_blob_int() debug messagesSumit Bose2011-04-061-3/+3
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 6 13:10:30 CEST 2011 on sn-devel-104