summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* KRB5: Auto-detect DIR cache support in configureStephen Gallagher2012-06-152-0/+7
| | | | | | We can't support the DIR cache features in systems with kerberos libraries older than 1.10. Make sure we don't build it on those systems.
* Use Kerberos context in KRB5_DEBUGJakub Hrozek2012-06-141-10/+4
| | | | | Passing Kerberos context to sss_krb5_get_error_message will allow us to get better error messages.
* Add support for storing credential caches in the DIR: back endJakub Hrozek2012-06-142-17/+95
| | | | https://fedorahosted.org/sssd/ticket/974
* Add a credential cache back end structureJakub Hrozek2012-06-142-50/+32
| | | | | | To be able to add support for new credential cache types easily, this patch creates a new structure sss_krb5_cc_be that defines common operations with a credential cache, such as create, check if used or remove.
* Add a krb5_child test toolJakub Hrozek2012-06-141-0/+551
| | | | https://fedorahosted.org/sssd/ticket/1127
* sss_idmap: fix typo which prevents sub auth larger then 2^31Sumit Bose2012-06-081-0/+37
| | | | A test to cover this is added as well.
* sss_idmap: add support for samba struct dom_sidSumit Bose2012-06-081-2/+100
| | | | | | | | The samba ndr libraries use struct dom_sid to handle SIDs. Since there is no public samba library which offers conversion from other representations, e.g. as string, this is added to libsss_idmap. To avoid compile-time or run-time dependency to any samba library or header file the definition of the struct is copied here.
* Fixed setting of debug level in test suiteJan Zeleny2012-06-042-4/+2
|
* Ghost members - various small changesJan Zeleny2012-05-311-1/+1
|
* Rename struct dom_sid to struct sss_dom_sidSumit Bose2012-05-141-8/+8
| | | | | To avoid conflicts with struct dom_sid used by samba the sss_ prefix is added to the struct used by libsss_idmap.
* SYSDB: Handle user and group renames betterJakub Hrozek2012-05-111-0/+143
| | | | | | | | | | | | Fixes a regression in the local domain tools where sss_groupadd no longer detected a GID duplicate. The check for EEXIST is moved one level up into more high level function. The patch also adds the same rename support for users. I found it odd that we allowed a rename of groups but not users. There is a catch when storing a user -- his cached password would be gone. I think that renaming a user is such a rare operation that it's not severe, plus there is a warning in the logs.
* Fix endian issue in SID conversionSumit Bose2012-05-041-1/+3
| | | | | | Since the byte-order is only important when dealing with the binary SID the sub-auth values are stored in host order and are only converted while reading or writing the binary SID.
* Allow different SID representations in libidmapSumit Bose2012-05-011-0/+206
| | | | | | Besides as strings it is now possible to use binary SIDs or a struct containing all SID information. Functions to convert between these formats are added as well.
* UTIL: Add HMAC-SHA-1 functionJan Cholasta2012-04-241-0/+36
|
* Sysdb routines for subdomainsJan Zeleny2012-04-241-0/+232
|
* Test RFC2307bis and RFC2307 option mapsJakub Hrozek2012-04-201-0/+28
| | | | | | | https://fedorahosted.org/sssd/ticket/1281 Only user, group and autofs maps are different. Services and netgroups are using the same map.
* Move atomic io function to a separate moduleJakub Hrozek2012-04-201-9/+9
| | | | | | We'll be using it on various places of the SSSD. The function is in its own file to allow using just the one piece without having to drag in the whole util.c module.
* sss_atomic_io: Do not fail reads with EPIPE if there is not enough data to readJakub Hrozek2012-04-201-0/+206
| | | | Also adds a unit test for sss_atomic_io()
* Return correct resolv_status on resolver timeoutJakub Hrozek2012-03-291-11/+72
| | | | https://fedorahosted.org/sssd/ticket/1274
* Remove old compatibility testsStephen Gallagher2012-03-281-11/+1
| | | | | | | These are now replaced by the more accurate tests. This patch also drops the runtime option-count check, since we are always performing the more complete check at build-time.
* Add better tests for sdap_attr compabilityStephen Gallagher2012-03-283-0/+69
|
* Add better dp_option testsStephen Gallagher2012-03-283-0/+49
|
* Add idmap librarySumit Bose2012-03-261-0/+231
|
* Keep sysdb context in domain info structSumit Bose2012-02-292-18/+6
|
* Delete missing attributes from netgroups to be storedJan Zeleny2012-02-241-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1136
* 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
|