summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* AUTOFS: IPA providerJakub Hrozek2012-02-071-0/+2
|
* IPA: Add support for services lookups (non-enum)Stephen Gallagher2012-01-311-0/+1
|
* SYSDB: extend sysdb_store_service() to accept additional attributesStephen Gallagher2012-01-311-4/+4
|
* SYSDB: Add indexes for servicePort and serviceProtocolStephen Gallagher2012-01-271-0/+14
|
* SYSDB: Add sysdb routines for manipulating service entriesStephen Gallagher2012-01-271-0/+358
|
* Add a random + identity test for murmurhash3Simo Sorce2012-01-091-0/+29
| | | | | | | | This test always generate a random string so each time the test is run we will test the hash function with a new value. It also hashes the same string twice and compares the result so that we have a chance of catching if uninitialized variables are getting mixed into the value calculation and end up generating different results for the same input.
* util: add murmurhash3 hash functionSimo Sorce2012-01-091-0/+24
|
* tests: fix test group of utf8 testsSimo Sorce2012-01-041-5/+5
|
* Honor case sensitive flag when creating the ccname templateJakub Hrozek2011-12-211-7/+39
|
* Securely set umask when using mkstempStephen Gallagher2011-12-192-0/+12
| | | | Coverity 12394, 12395, 12396, 12397 and 12398
* Use the case sensitivity flag in the simple access providerJakub Hrozek2011-12-161-0/+30
|
* sss_utf8_tolower utility function+unit testsJakub Hrozek2011-12-161-0/+96
|
* Fixes debug-tests.c coverity issues: NEGATIVE_RETURNS, FORWARD_NULLPavel Březina2011-11-021-49/+140
| | | | https://fedorahosted.org/sssd/ticket/1046
* SysDB commands that save lastUpdate allows this value to be passed inPavel Březina2011-10-131-11/+11
| | | | https://fedorahosted.org/sssd/ticket/836
* Add option to follow symlinks to check_file()Jakub Hrozek2011-10-131-1/+28
|
* Multiline macro cleanupJakub Hrozek2011-09-282-2/+2
| | | | | | | | | | This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again.
* DEBUG timestamps offer higher precision - unit tests updatedPavel Březina2011-09-081-14/+215
| | | | https://fedorahosted.org/sssd/ticket/956
* New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0Pavel Březina2011-08-2512-19/+50
| | | | | | | | | | | | | | | | | | | | | Removed: SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED) Added new macro: CONVERT_AND_SET_DEBUG_LEVEL(new_value) Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0 so DEBUG macro could be reduced by one condition. Anyway, it has a minor effect, every time you want to load debug_level from command line parameters, you have to use following pattern: /* Set debug level to invalid value so we can deside if -d 0 was used. */ debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { ... } CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
* New DEBUG facility - unit testsPavel Březina2011-08-251-0/+742
| | | | https://fedorahosted.org/sssd/ticket/925
* New DEBUG facility - conversionPavel Březina2011-08-2512-6/+16
| | | | | | | | | | https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
* sysdb refactoring: memory context deletedJan Zeleny2011-08-152-22/+21
| | | | | | This patch deletes memory context parameter in those places in sysdb where it is not necessary. The code using modified functions has been updated. Tests updated as well.
* sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny2011-08-151-108/+56
| | | | | The patch also updates code using modified functions. Tests have also been adjusted.
* HBAC rule validation Python bindingsJakub Hrozek2011-08-011-0/+30
| | | | https://fedorahosted.org/sssd/ticket/943
* Add rule validator to libipa_hbacStephen Gallagher2011-08-011-0/+115
| | | | https://fedorahosted.org/sssd/ticket/943
* UTF8 HBAC testJakub Hrozek2011-07-291-0/+117
|
* fo_get_server_name() getter for a server nameJakub Hrozek2011-07-211-1/+1
| | | | | Allows to be more concise in tests and more defensive in resolve callbacks
* Rename fo_get_server_name to fo_get_server_str_nameJakub Hrozek2011-07-211-1/+1
|
* Fix python HBAC bindings for python <= 2.4Jakub Hrozek2011-07-131-3/+4
| | | | | | | | | | | | | | | Several parts of the HBAC python bindings did not work with old Python versions, such as the one shipped in RHEL5. The changes include: * a compatibility wrapper around python set object * PyModule_AddIntMacro compat macro * Py_ssize_t compat definition * Do not use PyUnicode_FromFormat * several function prototypes and structures used to have "char arguments where they have "const char *" in recent versions. This caused compilation warnings this patch mitigates by using the discard_const hack on python 2.4
* Fixes for python HBAC bindingsJakub Hrozek2011-07-131-0/+23
| | | | | | | | | These changes were proposed during a review: * Change the signature of str_concat_sequence() to const char * * use a getsetter for HbacRule.enabled to allow string true/false and integer 1/0 in addition to bool * fix a minor memory leak (HbacRequest.rule_name) * remove overzealous discard consts
* Provide python bindings for the HBAC evaluator libraryJakub Hrozek2011-07-081-0/+468
|
* Add HBAC evaluator and testsStephen Gallagher2011-07-081-0/+618
|
* Test NULL server hostname in fail over testsJakub Hrozek2011-06-161-8/+16
|
* Switch resolver to using resolv_hostent and honor TTLJakub Hrozek2011-06-152-43/+85
|
* Unit test for parge_argsJakub Hrozek2011-06-151-0/+58
|
* Non-posix group processing - sysdb changesJan Zeleny2011-06-021-4/+6
|
* Require openssl-devel is libcrypto backend is selectedJakub Hrozek2011-04-271-5/+14
|
* Case insensitive originalDN testJakub Hrozek2011-04-251-0/+47
|
* Add originalDN to fake groupsJakub Hrozek2011-03-231-2/+2
|
* Use realm for basedn instead of IPA domainJakub Hrozek2011-02-281-0/+1
| | | | https://fedorahosted.org/sssd/ticket/807
* Clear up -Wunused-but-set-variable warningsStephen Gallagher2011-02-111-1/+1
|
* Delete attributes that are removed from LDAPStephen Gallagher2011-01-211-1/+1
| | | | | | | | Sometimes, a value in LDAP will cease to exist (the classic example being shadowExpire). We need to make sure we purge that value from SSSD's sysdb as well. https://fedorahosted.org/sssd/ticket/750
* Validate user supplied size of data itemsSumit Bose2011-01-111-0/+14
| | | | | | Specially crafted packages might lead to an integer overflow and the parsing of the input buffer might not continue as expected. This issue was identified by Sebastian Krahmer <krahmer@suse.de>.
* Add sysdb_has_enumerated and sysdb_set_enumerated helper functionsStephen Gallagher2010-12-201-0/+40
| | | | Includes a unit test
* Fix unchecked return value in test_sysdb_attrs_to_listStephen Gallagher2010-12-171-3/+6
| | | | https://fedorahosted.org/sssd/ticket/714
* Fix uninitialized value error in main() in stress-tests.cSumit Bose2010-12-151-0/+1
| | | | https://fedorahosted.org/sssd/ticket/732
* Fix uninitialized value error in setup_test in fail_over-tests.cSumit Bose2010-12-141-0/+1
| | | | https://fedorahosted.org/sssd/ticket/728
* Add group support to the simple access providerStephen Gallagher2010-12-131-2/+2
| | | | | | | | | | | | | This patch adds simple_allow_groups and simple_deny_groups options to the simple access provider. It makes it possible to grant or deny access based on a user's group memberships within the domain. This patch makes one minor change to previous functionality: now all deny rules will supersede allow rules. Previously, if both simple_allow_users and simple_deny_users were set with the same value, the allow would win. https://fedorahosted.org/sssd/ticket/440
* Bye, bye, ipa_timerulesSumit Bose2010-12-081-582/+0
| | | | | | It was decided that IPA HBAC will move to a different format to specify time ranges in access control rules. The evaluation based on the old format is not needed anymore.
* Fix const cast warnings in testsStephen Gallagher2010-11-152-2/+2
|
* Fix const cast warning for sysdb_update_membersStephen Gallagher2010-11-151-4/+4
|