summaryrefslogtreecommitdiff
path: root/server/tests/krb5_utils-tests.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-03Make krb5 and open checks work if forking is disabledSumit Bose1-0/+1
When CK_FORK is set to 'no' the fixtures are executed for every new test inside of the same process. Global variables must be set to the expected values by the fixtures. check_and_open-tests.c: the filename template for mkstemp() was a globally defined character string. After the first call to mkstemp() the trailing XXXXXX are substituted by random values, a second call to mkstemp() with this character string fails. This patch initialize the filename template before mkstemp() is called with the help of strdup() and the memory is freed in the teardown fixture. krb5_utils-tests.c: this patch sets the just freed global talloc context to NULL to make a consistency check in the setup fixture pass.
2009-11-20Only display errors in unit testsStephen Gallagher1-2/+3
If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
2009-10-30Fix compiler warnings in krb5_utils-tests.Sumit Bose1-21/+21
2009-10-22update krb5 option handling to new option schemeSumit Bose1-2/+16
2009-10-22Various improvements to the resolv test suiteMartin Nagy1-1/+0
* The resolv test case can now test for TXT and SRV resolving by specifying -t host and -s host respectively. The -n flag must still be passed in to enable network tests. * Added test for the little complicated resolv_copy_hostent() function. * Leak checking using the new tests common functions. * Fix indentation for test_internet, since the whole function was modified to be able to handle SRV and TXT replies. * Initialize the debug variable in main(). Also removed one unused variable in krb5_utils-tests.c
2009-09-14add krb5ccache_dir and krb5ccname_template optionSumit Bose1-0/+292
The configuration options krb5ccache_dir and krb5ccname_template are added to the Kerberos provider to create the user's credential caches the same way as pam_krb5 does. Due to the design of the sssd and the supported ccache types of MIT Kerberos only files are allowed.