summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2011-03-23lib/util: Merge basic string length and comparison functionsAndrew Bartlett1-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
2011-03-23s3-lib prepare Samba3 to use common codepoint based string functionsAndrew Bartlett1-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
2011-03-23s3-safe_str: Futher simplify the macros by removing indirectionAndrew Bartlett1-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
2011-03-23s3-lib Remove the clobber_region() code.Andrew Bartlett5-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
2011-03-23fault: get fault.c ready for use by s4Andrew Tridgell2-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
2011-03-23fault: moved s3 fault.c to top levelAndrew Tridgell1-381/+0
2011-03-22s3-fault: removed the cont_fn from fault_setup()Andrew Tridgell1-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
2011-03-20s3: Fix early tldap_search cancelsVolker Lendecke1-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
2011-03-19s3: use getgrset() when it is availableChristian Ambach1-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
2011-03-19s3-build: use HAVE_ADS define in some more places.Günther Deschner1-1/+1
Guenther
2011-03-17s3-username: rename static getpwnam_alloc to getpwnam_alloc_cached.Günther Deschner1-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
2011-03-16s3-build: only include asn1 headers where actually needed.Günther Deschner2-0/+2
Guenther
2011-03-16s3: Fix Coverity ID 2231, REVERSE_INULLVolker Lendecke1-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
2011-03-16s3-packet: only include packet.h where needed.Günther Deschner2-0/+2
Guenther
2011-03-16s3-interfaces: only include interfaces.h where needed.Günther Deschner4-0/+4
Guenther
2011-03-16s3-build: stop including ldap and lber headers everywhere in the code.Günther Deschner1-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
2011-03-16s3: Use jenkins hash for str_checksum, fix bug 8010Volker Lendecke1-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
2011-03-15s3: Remove some unused codeVolker Lendecke1-41/+0
2011-03-15s3: "hex_encode" does the same as "binary_string"Volker Lendecke1-1/+1
2011-03-14Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on SambaJeremy Allison1-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.
2011-03-14s3: Change tldap_entry_attributes to the "array,count" conventionVolker Lendecke2-3/+4
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
2011-03-10Quite some callers of sid_split_rid do not care about the ridVolker Lendecke1-2/+1
2011-03-09s3-smbd: Increase debug level von context messages.Andreas Schneider1-1/+1
2011-03-03s3: Use dom_sid_string_buf in sid_to_fstringVolker Lendecke1-3/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104
2011-03-02s3-libds: use already existing ../libds/common/flag_mapping.h header.Günther Deschner1-0/+1
Guenther
2011-03-02s3:idmap_cache: remove an leftover wip commentMichael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Mar 2 14:55:20 CET 2011 on sn-devel-104
2011-03-02s3: adjust loglevel for idmap_cacheGregor Beck1-10/+10
Signed-off-by: Michael Adam <obnox@samba.org>
2011-03-02s3-sessionid: avoid global include of sessionid.hGünther Deschner1-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
2011-03-02s3-server_id: only include server_id where needed.Günther Deschner1-0/+1
Guenther
2011-03-01lib/util: new merged debug systemAndrew Bartlett1-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
2011-03-01s3-debug Always use C99 true/false rather than True and FalseAndrew Bartlett1-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
2011-03-01lib/util/time: Merge time functions from source3/lib/time.cAndrew Bartlett1-63/+0
2011-02-28s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2-0/+2
2011-02-28s3: Eliminate sys_select_intr from read_fd_with_timeoutVolker Lendecke1-12/+7
2011-02-28s3: Add poll_intr_one_fdVolker Lendecke1-0/+17
2011-02-28s3: Eliminate sys_select from g_lock_lockVolker Lendecke1-11/+31
2011-02-28s3: Eliminate select from packet_fd_read_syncVolker Lendecke2-17/+15
2011-02-28s3: Add poll_one_fd()Volker Lendecke1-0/+27
2011-02-28s3: Remove select-based s3 event backendVolker Lendecke1-114/+0
2011-02-28s3: Use poll for the event loopVolker Lendecke1-13/+267
2011-02-28s3: Add timeval_to_msecVolker Lendecke1-0/+5
2011-02-28s3: add functions to remove entries from idmap cacheGregor Beck2-0/+120
2011-02-27s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke1-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
2011-02-26dirfd doesn't exist in some platforms.Jeremy Allison1-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
2011-02-25Removed unused code check_dos_char_slowly.Jeremy Allison1-17/+0
2011-02-25Detect Mac OS X as a separate client type.Justin Maggard1-0/+3
2011-02-22s3:auth: change num_groups to from size_t to uint32_tStefan Metzmacher1-2/+2
This will help with the change from UNIX_USER_TOKEN to security_unix_token metze
2011-02-22s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2-7/+7
These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-02-20s3: Protect tldap_errstr against a NULL ldVolker Lendecke1-1/+3
2011-02-20s3: Slightly simplify Get_Pwnam_allocVolker Lendecke1-4/+1