summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
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
2011-02-20s3: Fix some nonempty blank linesVolker Lendecke1-3/+3
2011-02-18lib/util/charset Add back setlocale(), but only when called from binariesAndrew Bartlett2-2/+2
When called from a library, we don't want to call this, as we may overwrite some of our calling program's context. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104
2011-02-18lib/util/charcnv Move iconv handle setup in commonAndrew Bartlett1-290/+12
We now use the struct smb_iconv_convenience at the core of all our iconv code, and use global_iconv_convenience for the callers that don't specify one. Andrew Bartlett
2011-02-18s3-charcnv Don't genreate valid_table on the fly, rely on valid.datAndrew Bartlett2-51/+8
This file is always installed, and is only even required for the old, depricated mangle hash method. Andrew Bartlett
2011-02-18lib/util/charset Use top level iconv.c in source3Andrew Bartlett1-775/+0
The two files were very similar already, the only change required was to adopt the s3 module registration fucntion name. (NTSTATUS wasn't used as the charset code does not otherwise use that type). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-02-18charset Remove use of {isupper,islower,toupper,tolower}_w functionsAndrew Bartlett4-161/+18
These now call the common _m functions that consider UTF16 code points. This removes the code which will make up a 'lame' table in memory, as this can just as correctly be handled by running the algorithm at runtime (which is to call toupper() and tolower() on characters < 128). When used, a top level waf build will always locate the correct table - in the build tree or outside - due to relinking the installed binary. Andrew Bartlett
2011-02-17s3-cluster Always fill in the clustering vnn elementAndrew Bartlett2-30/+0
This avoids this structure being partially uninitialised. Adnrew Bartlett
2011-02-17nsswitch: make wb_reqtrans a common subsystem.Günther Deschner2-507/+0
Guenther
2011-02-14s3: move some defines to a better place.Günther Deschner1-0/+11
Guenther
2011-02-13s3: Use tlap_simple_recv in tldap_sasl_bind_recvVolker Lendecke1-6/+3
2011-02-13s3: Add error checking to asn1_read_OctetString_tallocVolker Lendecke1-2/+15
2011-02-13Fix typosVolker Lendecke1-1/+1
2011-02-13s3: Convert tldap_entry_values args to "array, count"Volker Lendecke1-4/+4