summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* COLLECTION & INI CleanupDmitri Pal2009-07-205-86/+113
| | | | | | | | | | | | | | | | I started to cleanup the unit tests from the type cust around NULL and found several problems that I had to address: 1) The choice of the "." as a search separator turned out to be a poor choice. The problem was that the file name has "." and INI was relaying on files to be used as property names. I corrected that part in the INI but after discussion with Simo we decided to switch from "." to "!" as special symbol anyways. 2) Found that the property rename was not reinitializing the hash. Corrected. Added ticket to add unit tests around it (#83).
* add infrastructure to handle new backend targetsSumit Bose2009-07-206-150/+228
|
* Fix saving new nextIDJakub Hrozek2009-07-201-1/+1
|
* COLLECTION Improving searchesDmitri Pal2009-07-162-9/+181
| | | | | | Addressing ticket #71. The searches were not taking advantage of the hashes, now they are.
* Run ini_config unit test with "make check"Stephen Gallagher2009-07-162-2/+19
| | | | | Also adds support for running ini_config_ut under a parallel build directory.
* Run libcollection unit tests with 'make check'Stephen Gallagher2009-07-161-1/+3
|
* COLLECTION Add remove item functionsDmitri Pal2009-07-164-31/+146
| | | | | | | | | | | | | The remove functions extract and remove items, they act differently from the way the delete_property function works. The new functions allow deletion with the disposition while the delete_property only deletes specified property. The delete_property function is left as is since there are some use cases when it is more efficient to use it rather than new remove_item_xxx ones.
* INI Refactoring code a bitDmitri Pal2009-07-162-42/+16
| | | | | | | The inefficient function from ini_config.c is replaced with the function provided now by the collection interface. Also the unit test is updated to run from the local directory.
* ELAPI First part of the interfaceDmitri Pal2009-07-1512-4/+1655
| | | | | | | | | | | This is just a part of the interface, a beginning. Most likely some of the functions will be altered but it is a starting point. For example in future there will be a way to override some of the parts of the default template using the application configuration file. Removed obfuscation of the data types based on discussion with Simo.
* COLLECTION Fixed: iterator_up and insert_into_currentDmitri Pal2009-07-153-17/+83
| | | | | | | | | | | During a review of the previous patch the two issues were found: a) The col_iterator_up function was not implemented properly so it got reworked. New implementation changes the way error condition is handled. Comments were updated accordingly. b) There was a mising check for validity of the argument in the col_insert_into_current function. Check was added. c) Unit test modified to reflect the change in functionality.
* COLLECTION Adding flat traversal & copyDmitri Pal2009-07-155-99/+598
| | | | | | | | | | | | The collection is hearachical. The flattening of the collection was not implemented before both for traversal and copying. This patch introduces functionality to traverse or iterate through collection as flat set and also copy collection into another flattening it and automatically resolving conflicts. Also imptoved tracability and fixed memory leak in unbind iterator code.
* add path_utils filesystem path manipulation utility functionsJohn Dennis2009-07-158-2/+840
| | | | | | | | | | | | | | | | | | remove trace macro, not needed modifications to satisfy Stephen's checkin review correct spelling of PATH_UTILS_ERROR_NOT_FULLY_NORMALIZED add checks for truncation, return error add checks for getcwd errors modify (dst >= dst_end) test to be (dst > dst_end) remove all use of tabs remove all trailing whitespace add missing truncation check after strncpy() Fix path_utils.pc Also correct a minor typo.
* Build all SSSD components with warnings enabledStephen Gallagher2009-07-138-3/+40
| | | | | | Previously, only the SSSD server components were being built with compile-time warnings enabled. This patch will ensure that all components in common and sss_client are also built the same way.
* let krb5 backend safe valid credentials for offline authenticationSumit Bose2009-07-101-0/+43
|
* fixed the default value for tls_reqcertSumit Bose2009-07-101-1/+1
|
* add a short explanation about the used debug levelsSumit Bose2009-07-101-0/+14
|
* fixed typos and a potential memory leakSumit Bose2009-07-091-2/+3
|
* Implement the ldap identity module.Simo Sorce2009-07-087-787/+1408
| | | | This uses and exapands the async helpers.
* Unify password caching ops in sysdbSimo Sorce2009-07-087-291/+178
|
* Use async helpers for ldap auth moduleSimo Sorce2009-07-081-722/+314
| | | | | | This changes the style quite a lot, but the tevent_req style is much more clear and much less error-prone than the giant loop we had previously.
* Add async helper functionsSimo Sorce2009-07-087-25/+2060
| | | | | | These functions use the tevent_req async model, where a pair of _send/_recv functions pilot requests, with additional helpers like _done functions, and where needed multiple stage helpers.
* Expose sysdb function to parse sysdb_attrsSimo Sorce2009-07-082-2/+4
|
* Add dumb way to clean up .X filesSimo Sorce2009-07-083-0/+4
|
* fix return code of krb5 child to indicate that the kdc is unavailableSumit Bose2009-07-081-1/+5
|
* fixed some typos which prevented password cachingSumit Bose2009-07-081-3/+5
|
* fixed a double talloc_free errorSumit Bose2009-07-086-12/+0
|
* COLLECTION Removing static placeholder structure.Dmitri Pal2009-07-062-5/+20
| | | | | | There was a static global structure used in iteration and in traversing the collection. It has been removed and replaced with a better solution.
* Fixing build issuesDmitri Pal2009-07-061-0/+1
| | | | The macro was missing and the build on RHEL was failing due to it.
* Check for root before initializingJakub Hrozek2009-07-069-4/+99
| | | | | Also move setting locale to separate function to be called before anything else to make sure the "Not root" message would be localized.
* Cleanup warnings in client and server codeSimo Sorce2009-07-033-6/+3
|
* Clean up warnings in common/Simo Sorce2009-07-0316-108/+110
| | | | Fix consts and function declarations
* Convert proxy internals to tevent_req styleSimo Sorce2009-07-031-865/+1438
|
* Rework transaction code to use tevent_reqSimo Sorce2009-07-0318-2762/+4893
| | | | | | This is part of a set of patches to rewrite sysdb to a hopefully better API, that will also let use use tevent_req async style calls to manipulate our cache.
* Rename sysdb_req to sysdb_handle.Simo Sorce2009-07-0318-416/+410
| | | | | | | | | This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache.
* Adding wrappers to free data in INI API.Dmitri Pal2009-07-025-65/+96
| | | | See ticket #37 in sssd track.
* Changing function names for collection API.Dmitri Pal2009-07-0214-2698/+2778
| | | | | | | Patch prepends prefix "col_" to all functions related to collection. This caused some formatiing issues so the alignement was addressed too.
* Gettextize the sss_ toolsJakub Hrozek2009-07-027-109/+176
|
* PRINT and ERROR macrosJakub Hrozek2009-07-022-1/+4
|
* New deletion unit test.Dmitri Pal2009-07-022-2/+36
| | | | | | Adds a unit test for deletion and re-adding of the elements to collection. Small syntactical fix in "stack".
* check pending_return after dbus_connection_send_with_replySumit Bose2009-07-024-9/+9
|
* let .gitignore only filter autogenerated m4 filesSumit Bose2009-07-021-1/+2
|
* added kerberos backend with tevent_req event handlingSumit Bose2009-07-0210-3/+980
|
* added kerberos locator pluginSumit Bose2009-07-027-2/+183
|
* Queue and stack APIs using collection.Dmitri Pal2009-07-028-2/+1081
| | | | | | | Patch adds two interfaces for stack and queue using collection as underlaying implementation. It also fixes a bug in the insterion code - the unsigned properties were created as long.
* FORMATTING - minor cleanup of the unit test.Dmitri Pal2009-07-021-254/+283
| | | | | | | | | | | | | This patch adds formatting changes to better follow the style guidelines in the collection unit test. No logical changes to the code. I was planning to do it for a while per Simo's comment when he accepted the core of the collection code but indicated that the unit test should be cleaned later. Later has come.
* Adding INSERT into collection functionality.Dmitri Pal2009-07-017-850/+2791
| | | | | | | | | Add was always insterting at the end of the collection. With this change one can control where the item is inserted and deal with the duplicates too. Also one now can extract items from collection using absolute and relative disposition. Using more advanced hashing function.
* Eliminate segfault on first start-upStephen Gallagher2009-06-301-6/+19
| | | | | | | | There was a typo in the confdb setup portion of the monitor_process_init that was attempting to use the wrong cdb object to initialize. This patch also adds some missing talloc_free() calls on error.
* Remove redundant libPath option from proxy providerStephen Gallagher2009-06-303-17/+7
| | | | | The libPath should be constructed from the libName. There is no benefit to specifying it separately.
* Add pam_sss_macros.h to "make dist"Stephen Gallagher2009-06-301-1/+2
| | | | | | When I added the new header, I forgot to add it to Makefile.am, so it was not included by automake when generating a tarball using make dist-gzip.
* Implement _pam_overwrite_n(n,x) for older systemsStephen Gallagher2009-06-252-0/+31
| | | | | | | | OSes based on older versions of the PAM development libraries lack the _pam_overwrite_n(n,x) macro. This patch copies the Fedora 11 pam-devel-1.0.91-6 implementation into an SSSD private header. This affects RHEL5 and SUSE10.