summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3-netapi: Fix Coverity CID #2302: FORWARD_NULLGünther Deschner2011-04-271-1/+1
| | | | Guenther
* s3: Allow unlimited parallelism in pthreadpoolVolker Lendecke2011-04-262-9/+31
|
* s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)Stefan Metzmacher2011-04-251-0/+26
| | | | | | | | | | | | | | | | | | This avoids getting IPv4 addresses as mapped IPv6 addresses (e.g. ::ffff:192.168.0.1). Before the bahavior was inconsistent between operating system and distributions. Some system have IPV6_ONLY as default. Now we consistently get AF_INET for IPv4 addresses and AF_INET6 for IPv6 addresses. It also makes it possible to listen only on IPv6 now as "::" doesn't imply "0.0.0.0" anymore. Which also avoids confusing log messages that we were not able to bind to "0.0.0.0". metze
* s3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug ↵Stefan Metzmacher2011-04-251-14/+17
| | | | | | #7383) metze
* s3: pthreadpool_sig_fd->pthreadpool_signal_fdVolker Lendecke2011-04-254-7/+7
|
* s3: Tiny doc for pthreadpoolVolker Lendecke2011-04-251-7/+59
|
* s3: Many pthreadpool fixesVolker Lendecke2011-04-255-87/+587
| | | | In particular, this makes it fork-safe
* s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()Stefan Metzmacher2011-04-241-1/+1
| | | | | | | | | | | | | Most fault codes have a NTSTATUS representation, so use that. This brings the fault handling in common with the source4/librpc/rpc code, which make it possible to share more highlevel code, between source3 and source4 as the error checking can be the same now. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2478, UNINITVolker Lendecke2011-04-231-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 23 14:11:22 CEST 2011 on sn-devel-104
* s3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher2011-04-231-24/+0
| | | | | | We rely on uint64_t for a long time now... metze
* s3: Fix Coverity ID 2307, NULL_RETURNSVolker Lendecke2011-04-221-0/+4
|
* s3: Fix Coverity ID 1340, NULL_RETURNSVolker Lendecke2011-04-221-0/+4
|
* lib/util/charset create _handle functions for convert_string() et alAndrew Bartlett2011-04-201-12/+0
| | | | | | | | | | | | | | This is now API compatible with the existing code in lib/util/charset lazy_initialize_conv() is no longer called as init_iconv() is called when the smb.conf is processed, and get_conv_handle() will auto-init with defaults if required. load_case_tables_library() is no longer requried as all binaries and libraries already load these in their entry points, as otherwise all the other string functions would fail. Andrew Bartlett
* s3: Use \0 instead of NULL when 0-terminating a stringVolker Lendecke2011-04-171-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
* s3: Remove an unused variableVolker Lendecke2011-04-161-3/+0
|
* s3-build: make sure we pick up system tdb and talloc via #include.Günther Deschner2011-04-141-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 12:56:28 CEST 2011 on sn-devel-104
* lib/util Move alpha_strcpy() from s3 into common codeAndrew Bartlett2011-04-141-50/+0
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 14 09:21:59 CEST 2011 on sn-devel-104
* s3-lib Remove very unused (#if 0) strncpynAndrew Bartlett2011-04-141-25/+0
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 14 06:27:31 CEST 2011 on sn-devel-104
* s3-lib Remove unused string_appendAndrew Bartlett2011-04-141-22/+0
|
* s3-lib Move unix_strlower and unix_strupper to their only users.Andrew Bartlett2011-04-142-41/+41
|
* s3-lib Remove unused str_ascii_charnum()Andrew Bartlett2011-04-141-18/+0
|
* s3-lib Move strisnormal to it's only user in mangle_hash.cAndrew Bartlett2011-04-141-13/+0
|
* s3-includes: only include acl prototypes when needed.Günther Deschner2011-04-141-0/+20
| | | | Guenther
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-133-0/+3
| | | | Guenther
* s3-netapi: remove two shadowed variables.Günther Deschner2011-04-131-2/+0
| | | | Guenther
* 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-charcnv: Move convert_string() et al to lib/util/charsetAndrew Bartlett2011-04-131-445/+1
| | | | | | | | | This is the first step to this being the common convert_string implementation. 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-131-49/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Move source3/lib/util_unistr.c to the common code.Andrew Bartlett2011-04-132-364/+39
| | | | | | | | 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-131-18/+0
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett2011-04-133-51/+0
| | | | | | | | | | | | 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-131-14/+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-131-20/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib: Remove unused _w functions.Andrew Bartlett2011-04-131-213/+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-131-46/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-charcnv: make pull_ucs2 staticAndrew Bartlett2011-04-131-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib: Remove unused pull_ucs2_fstring()Andrew Bartlett2011-04-131-4/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-util: separate out cmdline helpers.Günther Deschner2011-04-122-253/+277
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 12 13:06:27 CEST 2011 on sn-devel-104
* 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: 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: 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
* s3-smbldap: make octet_strings/DATA_BLOBs const.Sumit Bose2011-04-061-4/+4
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-smbldap: support storing octet_strings/DATA_BLOBs.Günther Deschner2011-04-061-21/+91
| | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org>
* s3: add function srprs_quoted to parse strings written with cbuf_print_quotedGregor Beck2011-04-042-1/+52
|