summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3:dbwrap_util: add my CMichael Adam2009-07-151-0/+1
| | | | Michael
* s3:dbwrap: add dbwrap_fetch_bystring_upper().Michael Adam2009-07-151-0/+17
| | | | | | To fetch a key whose name is stored but not given in upper case. Michael
* s3:dbwrap: add dbwrap_store_bystring_upper().Michael Adam2009-07-151-0/+17
| | | | | | This stores a key under the uppercase version of the given keyname. Michael
* s3:dbwrap: add dbwrap_delete_bystring_upper()Michael Adam2009-07-151-0/+16
| | | | | | To delete a key whose name is not given in but stored in uppercase. Michael
* s3:dbwrap: add a wrapper dbwrap_trans_do()Michael Adam2009-07-151-0/+33
| | | | | | | | | This function wraps the action() callback into a db transaction and the transaction is either committed or cancelled, depending on the return value of the action function. Michael
* s3:lib: map ENOSYS to NT_STATUS_NOT_SUPPORTED instead of NT_STATUS_ACCESS_DENIEDStefan Metzmacher2009-07-151-0/+1
| | | | | | Jeremy: please check and decide if we want to backport this. metze
* Consolidate gencache also every 100 writes in a single processVolker Lendecke2009-07-151-0/+14
|
* Consolidate string and data_blob routines in gencacheVolker Lendecke2009-07-151-138/+56
|
* Make gencache more stableVolker Lendecke2009-07-151-15/+268
| | | | | | | | | | This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
* Add tdb_data_cmpVolker Lendecke2009-07-151-0/+19
|
* Remove gencache_init/shutdownVolker Lendecke2009-07-152-21/+1
| | | | | gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
* Remove gencache_[un]lock_keyVolker Lendecke2009-07-151-25/+0
|
* TDB_CONTEXT -> "struct tdb_context"Volker Lendecke2009-07-151-1/+1
|
* Replace ASSERTs in gencache with "return false"Volker Lendecke2009-07-151-12/+18
| | | | It's a bit strong to panic here I think.
* s3: allow setting the TCP_QUICKACK socket optionBjörn Jacke2009-07-141-0/+3
|
* s3-account_policy: add pdb_policy_type enum.Günther Deschner2009-07-141-44/+44
| | | | Guenther
* s3-account_policy: remove trailing whitespace.Günther Deschner2009-07-141-32/+32
| | | | Guenther
* libds: merge the UF<->ACB flag mapping functions.Günther Deschner2009-07-132-151/+1
| | | | Guenther
* Quieten events and tldap debug messagesVolker Lendecke2009-07-101-1/+1
|
* Fix our base64 implementation for blobs of length 4....Volker Lendecke2009-07-101-1/+1
| | | | | The additional length check bit us exactly at 4, removing it. The torture test survives valgrind up to 2000 bytes :-)
* Make escape_ldap_string take a talloc contextVolker Lendecke2009-07-092-17/+20
|
* s3: Remove is_ntfs_stream_name() and split_ntfs_stream_name()Tim Prouty2009-07-081-90/+0
| | | | | Actually I moved split_ntfs_stream_name into torture.c which is the one consumer of it. This could probably be changed at some point.
* Rename update_stat_ex_writetime() -> update_stat_ex_mtime()Jeremy Allison2009-07-081-2/+2
| | | | | to better describe what we're doing here. Jeremy
* The migration to struct stat_ex broke the calculation ofJeremy Allison2009-07-081-14/+58
| | | | | | | | | | | | | | | | create time from the existing timestamps (for systems that need to do this). Once the write time is changed via a sticky write, the create time might need to be recalculated. To do this I needed to add a bool into struct stat_ex to remember if the st_ex_btime field was calculated, or read from the OS. Also fixed the returning of modified write timestamps in the return from NTCreateX, SMBattr and SMBattrE (which weren't taking into account the modified timestamp stored in the open file table). Attempting to fix an issue with Excel 2003 and offline files. Volker and Metze, please review. Jeremy
* When faking a create time, use the full timespec values, not time_t.Jeremy Allison2009-07-081-61/+63
| | | | Jeremy.
* Add tldap_pull_guidVolker Lendecke2009-07-041-0/+11
|
* tldap: Do not do a return before we got the search_resultVolker Lendecke2009-07-031-1/+0
|
* Revert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we ↵Michael Adam2009-07-031-1/+1
| | | | | | | | | | | | | | | | | | | have it." This reverts commit 1d3dcd1e420104c23769b691d0b8b7958d5c58a7. This fixes Bug #6531 (Pid File creation.) Usually, I would extend is_default_dyn_XYZ() so that it returns true when dyn_XYZ has not been set yet or when its value is equal to the compiled in default value XZY. But this would have a change in effect in popt_common and torture.c: is_default_dyn_CONFIGFILE() is used there to check whether the config file should be overwritten by the contents of the environment variable SMB_CONF_PATH. Currently this is only done when set_dyn_CONFIGFILE() had _not_ previously been called at all, not even with the same value as the compiled in default. Michael
* LDB_ERR_INVALID_DN_SYNTAX doesn't exist ...Andrew Tridgell2009-07-021-1/+1
| | | | The correct name is ldb.ERR_INVALID_DN_SYNTAX
* s3:util: let parent_dirname() correctly return toplevel filenamesStefan Metzmacher2009-07-011-1/+1
| | | | metze
* s3:lib/sysquotas: fix usage of SMB_STRUCT_STAT (struct stat_ex).Michael Adam2009-06-291-3/+3
| | | | | | | This fixes the build with quotas / configure time detection of sys_quota interface. Michael
* Fix ndrdump to use a common setup_logging() APIAndrew Bartlett2009-06-291-0/+9
| | | | | | | | | By adding a new common setup_logging_stdout() API, we no longer need to abuse the ABI compatability between the different setup_logging() calls in Samba3 and Samba4's DEBUG() subsystems. The revert of 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 works with this to fix bug 6211. Andrew Bartlett
* Fix bug 6514: net gives unhelpful "lp_load failed" when it's missing smb.confDavid Markey2009-06-291-1/+1
|
* If the connection is down, don't try another write.Volker Lendecke2009-06-281-0/+17
|
* Add tldap_search_vaVolker Lendecke2009-06-281-8/+20
|
* tldap_msg_received: Properly free the asn1_struct in case of an errorVolker Lendecke2009-06-281-0/+1
|
* Move read_ldap_done after read_ldap_sendVolker Lendecke2009-06-271-24/+25
|
* Convert tldap to tstreamVolker Lendecke2009-06-271-11/+17
|
* Add tstream_read_packetVolker Lendecke2009-06-271-0/+139
|
* tldap: Don't fire off more than one read_ldap request during searchesVolker Lendecke2009-06-271-10/+22
|
* Fix some dead code warnings from SUN StudioVolker Lendecke2009-06-262-4/+4
|
* Add tldap paged searches, together with two helper routinesVolker Lendecke2009-06-201-0/+261
|
* Reorganize retrieving errors and server-sent controlsVolker Lendecke2009-06-202-84/+67
| | | | | | | This attaches the data to the tldap_message instead of the tevent_req. It adds tldap_ctx_lastmsg() to retrieve the last message for the users of the sync wrappers.
* Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke2009-06-201-7/+0
|
* Move asn1_blob() to lib/util/asn1.cVolker Lendecke2009-06-201-13/+0
|
* Add tldap_supports_controlVolker Lendecke2009-06-201-0/+11
|
* Add tldap_entry_has_attrvalueVolker Lendecke2009-06-201-0/+18
|
* tldap control supportVolker Lendecke2009-06-201-7/+122
|
* Prepare control supportVolker Lendecke2009-06-202-29/+46
| | | | | | | | | We will have arrays of controls passed to tldap.c. Follow a mantra from the classic book "Thinking Forth" by Leo Brodie: Favor counts over terminators :-) This makes the parameter lists to tldap pretty long, but everyone will have wrapper routines anyway, see for example tldap_search_fmt. And the OpenLDAP manpages call the non-_ext routines deprecated, probably for a reason.
* Fix empty linesVolker Lendecke2009-06-201-3/+0
|