summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lib: Move next_token next to next_token_tallocVolker Lendecke2011-04-132-47/+46
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* libwbclient: Add wbcLookupSidsVolker Lendecke2011-04-132-0/+193
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add winbindd_lookupsidsVolker Lendecke2011-04-135-1/+158
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add wb_lookupsidsVolker Lendecke2011-04-133-0/+610
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add wbint_LookupSidsVolker Lendecke2011-04-135-3/+130
| | | | | | This will be called from wb_lookupsids to query remote DCs via lsa Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make parse_sidlist publicVolker Lendecke2011-04-133-34/+33
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Simplify parse_sidlistVolker Lendecke2011-04-131-17/+9
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* Add dom_sid_parse_endpVolker Lendecke2011-04-132-2/+14
| | | | | | | This returns a pointer to the first non-parsed character, along the lines of strtoul for example. Signed-off-by: Jeremy Allison <jra@samba.org>
* Don't print "success" message after error message in ↵Jeremy Allison2011-04-131-9/+8
| | | | change_file_owner_to_parent(). Remove "goto" in change_dir_owner_to_parent().
* s3-build: finally remove references to ndr and dcerpc headers that were ↵Günther Deschner2011-04-133-4/+0
| | | | | | | | | included globally. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 13 23:07:05 CEST 2011 on sn-devel-104
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-1329-25/+84
| | | | Guenther
* s3-netapi: remove two shadowed variables.Günther Deschner2011-04-131-2/+0
| | | | Guenther
* s3:WHATSNEW.txt: remove the "strict allocate" default valueStefan Metzmacher2011-04-131-1/+0
| | | | | | | | | | | commit dc36d75d5fddaa351025e8eb8140f401b66aeb9d reverted the change to true, because it makes Samba unusable on systems without Linux and a modern Filesystem. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Apr 13 21:21:10 CEST 2011 on sn-devel-104
* s3-cli_pipe: fix timeout in rpc_pipe_open_tcp_port().Günther Deschner2011-04-131-1/+1
| | | | | | | | | | | | Make sure we use a timeout of 60 seconds, not 60 milliseconds... This prevented us from successfully using the ncacn_ip_tcp client in a lot of places, I guess. Guenther Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 13 18:59:19 CEST 2011 on sn-devel-104
* s3-util_sock: very brief documentation for open_socket_out().Günther Deschner2011-04-131-0/+10
| | | | | | | The most important bit is to document that timeout is in MILLIseconds, not seconds. Guenther
* s3: Make send_nt_replies() staticVolker Lendecke2011-04-132-8/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 13 16:25:29 CEST 2011 on sn-devel-104
* talloc: fix compiler warnings with -Wc++-compatStefan Metzmacher2011-04-131-5/+5
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Apr 13 14:33:23 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2470: STRAY_SEMICOLONVolker Lendecke2011-04-131-1/+1
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 13 12:57:43 CEST 2011 on sn-devel-104
* s3: Use talloc_tos() in the S3 buildVolker Lendecke2011-04-131-1/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 13 09:30:55 CEST 2011 on sn-devel-104
* build: Bring DYNCONFIG into samba-util library to avoid symbol duplicationAndrew Bartlett2011-04-132-6/+6
| | | | | | | | | | 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
* s4-test: added a test for E_deshash()Andrew Tridgell2011-04-133-1/+72
| | | | | | | | | | this particularly checks the boundary conditions near passwords of length 14 characters Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 13 07:31:55 CEST 2011 on sn-devel-104
* s3-charcnv: Move convert_string() et al to lib/util/charsetAndrew Bartlett2011-04-135-447/+471
| | | | | | | | | This is the first step to this being the common convert_string implementation. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/auth Use convert_string_error to check LM hash calculation.Andrew Bartlett2011-04-131-9/+24
| | | | | | | | | | This allows us to know if the LM hash was built correctly or not. NOTE: talloc_tos() is not available in the common code at this time. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add many more charset testsAndrew Bartlett2011-04-132-15/+446
| | | | | | | | | This confirms that the behaviour of the convert_string() API (with the process-wide iconv handle). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add convert_string_error()Andrew Bartlett2011-04-132-0/+25
| | | | | | | | This adds an interface that matches the source3/ convert string code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Make ASCII conversion validate it's inputAndrew Bartlett2011-04-131-4/+69
| | | | | | | | | We should not just strip the high bits off unicode strings being converted to ASCII, we need to actually fail the conversion. 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/charset Rename convert_string test to allow a 'non_handle' testAndrew Bartlett2011-04-132-4/+3
| | | | | | | | | A future commit will test (with a subset of tests) the varient of this function without _handle. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add more tests for convert_string_error_handle()Andrew Bartlett2011-04-131-0/+101
| | | | | | | | | This helps define the semantics of this function very clearly, particularly for partial and invalid inputs. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Preserve 'pull' errors even when converting via UTF16Andrew Bartlett2011-04-131-3/+8
| | | | | | | | | | | | | | When we do not have a direct iconv handle between any two charsets, we must go iva UTF16. However, we should still return the same buffer and error code as if we were able to go direct - including the partial conversion and the error code. This is important for locating the invalid multibyte character in the stream, for example. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add tests for convert_string_error_handleAndrew Bartlett2011-04-131-1/+68
| | | | | | | | | These confirm that the errno is set correctly and that we stop on a partial multibyte character Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add expected values for upper/lower case testsAndrew Bartlett2011-04-131-0/+16
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Fix and add public interface for convert_string_error_handleAndrew Bartlett2011-04-132-7/+14
| | | | | | | | | It makes much more sense for this to match the source3/ interface and return a bool. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/torture Fix calls to charcnv functions to always supply converted_sizeAndrew Bartlett2011-04-132-2/+3
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util: Make string_replace from s3 commonAndrew Bartlett2011-04-133-53/+43
| | | | | | | | | 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-133-14/+7
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Move simple string routines into common code.Andrew Bartlett2011-04-136-105/+84
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Move source3/lib/util_unistr.c to the common code.Andrew Bartlett2011-04-137-74/+73
| | | | | | | | 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>
* build: use readelf as a replacement for lddAndrew Tridgell2011-04-131-33/+77
| | | | | | | | using readelf allows us to do a non-recursive library listing, which is important to remove false positive symbol duplication Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 13 04:37:33 CEST 2011 on sn-devel-104