summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-netapi: use cli_get_session_key() in netapi.Günther Deschner2011-03-242-6/+53
| | | | Guenther
* Fix is_myname_or_ipaddr() to be robust against strange DNS setups.Jeremy Allison2011-03-241-30/+56
| | | | | | | | | | | | | If IPv6 DNS names are turned on, but Samba isn't configured to listen on an IPv6 interface, then is_myname_or_ipaddr() can return false on a valid DNS name that it should detect is our own. If the IPv6 addr is returned by preference, then looking at the first addr only causes is_myname_or_ipaddr() to fail. We need to look at all the addresses returned by the DNS lookup and check all of them against our interface list. This is an order N^2 lookup, but there shouldn't be enough addresses to make this a practical problem. Jeremy.
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-245-210/+33
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* s3: Fix a shadowed declaration warningVolker Lendecke2011-03-231-3/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 23 17:19:01 CET 2011 on sn-devel-104
* s3: Include prctl where it is actually usedVolker Lendecke2011-03-231-0/+4
|
* s3: Attempt to fix the build on FreeBSDVolker Lendecke2011-03-231-0/+4
|
* lib/util: Merge basic string length and comparison functionsAndrew Bartlett2011-03-231-292/+0
| | | | | | | | | | These functions now use the codepoints for more accurate string handling and now form common code. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 23 08:21:54 CET 2011 on sn-devel-104
* s3-lib prepare Samba3 to use common codepoint based string functionsAndrew Bartlett2011-03-231-108/+82
| | | | | | | This patch changes the source3 util_str.c functions so that the next patch just contains the move into common code, without code changes. Andrew Bartlett
* s3-safe_str: Futher simplify the macros by removing indirectionAndrew Bartlett2011-03-231-5/+5
| | | | | | | | Now that we don't need to pass in the function name and string, another level of indirection can be safely removed, and the operation of these macros made much clearer. Andrew Bartlett
* s3-lib Remove the clobber_region() code.Andrew Bartlett2011-03-235-197/+37
| | | | | | | | | | | | | | | | | | This code wrote to the full buffer in fstrcpy(), pstrcpy() and other fixed-length string manipulation functions. The hope of this code was to find out at run time if we were mixing up pstring and fstring etc, and to record where this came from. It has a runtime performance impact (particularly if compiled with --enable-developer). It is being removed because of the complexity it adds, and the distinct lack of bugs that this complexity has been credited in finding. The macro-based compile-time checking of string sizes remains. Andrew Bartlett
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-232-1/+333
| | | | | this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
* fault: moved s3 fault.c to top levelAndrew Tridgell2011-03-231-381/+0
|
* s3-fault: removed the cont_fn from fault_setup()Andrew Tridgell2011-03-221-17/+2
| | | | | | | | | | cont_fn() was supposed to be a way to continue after a seg fault. It could never be called however, as smb_panic() from fault_report() could never return, as dump_core() never returns at the end of smb_panic() Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
* s3: Fix early tldap_search cancelsVolker Lendecke2011-03-201-1/+1
| | | | | | | | | | | A callback of tldap_search_send might not interested in the rest of the results and could do a TALLOC_FREE of the search request. In this case, "subreq" is already free'ed. So we have to set it to pending before the callback is called. The TALLOC_FREE of the search request will set it to non-pending again via tldap_msg_destructor. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 20 11:26:57 CET 2011 on sn-devel-104
* s3: use getgrset() when it is availableChristian Ambach2011-03-191-2/+57
| | | | | | | | | | When getgrouplist() is not defined, use getgrset() if it is defined instead of using the initgroups() + getgroups() combo Major contributions from Yannick Bergeron <yaberger@ca.ibm.com> Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Mar 19 10:09:38 CET 2011 on sn-devel-104
* s3-build: use HAVE_ADS define in some more places.Günther Deschner2011-03-191-1/+1
| | | | Guenther
* s3-username: rename static getpwnam_alloc to getpwnam_alloc_cached.Günther Deschner2011-03-171-5/+5
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Mar 17 00:32:40 CET 2011 on sn-devel-104
* s3-build: only include asn1 headers where actually needed.Günther Deschner2011-03-162-0/+2
| | | | Guenther
* s3: Fix Coverity ID 2231, REVERSE_INULLVolker Lendecke2011-03-161-2/+3
| | | | | | | No point in checking for !ctx after dereferencing it Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 22:51:52 CET 2011 on sn-devel-104
* s3-packet: only include packet.h where needed.Günther Deschner2011-03-162-0/+2
| | | | Guenther
* s3-interfaces: only include interfaces.h where needed.Günther Deschner2011-03-164-0/+4
| | | | Guenther
* s3-build: stop including ldap and lber headers everywhere in the code.Günther Deschner2011-03-161-0/+1
| | | | | | | | | | Instead use new header smb_ldap.h where all LDAP API related things are handled, while smbldap.h only deals with our smbldap_X() API. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 16 10:54:51 CET 2011 on sn-devel-104
* s3: Use jenkins hash for str_checksum, fix bug 8010Volker Lendecke2011-03-161-11/+2
| | | | | | | | | | | | From the bugreport: I have a folder with ~90 photos: IMG_XXXX.JPG where XXXX is a four digit number, almost consecutive (photos from camera for one day). Current implementation gives about 30 different checksums for this set of files. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 16 01:15:41 CET 2011 on sn-devel-104
* s3: Remove some unused codeVolker Lendecke2011-03-151-41/+0
|
* s3: "hex_encode" does the same as "binary_string"Volker Lendecke2011-03-151-1/+1
|
* Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on SambaJeremy Allison2011-03-141-2/+6
| | | | | | | | | | | When pulling non-aligned ucs2 strings, we neglected to add in the pad byte to the buffer length we've eaten. This caused the device string in TCONX (which seems to be one of the few places that uses non-aligned ucs2 strings) to be incorrectly read. Volker please check. Jeremy.
* s3: Change tldap_entry_attributes to the "array,count" conventionVolker Lendecke2011-03-142-3/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
* Quite some callers of sid_split_rid do not care about the ridVolker Lendecke2011-03-101-2/+1
|
* s3-smbd: Increase debug level von context messages.Andreas Schneider2011-03-091-1/+1
|
* s3: Use dom_sid_string_buf in sid_to_fstringVolker Lendecke2011-03-031-3/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104
* s3-libds: use already existing ../libds/common/flag_mapping.h header.Günther Deschner2011-03-021-0/+1
| | | | Guenther
* s3:idmap_cache: remove an leftover wip commentMichael Adam2011-03-021-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Mar 2 14:55:20 CET 2011 on sn-devel-104
* s3: adjust loglevel for idmap_cacheGregor Beck2011-03-021-10/+10
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-sessionid: avoid global include of sessionid.hGünther Deschner2011-03-021-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 2 12:58:12 CET 2011 on sn-devel-104
* s3-server_id: only include server_id where needed.Günther Deschner2011-03-021-0/+1
| | | | Guenther
* lib/util: new merged debug systemAndrew Bartlett2011-03-011-1118/+0
| | | | | | | | | | | | This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
* s3-debug Always use C99 true/false rather than True and FalseAndrew Bartlett2011-03-011-29/+29
| | | | | | | This will help with the merge into the common code. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 02:58:55 CET 2011 on sn-devel-104
* lib/util/time: Merge time functions from source3/lib/time.cAndrew Bartlett2011-03-011-63/+0
|
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-282-0/+2
|
* s3: Eliminate sys_select_intr from read_fd_with_timeoutVolker Lendecke2011-02-281-12/+7
|
* s3: Add poll_intr_one_fdVolker Lendecke2011-02-281-0/+17
|
* s3: Eliminate sys_select from g_lock_lockVolker Lendecke2011-02-281-11/+31
|
* s3: Eliminate select from packet_fd_read_syncVolker Lendecke2011-02-282-17/+15
|
* s3: Add poll_one_fd()Volker Lendecke2011-02-281-0/+27
|
* s3: Remove select-based s3 event backendVolker Lendecke2011-02-281-114/+0
|
* s3: Use poll for the event loopVolker Lendecke2011-02-281-13/+267
|
* s3: Add timeval_to_msecVolker Lendecke2011-02-281-0/+5
|
* s3: add functions to remove entries from idmap cacheGregor Beck2011-02-282-0/+120
|
* s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke2011-02-271-1/+1
| | | | | | | All callers had to cast this anyway Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
* dirfd doesn't exist in some platforms.Jeremy Allison2011-02-261-2/+4
| | | | | | | | | | | | | | | Hack that should get the buildfarm back to green. Ensure dirfd() needs to be defined before we properly return fdopendir. This will do until we get a proper dirfd() defined in libreplace. From http://www.gnu.org/software/hello/manual/gnulib/dirfd.html This function is missing on some platforms: AIX 7.1, HP-UX 11, OSF/1 5.1, Solaris 10, mingw. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 26 04:19:55 CET 2011 on sn-devel-104