summaryrefslogtreecommitdiff
path: root/src/tests
AgeCommit message (Collapse)AuthorFilesLines
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
2010-02-22Restrict family lookupsJakub Hrozek2-7/+21
Adds a new option that tells resolver which address family to prefer or use exclusively. Fixes: #404
2010-02-19Remove unneeded items from struct pam_dataSumit Bose1-2/+2
2010-02-18Fix licensing issues in SSSDStephen Gallagher1-0/+24
2010-02-18Rename server/ directory to src/Stephen Gallagher16-0/+7777
Also update BUILD.txt