summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
Commit message (Collapse)AuthorAgeFilesLines
* SYSDB: Save only lowercased aliases in case-insensitive domainsStephen Gallagher2012-03-161-19/+28
| | | | https://fedorahosted.org/sssd/ticket/1253
* SYSDB: index sudoUserJakub Hrozek2012-01-311-0/+7
| | | | | 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-311-0/+26
|
* SYSDB: Add indexes for servicePort and serviceProtocolStephen Gallagher2012-01-271-0/+7
|
* SYSDB: Redundant check is redundant.Stephen Gallagher2012-01-211-5/+0
| | | | Coverity 12480
* sysdb_get_bool() and sysdb_get_bool() functionsPavel Březina2012-01-171-51/+97
|
* SUDO Integration review issuesPavel Březina2012-01-171-1/+1
|
* Export the function to convert ldb_result to sysdb_attrsJakub Hrozek2011-12-161-0/+29
| | | | It will be reused later in the sudo responder
* Use the case sensitivity flag in the LDAP providerJakub Hrozek2011-12-161-4/+32
|
* sysdb_get_real_name helper functionJakub Hrozek2011-12-161-0/+46
|
* SYSDB: add index for nameAliasStephen Gallagher2011-11-021-0/+7
|
* SYSDB: New source file for sysdb upgrade routinesStephen Gallagher2011-10-071-888/+12
|
* Use explicit base 10 for converting strings to integersJakub Hrozek2011-10-031-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1013
* Add sysdb interface to get name aliasesJakub Hrozek2011-09-281-1/+59
|
* Return the first value of name if the multivalued name attribute does not ↵Jakub Hrozek2011-08-251-3/+4
| | | | | | match RDN https://fedorahosted.org/sssd/ticket/926
* sysdb refactoring: memory context deletedJan Zeleny2011-08-151-74/+81
| | | | | | This patch deletes memory context parameter in those places in sysdb where it is not necessary. The code using modified functions has been updated. Tests updated as well.
* sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny2011-08-151-6/+4
| | | | | The patch also updates code using modified functions. Tests have also been adjusted.
* Added sysdb_ctx_get_domain functionJan Zeleny2011-08-151-0/+5
|
* sysdb refactoring: renamed ctx variable to sysdbJan Zeleny2011-08-151-126/+126
|
* Fix potential double-free issueStephen Gallagher2011-08-101-1/+1
| | | | tmp_ctx is a child of ctx.
* Cancel sysdb upgrade transaction if commit failsStephen Gallagher2011-08-101-60/+30
|
* Allow NULL memctx in sysdb_custom_subtree_dnStephen Gallagher2011-07-081-3/+11
| | | | ldb_dn_new_fmt() has a bug and cannot take a NULL memory context
* Added sysdb_attrs_get_bool() functionJan Zeleny2011-06-021-0/+22
|
* Make sysdb_ctx_list public structureJan Zeleny2011-05-041-0/+41
| | | | Also create a routine to initialize it
* Added originalDN to attributes with case-insensitive searchJan Zeleny2011-04-251-0/+103
| | | | https://fedorahosted.org/sssd/ticket/808
* Reopen the LDB after modifying itStephen Gallagher2011-04-151-3/+20
| | | | | If we change any of the special entries such as indexes or plugins, we need to close and reopen the LDB to ensure that they take effect.
* Run all appropriate upgradesStephen Gallagher2011-04-151-1/+17
| | | | | | Previously, if we were upgrading from version 0.4 or older, we would only run sysdb_upgrade_04() and exit, instead of also running sysdb_upgrade_05()
* Don't leak memory if sysdb_domain_init() failsStephen Gallagher2011-04-151-3/+6
|
* sysdb: use header defined macros instead of explicit valuesSimo Sorce2011-04-131-9/+9
|
* Check result of talloc_strdup() properlyStephen Gallagher2011-03-231-1/+1
| | | | Coverity 10737
* Don't crash on error if _name parameter unspecifiedStephen Gallagher2011-03-231-2/+2
| | | | Coverity 10738
* Don't crash if we get a multivalued name without an origDNStephen Gallagher2011-03-231-1/+3
| | | | Coverity 10740 and 10739
* Add sysdb_attrs_primary_name_list() routineStephen Gallagher2011-03-231-0/+53
| | | | | | This routine will replace the use of sysdb_attrs_to_list() for any case where we're trying to get the name of the entry. It's a necessary precaution in case the name is multi-valued.
* Add sysdb_attrs_primary_name()Stephen Gallagher2011-03-231-0/+102
| | | | | | | This function will check a sysdb_attrs struct for the primary name of the entity it represents. If there are multiple entries, it will pick the one that matches the RDN. If none match, it will throw an error.
* Create sysdb_get_rdn() functionStephen Gallagher2011-03-231-13/+48
| | | | | This function takes a DN formatted string and returns the RDN value from it.
* Check LDB_MODULES_PATH for sysdbSumit Bose2011-02-141-0/+9
|
* Introduce sysdb_ldb_connect()Sumit Bose2011-02-141-45/+42
|
* Make 'make check' look nice againSumit Bose2011-02-111-8/+0
| | | | | | | | | With current libldb releases 'make check' will print a lot of 'unable to dlopen' messages although the test will succeed. This patch place the memberof module into a directory of its own to avoid these messages. Additionally this patch introduces TESTS_ENVIRONMENT which allows us to remove the SYSDB_TEST preprocessor definition.
* Clear up -Wunused-but-set-variable warningsStephen Gallagher2011-02-111-0/+3
|
* Add additional indexing for sysdbStephen Gallagher2011-02-031-0/+113
| | | | | | | | | | | | Adds an index for dataExpireTimestamp This is used for determining which users need to be removed during the cleanup task. If enumeration is enabled (or huge numbers of users have been cached), the cleanup task runs very slowly due to the non-indexed search. Also adds an index for ONELEVEL lookups, to speed up situations where we would need to request all entries under a particular node in the LDB.
* Add sysdb_has_enumerated and sysdb_set_enumerated helper functionsStephen Gallagher2010-12-201-0/+142
| | | | Includes a unit test
* Fix const cast issue with sysdb_attrs_users_from_str_listStephen Gallagher2010-11-151-1/+1
|
* Sanitize sysdb DN helpersStephen Gallagher2010-11-151-7/+83
|
* Add sysdb utility function for sanitizing DNStephen Gallagher2010-11-151-0/+24
|
* Always use uint32_t for UID/GID numbersJakub Hrozek2010-10-261-7/+7
|
* Add sysdb_attrs_get_ulong utility functionJakub Hrozek2010-10-151-0/+27
|
* Add sysdb_netgroup_base_dn()Sumit Bose2010-10-131-0/+6
|
* Netgroups sysdb APIStephen Gallagher2010-10-131-0/+6
|
* Fix sysdb_attrs_to_listJakub Hrozek2010-09-221-2/+2
|
* Fix sysdb_group_dn_nameJakub Hrozek2010-09-221-1/+8
|