summaryrefslogtreecommitdiffstats
path: root/src/db
Commit message (Collapse)AuthorAgeFilesLines
* sysdb: try dealing with binary-content attributessssd-1-8Jan Engelhardt2013-02-262-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | https://fedorahosted.org/sssd/ticket/1818 I have here a LDAP user entry which has this attribute loginAllowedTimeMap:: AAAAAAAAAP///38AAP///38AAP///38AAP///38AAP///38AAAAAAAAA In the function sysdb_attrs_add_string(), called from sdap_attrs_add_ldap_attr(), strlen() is called on this blob, which is the wrong thing to do. The result of strlen is then used to populate the .v_length member of a struct ldb_val - and this will set it to zero in this case. (There is also the problem that there may not be a '\0' at all in the blob.) Subsequently, .v_length being 0 makes ldb_modify(), called from sysdb_set_entry_attr(), return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX. End result is that users do not get stored in the sysdb, and programs like `id` or `getent ...` show incomplete information. The bug was encountered with sssd-1.8.5. sssd-1.5.11 seemed to behave fine, but that may not mean that is the absolute lower boundary of introduction of the problem.
* SYSDB: Make sysdb_attrs_get_el_int() publicJakub Hrozek2012-08-212-8/+10
| | | | Also rename it to sysdb_attrs_get_el_ext()
* SYSDB: Handle user and group renames betterJakub Hrozek2012-05-111-7/+39
| | | | | | | | | | | | Fixes a regression in the local domain tools where sss_groupadd no longer detected a GID duplicate. The check for EEXIST is moved one level up into more high level function. The patch also adds the same rename support for users. I found it odd that we allowed a rename of groups but not users. There is a catch when storing a user -- his cached password would be gone. I think that renaming a user is such a rare operation that it's not severe, plus there is a warning in the logs.
* Save alias of the primary name, tooJakub Hrozek2012-03-211-3/+9
|
* SYSDB: Save only lowercased aliases in case-insensitive domainsStephen Gallagher2012-03-161-19/+28
| | | | https://fedorahosted.org/sssd/ticket/1253
* Search netgroups by alias, tooJakub Hrozek2012-03-062-3/+5
| | | | https://fedorahosted.org/sssd/ticket/1228
* SSH: Add more debugging messagesJan Cholasta2012-02-271-4/+11
|
* SSH: Save SSH host name aliasesJan Cholasta2012-02-272-11/+83
|
* Delete missing attributes from netgroups to be storedJan Zeleny2012-02-242-0/+16
| | | | https://fedorahosted.org/sssd/ticket/1136
* Redesign purging of the sudo cachePavel Březina2012-02-172-75/+315
| | | | https://fedorahosted.org/sssd/ticket/1173
* Fix uninitialized in_transactionStephen Gallagher2012-02-131-1/+1
| | | | Coverity #12521 and #12491
* Improve debug messages in sysdb_sudo_check_time()Pavel Březina2012-02-101-4/+16
|
* IPA: Add host info handlerJan Cholasta2012-02-072-0/+159
|
* LDAP: Add support for SSH user public keysJan Cholasta2012-02-071-0/+2
|
* SUDO Integration - sysdb_sudo_check_time() fixPavel Březina2012-02-061-6/+8
|
* Added some SELinux-related sysdb routinesJan Zeleny2012-02-063-1/+545
|
* Renamed some sysdb constants for their wider usageJan Zeleny2012-02-061-5/+3
|
* AUTOFS: sysdb interfaceJakub Hrozek2012-02-054-7/+520
|
* SYSDB: Remove code duplication between member_add and member_delJakub Hrozek2012-02-051-39/+14
|
* Fixes for sudo_timedJakub Hrozek2012-02-041-23/+40
| | | | https://fedorahosted.org/sssd/ticket/1116
* SUDO Integration - responder 'sudo_timed' optionPavel Březina2012-02-042-37/+132
| | | | https://fedorahosted.org/sssd/ticket/1116
* SYSDB: index sudoUserJakub Hrozek2012-01-313-1/+99
| | | | | Most of the the searches in the Sudo responder include the sudoUser attribute. Indexing it will make the responder faster.
* SYSDB: Add sysdb_attrs_get_uint16_tStephen Gallagher2012-01-312-0/+28
|
* SYSDB: extend sysdb_store_service() to accept additional attributesStephen Gallagher2012-01-314-17/+41
|
* SUDO Integration - make sysdb_get_sudo_filter() more configurablePavel Březina2012-01-272-46/+68
| | | | https://fedorahosted.org/sssd/ticket/1143
* SYSDB: add support for enumerating servicesStephen Gallagher2012-01-272-0/+55
|
* SYSDB: Add indexes for servicePort and serviceProtocolStephen Gallagher2012-01-273-2/+104
|
* SYSDB: Add sysdb routines for manipulating service entriesStephen Gallagher2012-01-272-0/+773
|
* SYSDB: Move add_string and add_ulong to sysdb_private.hStephen Gallagher2012-01-232-4/+9
|
* SYSDB: Redundant check is redundant.Stephen Gallagher2012-01-211-5/+0
| | | | Coverity 12480
* SUDO Integration - functions for manipulating with 'refreshed' attributePavel Březina2012-01-172-0/+68
| | | | https://fedorahosted.org/sssd/ticket/1110
* sysdb_get_bool() and sysdb_get_bool() functionsPavel Březina2012-01-172-51/+108
|
* SUDO Integration review issuesPavel Březina2012-01-172-21/+14
|
* SUDO Integration - sysdb interfaceJakub Hrozek2011-12-162-0/+402
|
* Export the function to convert ldb_result to sysdb_attrsJakub Hrozek2011-12-162-0/+33
| | | | It will be reused later in the sudo responder
* Use the case sensitivity flag in the LDAP providerJakub Hrozek2011-12-162-4/+33
|
* sysdb_get_real_name helper functionJakub Hrozek2011-12-162-0/+50
|
* Fixed a typo in sysdb_upgrade_07() declarationJan Zeleny2011-11-281-1/+1
|
* Added and modified options for IPA netgroupsJan Zeleny2011-11-231-0/+8
|
* SYSDB: Make ENOENT log messages less threateningStephen Gallagher2011-11-221-16/+54
| | | | | Previously, they were reported with the prefix "Error:" which caused confusion among end-users while debugging.
* Fix FTBFS related to -Werror=format-securityKrzysztof Klimonda2011-11-212-2/+2
|
* SYSDB: add index for nameAliasStephen Gallagher2011-11-023-1/+97
|
* Handle group renaming correctlyJan Zeleny2011-11-021-2/+7
| | | | https://fedorahosted.org/sssd/ticket/1040
* Plug memory leaks in sysdb_opsJakub Hrozek2011-10-311-20/+54
| | | | https://fedorahosted.org/sssd/ticket/1051
* Sanitize DN in sysdb_get_direct_parentsJakub Hrozek2011-10-171-1/+7
|
* SysDB commands that save lastUpdate allows this value to be passed inPavel Březina2011-10-132-32/+55
| | | | https://fedorahosted.org/sssd/ticket/836
* SYSDB: New source file for sysdb upgrade routinesStephen Gallagher2011-10-073-888/+929
|
* Fix typo in sysdb_get_direct_parentsJakub Hrozek2011-10-061-1/+1
|
* Use explicit base 10 for converting strings to integersJakub Hrozek2011-10-032-2/+2
| | | | https://fedorahosted.org/sssd/ticket/1013
* Return users and groups based on aliasJakub Hrozek2011-09-282-6/+7
| | | | https://fedorahosted.org/sssd/ticket/926