summaryrefslogtreecommitdiffstats
path: root/src/db
Commit message (Collapse)AuthorAgeFilesLines
...
* Remaining memory context variables renamedJan Zeleny2011-08-152-75/+75
| | | | | memctx to mem_ctx tmpctx to tmp_ctx
* sysdb refactoring: memory context deletedJan Zeleny2011-08-154-368/+363
| | | | | | 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-154-262/+93
| | | | | The patch also updates code using modified functions. Tests have also been adjusted.
* Added sysdb_ctx_get_domain functionJan Zeleny2011-08-152-0/+7
|
* sysdb refactoring: renamed ctx variable to sysdbJan Zeleny2011-08-154-348/+348
|
* 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
* Non-posix group processing - sysdb changesJan Zeleny2011-06-022-19/+26
|
* Added sysdb_attrs_get_bool() functionJan Zeleny2011-06-022-0/+24
|
* Change sysdb_add_fake_user to add OriginalDNJakub Hrozek2011-05-202-2/+10
| | | | | RFC2307bis code relies heavily on originalDN, so the fake users need to have an option to store it, too.
* Some minor fixes and changes in sysdb_opsJan Zeleny2011-05-041-17/+40
|
* Add a function for searching netgroups with custom filterJan Zeleny2011-05-042-0/+65
|
* Make sysdb_ctx_list public structureJan Zeleny2011-05-043-8/+53
| | | | Also create a routine to initialize it
* Added originalDN to attributes with case-insensitive searchJan Zeleny2011-04-252-1/+106
| | | | 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
|
* Add host access control supportPierre Ossman2011-03-241-0/+1
| | | | https://fedorahosted.org/sssd/ticket/746
* 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-232-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.
* Add originalDN to fake groupsJakub Hrozek2011-03-232-2/+9
|
* Add sysdb_attrs_primary_name()Stephen Gallagher2011-03-232-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.
* Create sysdb_get_rdn() functionStephen Gallagher2011-03-232-13/+50
| | | | | This function takes a DN formatted string and returns the RDN value from it.
* Do not try to delete sysbd memberOf attributeSumit Bose2011-02-281-0/+4
|
* 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-032-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.
* Delete attributes that are removed from LDAPStephen Gallagher2011-01-212-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
* Do not throw a DP error when a netgroup is not foundStephen Gallagher2011-01-141-1/+4
| | | | https://fedorahosted.org/sssd/ticket/775
* Work around libldb bugStephen Gallagher2011-01-141-2/+10
| | | | | Libldb performs non-indexed searches for ONELEVEL requests. We'll use SUBTREE instead to reduce the performance hit substantially
* Add authorizedService supportStephen Gallagher2010-12-211-0/+2
| | | | https://fedorahosted.org/sssd/ticket/670
* Add sysdb_has_enumerated and sysdb_set_enumerated helper functionsStephen Gallagher2010-12-202-0/+152
| | | | Includes a unit test
* Fix const cast issue with sysdb_attrs_users_from_str_listStephen Gallagher2010-11-152-2/+2
|
* Fix const cast warning for sysdb_update_membersStephen Gallagher2010-11-152-4/+4
|
* Sanitize sysdb DN helpersStephen Gallagher2010-11-151-7/+83
|
* Sanitize search filters for the sysdbStephen Gallagher2010-11-151-6/+39
|
* Add sysdb utility function for sanitizing DNStephen Gallagher2010-11-152-0/+27
|
* Always use uint32_t for UID/GID numbersJakub Hrozek2010-10-262-9/+9
|
* Modify sysdb_[add|remove]_group_member to accept users and groupsStephen Gallagher2010-10-182-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.
* sysdb interface for adding fake usersJakub Hrozek2010-10-152-0/+65
|
* sysdb interface for adding incomplete groupsJakub Hrozek2010-10-152-0/+49
| | | | Useful for optimizing the initgroups operation.
* Add sysdb_attrs_get_ulong utility functionJakub Hrozek2010-10-152-0/+29
|
* Implement netgroup support for LDAP providerSumit Bose2010-10-131-0/+3
|
* Also return member groups to the clientSumit Bose2010-10-132-60/+83
|