summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* WPHEADmasterDmitri Pal2010-08-3014-165/+691
|
* [INI] Introducing configuration file objectDmitri Pal2010-08-1010-100/+1325
| | | | | | | | The patch contains two major pieces of work: * The beginning of the new INI interface significantly re-thought and reworked. * The implementation of the file object. Parsing was adjusted to use this object.
* [INI] Starting to consolidate the new interface in one placeDmitri Pal2010-08-107-225/+180
| | | | | | | | | | I realized that the new high level interface should be defined in one file instead of being scattered in many headers. I would have to eventuallu eliminate ini_configobj.h too and move everything to the new interface in ini_config.h. This patch renames couple functions to be consistent with the naming convention and removes ini_parse.h header.
* [INI/COLLECTION] Correcting library and project versionsDmitri Pal2010-08-105-8/+8
|
* [INI] New INI parserDmitri Pal2010-08-105-10/+1219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parser is added to the existing module. The old parsing functuion will be removed when we switch to the new interface. Parser logic: * There is one high level function that wraps the parser interface. It is at the bottom of the module. ini_parse_config(); * Internally it creates a perser object and then runs parser on it. * At the end parser object is destroyed. * This object stores the state of the parser. * The parser has an action queue * There are several actions that parser can perform - read line - inspect read line - record an error - process last comment in the file (POST) * Each action handler determines what to do next depending upon what has happened. * Read handler reads lines and enqueues inspection action in case of success or error action in case of failure. * Inspection action parses last read line and treats it either is a: * Comment * Section * New key + value * Continuation of the value In case of error the error action is enqueued. * Error can be fatal or non fatal. It depend on the error_level flag passed in. If the error is non fatal the read action is enqueued otherwise parser stops. * The POST action is a special action to handle comment at the bottom of the file. The comment is stored with the value it preceeds so in case there is a comment at the bottom of the file a special value needs to be created to hold just the comment.
* [INI] The beginning of the new INI interfaceDmitri Pal2010-08-104-0/+292
| | | | | | | | * ini_config_priv.h - private header * ini_configobj.h - future public header for the new interface * ini_configobj.c - just constructor/decructor for now * ini_serialize.c - code to serialize the configuration into a buffer so it can be written somewhere.
* [INI] Fixes to the value objectDmitri Pal2010-08-104-117/+98
| | | | | | | | | | | | * Removed the annoyong type casting in the serialization since there is a new function in the simplebuffer to addstring. * Changed the serialization code to not create simple buffer object but rather add to the passed in one. * Added serialization of the value that stores section * Started cleaning constants but then stopped since this effor should be done a bit later when the new high level ini config interface is better baked.
* [INI] Add error codes for the new parserDmitri Pal2010-08-102-5/+12
|
* [INI] Extend the comment interfaceDmitri Pal2010-08-102-10/+38
| | | | | Take advantage of the already known string length instead of counting bytes once more.
* [INI] More config files for testingDmitri Pal2010-08-103-7/+158
|
* [BASICOBJ] Added a convenience functionDmitri Pal2010-08-103-0/+55
| | | | | | | Added a function to add a string to the buffer. Allows adding const strings to the buffer. This solution eliminates all the hassle of type casting that was needed before.
* [COLLECTION] Allow destroying collection with a callbackDmitri Pal2010-08-109-35/+151
| | | | | | | | Addresses ticket #572 Bumps the library and interface version. Updates the docs. [COLLECTION] Changed callback signature
* [INI] Introducing Value objectDmitri Pal2010-08-104-6/+1585
| | | | | | | | | | | | | Value object is an object that combines a potentially multiline value comment and some statistical information regarding a configuration value. Patch includes: Source Header Unit test Makefile changes
* [INI] Refining comment objectDmitri Pal2010-08-103-22/+139
| | | | Comment object should store lengths of the lines.
* [REFARRAY] Fixing the cleaup codeDmitri Pal2010-08-101-4/+6
| | | | | | It turned out that the array cleanup was assuming that the data always requires cleanup. In case of array of numbers it is a false assumtion.
* [BO] Adding basic objects to common buildDmitri Pal2010-08-102-3/+5
|
* [BO] Introducing basic objectsDmitri Pal2010-08-108-0/+2056
| | | | The first basic object is extensible buffer.
* [TRACE] New wrapper macros for function entry and exitDmitri Pal2010-08-101-0/+7
|
* Fix chpass operations with LDAP providerStephen Gallagher2010-08-041-0/+1
| | | | | | | The initial verification of the old password was returning an error because we were not explicitly setting dp_err to DP_ERR_SUCCESS and it was initialized earlier in the function to DP_ERR_FATAL.
* Releasing SSSD 1.3.0Stephen Gallagher2010-08-0315-274/+298
|
* Clean up initgroups processing for RFC2307Stephen Gallagher2010-08-031-11/+89
| | | | | | | | Instead of recursively updating all users of each group the user being queried belongs to, just add or remove membership for the requested user. Fixes https://fedorahosted.org/sssd/ticket/478
* Add sysdb_update_members functionStephen Gallagher2010-08-033-0/+117
| | | | | | | | This function will take a user, a list of groups that this user should be added to and a list of groups the user should be removed from and will recursively call sysdb_[add|remove]_group_member Includes a unit test
* Add dup_string_list() utility functionStephen Gallagher2010-08-032-0/+37
|
* Add sysdb_group_dn_name utility functionStephen Gallagher2010-08-032-0/+24
|
* Add diff_string_lists utility functionStephen Gallagher2010-08-034-1/+449
| | | | Includes a unit test
* Add sysdb_attrs_to_list() utility functionStephen Gallagher2010-08-033-0/+112
|
* Return proper error value when SRV lookup failsJakub Hrozek2010-08-031-1/+1
| | | | Fixes: #587
* Fix check_time_rule() return value on failureJakub Hrozek2010-08-031-1/+1
| | | | | | | The value returned in the 'done:' label was always EOK which is wrong as any parsing errors are not returned to the caller. Fixes: #583
* be_pam_handler(): Fix potential NULL dereferenceStephen Gallagher2010-08-031-1/+2
|
* Fix two problems with --as-neededJakub Hrozek2010-08-032-3/+4
|
* Validate keytab at startupJakub Hrozek2010-08-034-48/+181
| | | | | | | | In addition to validating the keytab everytime a TGT is requested, we also validate the keytab on back end startup to give early warning that the keytab is not usable. Fixes: #556
* Fix getting default realm in the ldap childJakub Hrozek2010-08-031-1/+10
|
* Require -ltalloc for tevent configure checkStephen Gallagher2010-08-031-2/+8
|
* Allow sssd clients to reconnectSumit Bose2010-07-231-4/+3
| | | | | | | Currently the PAM and NSS client just return an error if there are problems on an open socket. This will lead to problems in long running programs like gdm if sssd is restarted, e.g. during an update. With this patch the socket is closed and reopened.
* Fix IPA access backend handling of obsolete and missing HBAC entries:eindenbom2010-07-231-9/+68
| | | | | - Ticket #567: Fix removal of obsolete HBAC host, rules and service records from sysdb. - Ticket #565: When no HBAC host record is found return PAM_PERM_DENIED instead of PAM_SYSTEM_ERROR.
* Do not treat missing HBAC rules as an errorSumit Bose2010-07-231-0/+5
|
* Updating es translationHéctor Daniel Cabrera2010-07-201-13/+13
|
* Updating uk translationYuri Chornoivan2010-07-201-21/+23
|
* Updating es translationHéctor Daniel Cabrera2010-07-201-150/+131
|
* Updating pl translationPiotr Drąg2010-07-201-29/+20
|
* Log TLS errors to syslogStephen Gallagher2010-07-092-1/+23
| | | | | Also adds support for detecting LDAPS errors by adding a check for SDAP_DIAGNOSTIC_MESSAGE after ldap_search_ext()
* Add syslog messages for LDAP GSSAPI bindStephen Gallagher2010-07-091-2/+58
| | | | | We will now emit a level 0 debug message on keytab errors, and also write to the syslog (LOG_DAEMON)
* Add log notifications for startup and shutdown.Stephen Gallagher2010-07-091-1/+4
|
* Add sss_log() functionStephen Gallagher2010-07-093-1/+83
| | | | | Right now, this log function writes to the syslog. In the future, it could be modified to work with ELAPI or another logging API.
* Release SSSD 1.2.91 (1.3.0rc1)Stephen Gallagher2010-07-0915-2084/+2909
|
* Use netlink to detect going onlineJakub Hrozek2010-07-0910-1/+536
| | | | | | | | Integrates libnl to detect adding routes. When a route is added, the offline status of all back ends is reset. This patch adds no heuristics to detect whether back end went offline. Fixes: #456
* Eliminate delayed sdap_handle destruction after fail-over retry.eindenbom2010-07-091-9/+6
|
* Add try_inotify optionStephen Gallagher2010-07-093-1/+47
| | | | | | | | There are some special cases where inotify cannot be used, even if the host OS claims that it is supported. In these cases, it should be possible to explicitly disable the use of inotify. https://fedorahosted.org/sssd/ticket/484
* Remove remainder of now unused global LDAP connection handle.eindenbom2010-07-094-188/+1
|
* Use new LDAP connection framework in IPA dynamic DNS forwarder.eindenbom2010-07-093-45/+126
|