summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture: data_blob_hex_string() output is now lowercase.Andrew Kroeger2009-09-301-1/+1
| | | | | Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output.
* parmlist: Add more tests.Jelmer Vernooij2009-09-273-3/+92
|
* parmlist: Add basic tests for test_get_int().Jelmer Vernooij2009-09-271-0/+46
|
* util/parmlist: Add some more comments.Jelmer Vernooij2009-09-272-4/+36
|
* libutil: Add separate utility code for dealing with settings as aJelmer Vernooij2009-09-263-0/+102
| | | | collection of key/value pairs.
* lib/util: fix build warning.Günther Deschner2009-09-251-1/+1
| | | | Guenther
* Remove the const from the str_list_XXX functions thatJeremy Allison2009-09-242-24/+24
| | | | | | | allocate both list and containing strings. This fixes problems that people have tried to cast away and are not needed. Jeremy.
* s4-ldb: added a bunch more debug for DC joinAndrew Tridgell2009-09-221-2/+3
| | | | | These additional debug messages were added to help us track down w2k8->s4 domain join
* s4-util: windows only accepts lowercase hex encodings for extended DNsAndrew Tridgell2009-09-221-1/+4
|
* spnego: Support ASN.1 BIT STRING and use it in SPNEGO.Kouhei Sutou2009-09-172-0/+44
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* libcli:nbt put util_net.c protos in new header fileAndrew Bartlett2009-09-152-21/+46
| | | | | | | This fixed a very odd build problem due to util.h importing system/network.h being imported before the uid_wapper code. Andrew Bartlett
* libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett2009-09-152-2/+138
| | | | | | This starts the process to have Samba4 use lmhosts. Andrew Bartlett
* util_strlist: Add some more "const"s - small correctionMatthias Dieter Wallnöfer2009-09-101-1/+1
|
* util_strlist: Add some more "const"sMatthias Dieter Wallnöfer2009-09-102-22/+27
|
* lib/util: add unique string generator helper functionSteven Danneman2009-09-082-0/+69
|
* s4:tests/iconv - Fix a warningMatthias Dieter Wallnöfer2009-09-071-1/+2
|
* s4: Fix "Small memory leak after calling several times lp_update"Inra2009-09-072-37/+20
| | | | Should fix bug #6660.
* util:tests: Correct time tests for negative UTC offsets.Andrew Kroeger2009-09-051-2/+23
| | | | | | | | | | | | | | | | | | | | | | | All: Please find attached a patch to fix the timestring and http_timestring tests on hosts that have a negative UTC offset (west of the Prime Meridian). Sincerely, Andrew Kroeger >From 8a8ca35edccf64aa98f2f3ae1469c4c27db8215e Mon Sep 17 00:00:00 2001 From: Andrew Kroeger <andrew@id10ts.net> Date: Fri, 4 Sep 2009 01:31:50 -0500 Subject: [PATCH] util:tests: Correct time tests for negative UTC offsets. The timestring and http_timestring tests were failing on hosts with negative offsets from UTC. Due to the timezone offset, the returned values were back in the year 1969 (before the epoch) and did not match the test patterns. The correction computes the offset from UTC, and if it is negative that offset is added onto the value given to the timestring() and http_timestring() calls so that the returned values fall on 01-Jan-1970 and match the test pattern.
* util: fix comment and clarify argument name in DLIST_DEMOTE()Michael Adam2009-08-271-3/+3
| | | | Michael
* Fix make test.Jeremy Allison2009-08-241-0/+1
| | | | Jeremy.
* Rename ASN1_BITFIELD to ASN1_BIT_STRING.Kouhei Sutou2009-08-111-1/+1
| | | | X.690 uses "BIT STRING" not "BIT FIELD".
* make the UID_WRAPPER skip checks at runtimeAndrew Tridgell2009-08-052-5/+8
| | | | | | | This fixes two issues pointed out by Andrew. It adds a runtime uwrap_enabled() call that wraps the skips needed for uid emulation. It also makes the skip in the directory_create_or_exist() function only change the uid checking code, not the permissions code
* added a uid_wrapper libraryAndrew Tridgell2009-08-052-0/+3
| | | | | | | | | | | | | | | | | | | | This library intercepts seteuid and related calls, and simulates them in a manner similar to the nss_wrapper and socket_wrapper libraries. This allows us to enable the vfs_unixuid NTVFS module in the build farm, which means we are more likely to catch errors in the token manipulation. The simulation is not complete, but it is enough for Samba4 for now. The major areas of incompleteness are: - no emulation of setreuid, setresuid or saved uids. These would be needed for use in Samba3 - no emulation of ruid changing. That would also be needed for Samba3 - no attempt to emulate file ownership changing, so code that (for example) tests whether st.st_uid matches geteuid() needs special handling
* util/asn1: fix potential memory leak in asn1_write_OID()Stefan Metzmacher2009-07-311-0/+1
| | | | metze
* No explicit initialization necessary for a zero blobVolker Lendecke2009-07-251-3/+1
|
* lib util: Fix const warningTim Prouty2009-07-201-1/+1
|
* lib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.Slava Semushin2009-07-191-0/+1
| | | | | Found by cppcheck: [./lib/util/util_file.c:383]: (error) Resource leak: fd
* Fix broken password quality checkMatthieu Patou2009-07-192-1/+4
| | | | | This fixes broken password tests when the passwords contain non ASCII characters (e.g. accentuated chars like ('e, `e, ...)
* lib/util: fix order of includes in tevent_ntstatus.cMichael Adam2009-07-011-1/+1
| | | | | | replace.h needs to be included first. Michael
* lib/util: fix building tevent_ntstatus without config.hMichael Adam2009-06-291-1/+0
| | | | | | (when called from places with "#define NO_CONFIG_H" set, such as configure) Michael
* Fix ndrdump to use a common setup_logging() APIAndrew Bartlett2009-06-292-1/+18
| | | | | | | | | 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
* Revert "s4:debug: make setup_logging() a bit more compatible with samba3"Andrew Bartlett2009-06-291-1/+1
| | | | | | | | The problem is that the enum was previously a 'rachet', that is, it would only reset to a level higher than it was previouly set to. Changing the order broke file-based logging for our production sites. This reverts commit 49a6d757b4d944cd22c91b2838beb83f04fbe1e9.
* Two patches which fix issues on cross compiling/buildingNathaniel McCallum2009-06-291-1/+1
|
* Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke2009-06-202-0/+11
|
* Move asn1_blob() to lib/util/asn1.cVolker Lendecke2009-06-202-0/+17
|
* Fix build of recurusion fix in reopen_logs()Andrew Bartlett2009-06-111-1/+1
|
* Don't recurse in reopen_logs().Andrew Bartlett2009-06-111-0/+6
| | | | | | | Use the state to avoid recursion in reopen_logs(), as DEBUG() can call this function. Andrew Bartlett
* lib-util: move set_blocking() call into own file.Günther Deschner2009-06-103-31/+63
| | | | Guenther
* added asn1 functions for handling booleans in a simple contextAndrew Tridgell2009-06-102-0/+25
|
* libsamba-util: Fix soversion.Jelmer Vernooij2009-06-081-1/+1
|
* Use data_blob_null instead of data_blob(NULL, 0)Volker Lendecke2009-06-061-1/+1
|
* add gendb_search_single_extended_dn()Andrew Tridgell2009-06-042-0/+103
| | | | | | | | This function searches for a single record using a given filter, adding the extended-dn control so that any returned DNs will have the GUID and SID fields returned. This will be used in the sam auth code to prevent us doing a member= search for the groups, which invokes an unindexed search.
* Build libsamba-util as a shared library.Jelmer Vernooij2009-06-021-1/+4
|
* util: Change license on tevent_unix to LGPLv3+Volker Lendecke2009-05-292-16/+24
|
* util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner2009-05-293-1/+102
| | | | Guenther
* Add extensive tests for str_list function behaviourAndrew Bartlett2009-05-151-15/+343
|
* Remove two unused variablesVolker Lendecke2009-05-141-2/+0
|
* Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett2009-05-143-0/+85
|
* Take advantage of the easier-to-use thread macrosDerrell Lipman2009-05-131-8/+0
| | | | | | | - Now that we initialize for the non-thread-safe case in the macro, there's no need to do it here too. Derrell
* Make the thread functions a bit easier to useDerrell Lipman2009-05-133-8/+12
| | | | | | | | | | | - Create separate macros for lock and unlock so that it's easier to identify which request is being made. - Initialize *ponce in the SMB_THREAD_ONCE macro in the non-thread-safe case, rather than requiring each init function to determine if it's in the non-thread-safe case and manually initialize. Derrell