summaryrefslogtreecommitdiffstats
path: root/server/tests
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-1816-7777/+0
| | | | Also update BUILD.txt
* Add test for number of options in IPA and LDAP backendsJakub Hrozek2010-02-161-0/+59
|
* Fix handling of the global context in the leak detectorSumit Bose2010-02-102-1/+3
|
* Send a message to the user if the login is delayedSumit Bose2010-02-102-22/+41
|
* Make krb5 and open checks work if forking is disabledSumit Bose2010-02-032-1/+6
| | | | | | | | | | | | | | | | 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.
* Make resolve and failover test work with CK_FORK=noSumit Bose2010-02-034-6/+11
| | | | | | | | | | | | | | | The leak checking code which is used by the resolve and failover tests frees talloc's autofree context which is not recommended. As a consequence the initialization of tevent failed when it was called by the second test and CF_FORK=no, because it holds some data in the autofree context. This patch introduces a global talloc context which should be uses by the test as the root of their memory hierarchy instead of NULL. This global context is used in the leak checking routines. Not all types of memory leaks can be detected by the new version , it is recommended to use valgrind or similar tools additionally.
* Warn the user if authentication happens offlineSumit Bose2010-02-021-6/+97
|
* Add offline failed login counterSumit Bose2010-02-021-0/+332
|
* Check cache_credentials in sysdb_cache_auth_send()Sumit Bose2010-02-021-0/+9
|
* Handle IPv6 addresses with the async resolverStephen Gallagher2010-01-221-5/+5
|
* Add sysdb request to authenticate against a cached passwordSumit Bose2010-01-201-0/+135
| | | | | | | | | The code for authentication against a cached password is moved from the pam responder to a generic sysdb tevent request. The new code can be used by other components of sssd to verify passwords on their own. Tests for the sysdb_cache_password and sysdb_cache_auth request are added and some unneeded or unused code and variables are removed.
* Explicitly set async DNS timeoutStephen Gallagher2010-01-142-2/+2
| | | | We will allow 5s per DNS server, no retries.
* Cleanup db files after test runSumit Bose2009-12-151-2/+19
|
* Change ares usage to be c-ares 1.7.0 compatibleJakub Hrozek2009-12-091-14/+12
| | | | | | * Rename structure accordingly to ares upstream * Use new ares parsing functions in the wrappers * fix tests for ares 1.7
* Add checks to test the memberuid handlingSumit Bose2009-12-071-13/+495
|
* Fix nested group membershipsSimo Sorce2009-12-071-1/+1
| | | | | | | | | Search the local db to find the local DN using the original DN as search key. This way we do not have to rely on weak and faulty heuristicts based on DN names. Add a few helper functions in the process and change the way we pass members to sysdb_store_group_send(), instead of passing users and groups list, just add member DNs to the other sysdb attrs.
* Add sysdb_search_custom requestSumit Bose2009-12-071-62/+110
|
* Only display errors in unit testsStephen Gallagher2009-11-2010-11/+21
| | | | | If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
* Improve handling of ccache filesSumit Bose2009-11-201-0/+124
| | | | | | | - save current ccache file to sysdb - use the saved ccache file if the user has running processes - create an empty ccache if offline - return enviroment variables if offline
* Make the sysdb user and group names case-sensitiveStephen Gallagher2009-11-181-0/+39
|
* Refactor delete functions and add a fewSimo Sorce2009-11-101-19/+22
| | | | | | Refactor user/group delete functions so that they can be used without a transaction (they autostart an operation). Add user and group search function where a subfilter can be specified.
* IPA time rules parsing routinesJakub Hrozek2009-11-091-0/+579
|
* Check return, zero free hostent, adhere to styleSimo Sorce2009-11-091-4/+6
|
* Add fail over utility functionsMartin Nagy2009-11-061-0/+303
| | | | | | | | These functions should be used by providers to centrally manage lists of servers. Servers are grouped into services and each service has it's own list of servers. If, however, you will try to add a same server into two different services, they will share a common structure. This means that a host will only be resolved once.
* Add simple reference counting wrappers for tallocMartin Nagy2009-11-061-0/+231
|
* Add missing include file to files-tests.cMartin Nagy2009-11-061-0/+1
|
* Always set last update and expire timeSimo Sorce2009-11-061-2/+2
| | | | | modifications to existing users/groups were setting metadata, but creation was not. Fixes #259
* Add sysdb_attrs_replace_name to sysdb API.Sumit Bose2009-11-041-0/+45
|
* add sysdb_delete_recursive request to sysdb APISumit Bose2009-11-021-4/+107
|
* remove old sysdb file before starting testsSumit Bose2009-10-301-0/+8
|
* Fix compiler warnings in krb5_utils-tests.Sumit Bose2009-10-301-21/+21
|
* Allow sysdb_search_entry request to return more than one resultSumit Bose2009-10-291-0/+112
|
* added a ASQ search API for sysdbSumit Bose2009-10-291-0/+126
|
* Move responsibility for entry expiration timeoutSimo Sorce2009-10-271-2/+2
| | | | | The providers are now responsible for determining how long a cached entry is considered valid. The default is the same as before (600s)
* User home directories managementJakub Hrozek2009-10-222-6/+381
| | | | | | Create and populate user directories on useradd, delete them on userdel Fixes: #212
* update krb5 option handling to new option schemeSumit Bose2009-10-221-2/+16
|
* add store/search/delete interface for custom sysdb objectsSumit Bose2009-10-221-0/+367
|
* Various improvements to the resolv test suiteMartin Nagy2009-10-222-59/+222
| | | | | | | | | | | | | * 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 a new set of helpful common functions for testsMartin Nagy2009-10-222-0/+123
| | | | | | | | | | | | | | | | | | | | | | The leak_check_setup() and leak_check_teardown() functions can be added to a test case with tcase_add_checked_fixture(). They will make sure that all tests are checked for memory leaks. However, since talloc is hierarchical and automatically frees the children, this will not catch all cases, but might still be helpful. The check_leaks(ctx, bytes) function takes a talloc context as an argument and the number of bytes it should be using up (children included). The total byte size used up by the context is determined by the talloc_total_size() function. If the size doesn't agree, check_leaks() will print out a talloc report on the context and makes the current test fail. The check_leaks_push() and check_leaks_pop() both take a talloc context as an argument. Every time push is called, the context is "pushed" onto an internal stack and it's current size is noted. When the context is later "poped", the pop function will make sure that the size is the same as when it was pushed. It will also check that it's not called out-of-order or if the stack isn't empty.
* more documentation and test for sssd.confSumit Bose2009-10-051-0/+29
| | | | | - add a hint to the man page about permissions on sssd.conf - add a test if a symbolic link can be opened
* add utility call check_and_open_readonlySumit Bose2009-10-051-0/+184
| | | | | Use this new utility call to ensure that the config file is safe to read from.
* update sysdb tests to new config file versionSumit Bose2009-10-011-12/+3
|
* Provide python bindings for sysdbJakub Hrozek2009-09-211-0/+391
| | | | | | | | Implement a set of python bindings for the sysdb with feature set similar to what is available in the tools. The primary consumers would be applications like system-config-users. Resolves: Ticket #102
* 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.
* Complete the removal of "legacy" option.Simo Sorce2009-09-111-3/+3
| | | | | | | | | The code was still dependent on it for the ldap driver. Changed the driver code to depend on the schema type. Fix defaults for user and groups trees. ATM if you use the rfc2307bis schema you have to put users and groups in 2 separate trees (what people does by default anyway. If this limitation will turn to be too hard, we will change this later.
* Add strtoint32 and strtouint32 testsStephen Gallagher2009-09-111-0/+454
|
* Remove unused event context argument from confdb_initStephen Gallagher2009-09-101-1/+1
| | | | | | Because the confdb always operates synchronously, it maintains its own private event context internally. The event context argument passed to it is never used, so we'll remove it to avoid confusion.
* Split database in multiple filesSimo Sorce2009-09-081-80/+47
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* Remove redunant function and always pass attrs.Simo Sorce2009-08-271-2/+3
|
* Fix sysdb testsJakub Hrozek2009-08-211-17/+62
|