summaryrefslogtreecommitdiff
path: root/src/tests
AgeCommit message (Collapse)AuthorFilesLines
2010-10-13Use POPT_TABLEEND to close option tableSumit Bose7-8/+8
2010-09-28Suppress some 'unchecked return value' warningsSumit Bose1-6/+13
2010-09-28Suppress some 'may be used uninitialized' warningsSumit Bose1-1/+1
Additionally the handling of errno and the errno_t return value of functions is fixed in krb5_common.c.
2010-09-22Initialize debug_level to zero in crypto testsStephen Gallagher1-1/+1
2010-09-22Fix sysdb_group_dn_nameJakub Hrozek1-0/+35
2010-09-15Add parameter to skip cleanup in sysdb testJakub Hrozek1-1/+4
This might be useful for examining the test database manually with LDB tools
2010-09-08Password obfuscation utility functionsJakub Hrozek1-0/+139
Adds two utility functions to obfuscate a password and inverse to extract the cleartext password back. So far, only NSS-based implementation is provided.
2010-08-03Add sysdb_update_members functionStephen Gallagher1-0/+56
This function will take a user, a list of groups that this user should be added to and a list of groups the user should be removed from and will recursively call sysdb_[add|remove]_group_member Includes a unit test
2010-08-03Add diff_string_lists utility functionStephen Gallagher1-0/+227
Includes a unit test
2010-08-03Add sysdb_attrs_to_list() utility functionStephen Gallagher1-0/+31
2010-06-16Standardize on correct spelling of "principal" for krb5Stephen Gallagher1-4/+4
https://fedorahosted.org/sssd/ticket/542
2010-06-14Print correct return codeJakub Hrozek1-1/+1
Fixes: #535
2010-05-26Add support for delayed kinit if offlineSumit Bose1-2/+2
If the configuration option krb5_store_password_if_offline is set to true and the backend is offline the plain text user password is stored and used to request a TGT if the backend becomes online. If available the Linux kernel key retention service is used.
2010-04-30Sort SRV replies according to RFC 2782Jakub Hrozek1-0/+88
RFC 2782 defines a way to sort replies to a SRV query. In short, the algorithm sorts all replies by priority and then does a weight-based selection for every priority level. For details, please see the sections "Usage rules" for overview of the algorithm and section "The 'Weight' field" for description on the weight selection.
2010-04-14Fix warning in sysdb-tests.cStephen Gallagher1-8/+0
When we converted to the synchronous sysdb interface, the synchronous-simulating function test_loop() became unnecessary, but we forgot to remove it.
2010-04-12sysydb: Finally stop using a common event contextSimo Sorce2-2/+2
This commit completes the migration to a synchronous sysdb
2010-04-12sysdb: remove remaining traces of sysdb_handleSimo Sorce1-1/+0
2010-04-12sysdb: convert sysdb_enumgrentSimo Sorce1-32/+7
2010-04-12sysdb: convert sysdb_enumpwentSimo Sorce1-32/+5
2010-04-12sysdb: convert sysdb_get_user_attrSimo Sorce1-46/+16
2010-04-12sysdb: convert sysdb_getgrgidSimo Sorce1-48/+17
2010-04-12sysdb: convert sysdb_getgrnamSimo Sorce1-52/+27
2010-04-12sysdb: convert sysdb_getpwuidSimo Sorce1-48/+16
2010-04-12sysdb: convert sysdb_getpwnamSimo Sorce1-52/+25
2010-04-12tests: remove use of asynchronus transactionsSimo Sorce1-502/+86
now all calls are synchronous
2010-04-12sysdb: convert sysdb_cache_authSimo Sorce1-39/+18
2010-04-12sysdb: delete sysdb_delete_groupSimo Sorce1-40/+7
2010-04-12sysdb: convert sysdb_delete_userSimo Sorce1-41/+4
2010-04-12sysdb: convert sysdb_asq_searchSimo Sorce1-36/+23
2010-04-12sysdb: convert sysdb_store_customSimo Sorce1-18/+3
2010-04-12sysdb: convert sysdb_search_customSimo Sorce1-102/+67
2010-04-12sysdb: convert sysdb_cache_passwordSimo Sorce1-11/+3
2010-04-12sysdb: convert sysdb_mod/add/remove_group_memberSimo Sorce1-36/+6
2010-04-12sysdb: convert sysdb_store/add(_basic)_groupSimo Sorce1-56/+9
2010-04-12sysdb: convert sysdb_store/add(_basic)_userSimo Sorce1-43/+9
2010-04-12sysdb: convert sysdb_set_entry/user/group_attrSimo Sorce1-18/+3
2010-04-12sysdb: convert sysdb_search_group_by_name/gidSimo Sorce1-120/+63
2010-04-12sysdb: convert sysdb_search_entry and sysdb_delete_recursiveSimo Sorce1-37/+6
2010-04-12sysdb: convert sysdb_delete_customSimo Sorce1-18/+2
2010-04-12sysdb: convert sysdb_delete_entryStephen Gallagher1-36/+2
2010-04-06Protect against check-and-open race conditionsStephen Gallagher1-2/+2
There is a small window between running lstat() on a filename and opening it where it's possible for the file to have been modified. We were protecting against this by saving the stat data from the original file and verifying that it was the same file (by device and inode) when we opened it again, but this is an imperfect solution, as it is still possible for an attacker to modify the permissions during this window. It is much better to simply open the file and test on the active file descriptor. Resolves https://fedorahosted.org/sssd/ticket/425 incidentally, as without the initial lstat, we are implicitly accepting symlinks and only verifying the target file.
2010-03-25Add a test for domain_to_basedn()Sumit Bose1-0/+47
2010-03-25Regression test against RHBZ #576856Jakub Hrozek1-0/+2
2010-03-12Fix build when check-devel is not installedStephen Gallagher2-82/+109
tests/common.c is now required by all tests (check-based and not), so we need to properly ifdef it
2010-03-11Add expandable sequences to krb5_ccachedirSumit Bose1-92/+470
As with krb5_ccname_template sequences like %u can be used in the krb5_ccachedir parameter which are expanded at runtime. If the directory does not exist, it will be created. Depending on the used sequences it is created as a public or private directory.
2010-03-08Add simple access providerSumit Bose1-0/+173
2010-03-08Do not run negative resolv test with no networkJakub Hrozek1-3/+73
One of our resolv tests tries to resolve a nonexistent hostname. Do not run this test unless we are explicitly told that a network connection is available (-n). Also do not automatically resolving localhost.
2010-03-04Add forgotten \n in DEBUG statementsMartin Nagy2-3/+3
Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
2010-03-04Add --with-test-dir option to configureStephen Gallagher15-1/+58
All 'make check' tests will chdir() into this directory before running the suite. This provides the option of having temporary files generated in a tmpfs or ramdisk
2010-02-23Check and set permissions on SBUS socketsSumit Bose2-9/+10