summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* s3: add function cbuf_print_quotedGregor Beck2011-04-042-1/+49
|
* s3: add function dbwrap_traverseGregor Beck2011-04-041-0/+8
|
* s3: add function dbwrap_trans_traverseGregor Beck2011-04-041-0/+30
|
* s3: fix cbuf_swapptrGregor Beck2011-04-041-0/+2
|
* s3:dbwrap_ctdb: in ctdb_delete, send a SCHEDULE_FOR_DELETION control to ↵Michael Adam2011-03-311-1/+56
| | | | | | | | | | | | local ctdbd This way, the record will be scheduled for fast vacuuming. This is sent with the NOREPLY flag, so ctd should not sent a reply packet and samba does not expect one. Hence, it is not important for the success of the db_ctdb_delete command whether or not the ctdbd we are running against supports the SCHEDULE_FOR_DELETION control.
* s3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the controlMichael Adam2011-03-311-0/+1
| | | | | | The only flag that is currently used is the NOREPLY flag to indicate that the client expects no reply packet. This needs to get passed down to the ctdb daemon so that it really does not send a reply.
* s3:ctdb: samba can now handle the NOREPLY flagMichael Adam2011-03-311-3/+0
| | | | | | Revert "samba3 can't handle NOREPLY yet" This reverts commit 9bf211db6d7d6ef6e59508de69d6d8dfe5bae059.
* s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.Michael Adam2011-03-311-0/+3
|
* s3-libndr: add ../librpc/ndr/libndr.h include in some places.Günther Deschner2011-03-311-0/+1
| | | | Guenther
* Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison2011-03-304-40/+49
| | | | | | | | Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
* Change convert_string_internal() and convert_string_error() to bool return.Jeremy Allison2011-03-302-57/+54
| | | | | | | Move closer to makeing all convert_string_XXX functions return bool. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 20:58:10 CEST 2011 on sn-devel-104
* Fix the nstring calls to use the correct sizes.Jeremy Allison2011-03-301-6/+6
|
* s3: Fix g_lock_lock after the select/poll conversionVolker Lendecke2011-03-301-1/+1
| | | | | | | | Without clustering we don't have an fd to listen on, and sys_poll needs one element of space Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 30 18:36:50 CEST 2011 on sn-devel-104
* s3-winbind: try to fix the build on hosts w/o winbind support.Günther Deschner2011-03-301-1/+1
| | | | Guenther
* lib/util Move base64 functions into lib/util/base64.cAndrew Bartlett2011-03-301-115/+0
| | | | Andrew Bartlett
* s3:lib make lazy_initialize_conv() staticAndrew Bartlett2011-03-301-1/+1
|
* s3: try to fix the build on some non-linux buildfarm machines.Günther Deschner2011-03-301-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104
* s3-ctdb_wrap: remove unused variable from db_ctdb_fetch_persistent().Günther Deschner2011-03-301-1/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 02:00:50 CEST 2011 on sn-devel-104
* s3: only include lib/privileges.h where needed.Günther Deschner2011-03-302-0/+19
| | | | | | This finally removes the global lsa.h inclusion. Guenther
* s3: include ../librpc/gen_ndr/lsa.h where needed.Günther Deschner2011-03-302-0/+3
| | | | Guenther
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-307-10/+0
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-3011-0/+11
| | | | Guenther
* s3-auth: use auth.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: move filename_util.c out of source3/smbd to source3/lib.Günther Deschner2011-03-301-0/+206
| | | | Guenther
* s3-build: only include intl protos where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther