summaryrefslogtreecommitdiff
path: root/src/db
AgeCommit message (Collapse)AuthorFilesLines
2011-05-20Change sysdb_add_fake_user to add OriginalDNJakub Hrozek2-2/+10
RFC2307bis code relies heavily on originalDN, so the fake users need to have an option to store it, too.
2011-05-04Some minor fixes and changes in sysdb_opsJan Zeleny1-17/+40
2011-05-04Add a function for searching netgroups with custom filterJan Zeleny2-0/+65
2011-05-04Make sysdb_ctx_list public structureJan Zeleny3-8/+53
Also create a routine to initialize it
2011-04-25Added originalDN to attributes with case-insensitive searchJan Zeleny2-1/+106
https://fedorahosted.org/sssd/ticket/808
2011-04-15Reopen the LDB after modifying itStephen Gallagher1-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.
2011-04-15Run all appropriate upgradesStephen Gallagher1-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()
2011-04-15Don't leak memory if sysdb_domain_init() failsStephen Gallagher1-3/+6
2011-04-13sysdb: use header defined macros instead of explicit valuesSimo Sorce1-9/+9
2011-03-24Add host access control supportPierre Ossman1-0/+1
https://fedorahosted.org/sssd/ticket/746
2011-03-23Check result of talloc_strdup() properlyStephen Gallagher1-1/+1
Coverity 10737
2011-03-23Don't crash on error if _name parameter unspecifiedStephen Gallagher1-2/+2
Coverity 10738
2011-03-23Don't crash if we get a multivalued name without an origDNStephen Gallagher1-1/+3
Coverity 10740 and 10739
2011-03-23Add sysdb_attrs_primary_name_list() routineStephen Gallagher2-0/+59
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.
2011-03-23Add originalDN to fake groupsJakub Hrozek2-2/+9
2011-03-23Add sysdb_attrs_primary_name()Stephen Gallagher2-0/+106
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.
2011-03-23Create sysdb_get_rdn() functionStephen Gallagher2-13/+50
This function takes a DN formatted string and returns the RDN value from it.
2011-02-28Do not try to delete sysbd memberOf attributeSumit Bose1-0/+4
2011-02-14Check LDB_MODULES_PATH for sysdbSumit Bose1-0/+9
2011-02-14Introduce sysdb_ldb_connect()Sumit Bose1-45/+42
2011-02-11Make 'make check' look nice againSumit Bose1-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.
2011-02-11Clear up -Wunused-but-set-variable warningsStephen Gallagher1-0/+3
2011-02-03Add additional indexing for sysdbStephen Gallagher2-1/+117
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.
2011-01-21Delete attributes that are removed from LDAPStephen Gallagher2-0/+125
Sometimes, a value in LDAP will cease to exist (the classic example being shadowExpire). We need to make sure we purge that value from SSSD's sysdb as well. https://fedorahosted.org/sssd/ticket/750
2011-01-14Do not throw a DP error when a netgroup is not foundStephen Gallagher1-1/+4
https://fedorahosted.org/sssd/ticket/775
2011-01-14Work around libldb bugStephen Gallagher1-2/+10
Libldb performs non-indexed searches for ONELEVEL requests. We'll use SUBTREE instead to reduce the performance hit substantially
2010-12-21Add authorizedService supportStephen Gallagher1-0/+2
https://fedorahosted.org/sssd/ticket/670
2010-12-20Add sysdb_has_enumerated and sysdb_set_enumerated helper functionsStephen Gallagher2-0/+152
Includes a unit test
2010-11-15Fix const cast issue with sysdb_attrs_users_from_str_listStephen Gallagher2-2/+2
2010-11-15Fix const cast warning for sysdb_update_membersStephen Gallagher2-4/+4
2010-11-15Sanitize sysdb DN helpersStephen Gallagher1-7/+83
2010-11-15Sanitize search filters for the sysdbStephen Gallagher1-6/+39
2010-11-15Add sysdb utility function for sanitizing DNStephen Gallagher2-0/+27
2010-10-26Always use uint32_t for UID/GID numbersJakub Hrozek2-9/+9
2010-10-18Modify sysdb_[add|remove]_group_member to accept users and groupsStephen Gallagher2-39/+91
Previously, it assumed that all members were users. This changes the interface so that either a user or a group can be specified. Also, it eliminates the need for a memory context to be passed, since the internal memory should be self-contained.
2010-10-15sysdb interface for adding fake usersJakub Hrozek2-0/+65
2010-10-15sysdb interface for adding incomplete groupsJakub Hrozek2-0/+49
Useful for optimizing the initgroups operation.
2010-10-15Add sysdb_attrs_get_ulong utility functionJakub Hrozek2-0/+29
2010-10-13Implement netgroup support for LDAP providerSumit Bose1-0/+3
2010-10-13Also return member groups to the clientSumit Bose2-60/+83
2010-10-13Add sysdb_netgroup_base_dn()Sumit Bose2-0/+8
2010-10-13Do not fail if netgroup exists just update the attributesSumit Bose1-1/+1
2010-10-13Netgroups sysdb APIStephen Gallagher4-2/+802
2010-09-22Fix sysdb_attrs_to_listJakub Hrozek1-2/+2
2010-09-22Fix sysdb_group_dn_nameJakub Hrozek1-1/+8
2010-09-22Initgroups on a non-cached user should go to the data providerStephen Gallagher1-1/+11
We were accidentally returning an error when sysdb_getpwnam() returned zero results internally in sysdb_initgroups(). The correct behavior here is to return EOK and a result object with zero entries.
2010-09-22Fix missing variable substitution in DEBUG messageStephen Gallagher1-2/+2
2010-09-15Define objectclass with a constantJakub Hrozek2-3/+4
Use a #define instead of hardcoded string
2010-09-08Dead assignments cleanup in various places in SSSDJan Zeleny1-0/+3
Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590
2010-09-08Move crypto functions into its own subdirJakub Hrozek1-1/+1
A refactoring patch that creates a common util/crypto subdir with per-implementation subdirectories for each underlying crypto library supported by SSSD.