summaryrefslogtreecommitdiffstats
path: root/server/tests/krb5_utils-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-181-307/+0
| | | | Also update BUILD.txt
* Make krb5 and open checks work if forking is disabledSumit Bose2010-02-031-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.
* Only display errors in unit testsStephen Gallagher2009-11-201-2/+3
| | | | | If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
* Fix compiler warnings in krb5_utils-tests.Sumit Bose2009-10-301-21/+21
|
* update krb5 option handling to new option schemeSumit Bose2009-10-221-2/+16
|
* Various improvements to the resolv test suiteMartin Nagy2009-10-221-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
* add krb5ccache_dir and krb5ccname_template optionSumit Bose2009-09-141-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.