summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_ops.c
Commit message (Collapse)AuthorAgeFilesLines
* sysdb: add sysdb_search_object_by_sid()Sumit Bose2013-05-021-0/+54
| | | | | | The patch add a new sysdb to find objects based on their SID. Currently only the basic attributes needed to map SIDs to POSIX IDs and names are requested, but this list can be extended for future use cases.
* Only try to relink ghost users if we're not enumeratingJakub Hrozek2013-04-291-4/+9
| | | | | | | | https://fedorahosted.org/sssd/ticket/1893 When SSSD is not enumerating (which is the default), we are trying to link any "ghost" entries with a newly created user entry. However, when enumeration is on, this means a spurious search on adding any user.
* Use SSSD specific errors for offline authSimo Sorce2013-03-041-8/+9
| | | | | | This prevents reportin false errors when internal functions return a generic EINVAL or EACCES that should just be treated as internal errors.
* SYSDB: make the sss_ldb_modify_permissive function publicJakub Hrozek2013-01-231-2/+7
|
* Move mpg flag to the domain where it belongsSimo Sorce2013-01-151-5/+5
| | | | | A sysdb contains now multiple domains, but the mpg property is a property of a specific domain not of the underlying database.
* Add domain argument to sysdb_remove_attrs()Simo Sorce2013-01-151-6/+7
|
* Add domain arg to sysdb_search/delete_netgroup()Simo Sorce2013-01-151-2/+4
|
* Add domain argument to sysdb_delete_group()Simo Sorce2013-01-151-3/+4
| | | | Also remove sysdb_delete_domgroup()
* Add domain argument to sysdb_search_groups()Simo Sorce2013-01-151-2/+4
|
* Add domain argument to sysdb_delete_user()Simo Sorce2013-01-151-3/+4
| | | | Also remove sysdb_delete_domuser()
* Add domain arg to sysdb_search_users()Simo Sorce2013-01-151-1/+2
|
* Add domain to sysdb_delete_customSimo Sorce2013-01-151-1/+2
|
* Add domain argument to sysdb_search_custom()Simo Sorce2013-01-151-4/+5
| | | | Also changes sysdb_search_custom_by_name()
* Add domain argument to sysdb_store_custom()Simo Sorce2013-01-151-1/+2
|
* Add domain argument to sysdb_cache_auth()Simo Sorce2013-01-151-3/+4
|
* Add domain argument to sysdb_cache_password()Simo Sorce2013-01-151-1/+2
|
* Add domain arg to sysdb group member functionsSimo Sorce2013-01-151-9/+15
|
* Add domain argument to sysdb_store_group()Simo Sorce2013-01-151-4/+5
| | | | Also remove sysdb_store_domgroup()
* Add domain argument to sysdb_store_user()Simo Sorce2013-01-151-6/+6
| | | | Also remove sysdb_store_domuser()
* Add domain arguments to sysdb_add_inetgroup fns.Simo Sorce2013-01-151-3/+5
|
* Add domain arguments to sysdb_add_group functions.Simo Sorce2013-01-151-8/+11
|
* Add domain argument to sysdb_add_user()Simo Sorce2013-01-151-7/+8
|
* Add domain argument to sysdb_add_basic_user()Simo Sorce2013-01-151-2/+4
|
* Add domain argument to sysdb_get_new_id()Simo Sorce2013-01-151-5/+4
|
* Add domain argument to sysdb_set_netgroup_attr()Simo Sorce2013-01-151-2/+3
|
* Add domain argument to sysdb_set_group_attr()Simo Sorce2013-01-151-4/+5
|
* Add domain argument to sysdb_set_user_attr()Simo Sorce2013-01-151-6/+10
|
* Add domain arg to sysdb_search_netgroup_by_name()Simo Sorce2013-01-151-2/+3
|
* Add domain to sysdb_search_group_by_gid()Simo Sorce2013-01-151-3/+4
| | | | Also remove unused sysdb_search_domgroup_by_gid()
* Add domain to sysdb_search_group_by_name()Simo Sorce2013-01-151-4/+5
| | | | Also remove unused sysdb_search_domgroup_by_name()
* Add domain to sysdb_search_user_by_uid()Simo Sorce2013-01-151-3/+4
| | | | Also remove unused sysdb_search_domuser_by_uid()
* Add domain to sysdb_search_user_by_name()Simo Sorce2013-01-151-5/+6
| | | | Also remove unused sysdb_search_domuser_by_name()
* Make sysdb_custom_subtree_dn() require a domain.Simo Sorce2013-01-151-1/+2
|
* Make sysdb_custom_dn() require a domain.Simo Sorce2013-01-151-3/+6
|
* Make sysdb_domain_dn() require a domain.Simo Sorce2013-01-151-1/+1
|
* Make sysdb_netgroup_dn() require a domain explictly.Simo Sorce2013-01-151-4/+4
|
* Make sysdb_group_dn() require a domain explictly.Simo Sorce2013-01-151-6/+6
|
* Make sysdb_user_dn() require a domain explictly.Simo Sorce2013-01-151-6/+6
|
* Change pam data auth tokens.Simo Sorce2013-01-101-1/+0
| | | | Use the new authtok abstraction and interfaces throught the code.
* Code can only check for cached passwordsSimo Sorce2013-01-101-11/+1
| | | | | Make it clear to the API users that we can not take arbitrary auth tokens. We can only take a password for now so simplify and clarify the interface.
* Remove dead netgroup functionsSimo Sorce2013-01-081-123/+0
|
* SYSDB: split sysdb_add_userOndrej Kos2013-01-071-125/+176
| | | | | The function itself was very long (more than 300 lines) and hard to read, this patch splits it to three logical blocks.
* SYSDB: Modify ghosts in permissive modeOndrej Kos2013-01-071-1/+33
| | | | | | | | | https://fedorahosted.org/sssd/ticket/1714 The attempt to delete all ghosts for users name and aliases was failing, resulting into failure of whole user-add operation. In permissive mode, the attempts to delete non-existent entries are not interpreted as error.
* SYSDB: Move misplaced assignmentJakub Hrozek2012-12-101-2/+1
|
* SYSDB: Don't operate with aliases same as nameOndrej Kos2012-11-231-0/+6
| | | | | | | fixes https://fedorahosted.org/sssd/ticket/1628 When user's alias is same as it's name, don't use it for searching in sysdb, and for deleting.
* LDAP: Only convert direct parents' ghost attribute to memberJakub Hrozek2012-11-201-8/+37
| | | | | | | | | | | | | | | | | https://fedorahosted.org/sssd/ticket/1612 This patch changes the handling of ghost attributes when saving the actual user entry. Instead of always linking all groups that contained the ghost attribute with the new user entry, the original member attributes are now saved in the group object and the user entry is only linked with its direct parents. As the member attribute is compared against the originalDN of the user, if either the originalDN or the originalMember attributes are missing, the user object is linked with all the groups as a fallback. The original member attributes are only saved if the LDAP schema supports nesting.
* SYSDB: Use the add_string convenience functions for managing ghost user ↵Jakub Hrozek2012-11-201-24/+9
| | | | | | | attribute Using the convenience function instead of low-level ldb calls makes the code more compact and more readable.
* SYSDB: Remove unnecessary domain parameter from several sysdb callsJakub Hrozek2012-09-241-45/+33
| | | | | The domain can be read from the sysdb object. Removing the domain string makes the API more self-contained.
* AUTOFS: Add entry objects below map objectsJakub Hrozek2012-09-241-19/+0
| | | | | | | | https://fedorahosted.org/sssd/ticket/1506 Changes how the new autofs entry objects are handled. Instead of creating the entry on the cn=autofs,cn=custom level, the entry is created below the map it belongs to.
* DB: Cancel transaction in sysdb_store_user if sysdb_add_user failsJakub Hrozek2012-09-201-1/+8
|