summaryrefslogtreecommitdiff
path: root/src/db/sysdb.h
AgeCommit message (Collapse)AuthorFilesLines
2013-01-16Tidy up BASE dn macrosSimo Sorce1-4/+4
2013-01-15Stop creating fake sysdb contextsSimo Sorce1-5/+0
Now that the sysdb context does not contain anymore domain related data we can simply stop creating faxe sysdb context and just reference the parent context.
2013-01-15Add domain to some subdomain functionsSimo Sorce1-0/+2
2013-01-15Add domain arguemnt to sysdb_get_real_name()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_idmap_ funcitonsSimo Sorce1-3/+2
2013-01-15Add domain argument to sysdb_remove_attrs()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_has/set_enumerated()Simo Sorce1-0/+2
2013-01-15Add domain arg to sysdb_search/delete_netgroup()Simo Sorce1-0/+2
2013-01-15Add domain argument to sysdb_delete_group()Simo Sorce1-3/+1
Also remove sysdb_delete_domgroup()
2013-01-15Add domain argument to sysdb_search_groups()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_delete_user()Simo Sorce1-5/+1
Also remove sysdb_delete_domuser()
2013-01-15Add domain arg to sysdb_search_users()Simo Sorce1-0/+1
2013-01-15Add domain to sysdb_delete_customSimo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_search_custom()Simo Sorce1-0/+2
Also changes sysdb_search_custom_by_name()
2013-01-15Add domain argument to sysdb_store_custom()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_cache_auth()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_cache_password()Simo Sorce1-0/+1
2013-01-15Add domain arg to sysdb group member functionsSimo Sorce1-0/+3
2013-01-15Add domain argument to sysdb_store_group()Simo Sorce1-6/+1
Also remove sysdb_store_domgroup()
2013-01-15Add domain argument to sysdb_store_user()Simo Sorce1-11/+1
Also remove sysdb_store_domuser()
2013-01-15Add domain arguments to sysdb_add_inetgroup fns.Simo Sorce1-0/+2
2013-01-15Add domain arguments to sysdb_add_group functions.Simo Sorce1-0/+3
2013-01-15Add domain argument to sysdb_add_user()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_add_basic_user()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_get_new_id()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_set_netgroup_attr()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_set_group_attr()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_set_user_attr()Simo Sorce1-0/+1
2013-01-15Add domain arg to sysdb_search_netgroup_by_name()Simo Sorce1-0/+1
2013-01-15Add domain to sysdb_search_group_by_gid()Simo Sorce1-5/+1
Also remove unused sysdb_search_domgroup_by_gid()
2013-01-15Add domain to sysdb_search_group_by_name()Simo Sorce1-5/+1
Also remove unused sysdb_search_domgroup_by_name()
2013-01-15Add domain to sysdb_search_user_by_uid()Simo Sorce1-5/+1
Also remove unused sysdb_search_domuser_by_uid()
2013-01-15Add domain to sysdb_search_user_by_name()Simo Sorce1-5/+1
Also remove unused sysdb_search_domuser_by_name()
2013-01-15Add domain argument to sysdb_get_user_attr()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_initgroups()Simo Sorce1-0/+1
2013-01-15Add domain option to sysdb_get/netgr/attrs() fnsSimo Sorce1-0/+2
2013-01-15Pass domain to sysdb_enum<pw/gr>ebt() functionsSimo Sorce1-0/+2
2013-01-15Pass domain to sysdb_get<pwu/grg><id() functionsSimo Sorce1-0/+2
2013-01-15Pass domain to sysdb_get<pw/gr>nam() functionsSimo Sorce1-9/+2
Also allows us to remove sysdb_subdom_get<pw/gr>nam() wrappers and restore fqnames proper value in subdomains, by testing for a parent domain being present or not.
2013-01-15Move range objects into their own top-level tree.Simo Sorce1-1/+1
Storing ranges for multiple domains under any specific domain is somewhat aritrary and unnecessary. Put ranges under cn=ranges,cn=sysdb, without involving any specific domain subtree. This allows us to avoid using sysdb->domain in ranges functions. Also storing other subdomains data under the parent domain tree felt wrong, all other domain specific data is under their own subtree. Moving this data in its own place seems a better solution.
2013-01-15Make sysdb_custom_subtree_dn() require a domain.Simo Sorce1-1/+3
2013-01-15Make sysdb_custom_dn() require a domain.Simo Sorce1-0/+1
2013-01-15Make sysdb_domain_dn() require a domain.Simo Sorce1-1/+2
2013-01-15Make sysdb_netgroup_base_dn() require a domain.Simo Sorce1-1/+3
2013-01-15Make sysdb_netgroup_dn() require a domain explictly.Simo Sorce1-1/+1
2013-01-15Make sysdb_group_dn() require a domain explictly.Simo Sorce1-1/+1
2013-01-15Make sysdb_user_dn() require a domain explictly.Simo Sorce1-1/+1
2013-01-15Remove the sysdb_ctx_get_domain() function.Simo Sorce1-2/+0
We are deprecating sysdb->domain so kill the function that gives access to this member as we should stop relying on it being available (or correct).
2013-01-15Refactor single domain initializationSimo Sorce1-7/+0
Bring it out of sysdb, which will slowly remove internal dependencies on domains and instead will always require them to be passed by callers.
2013-01-15Refactor sysdb initializationSimo Sorce1-17/+2
Change the way sysdbs are initialized. Make callers responsible for providing the list of domains. Remove the returned array of sysdb contexts, it was used only by sss_cache and not really necessary there either as that tool can easily iterate the domains. Make sysdb ctx children of their respective domains. Neither sysdb context nor domains are ever freed until a program is done so there shouldn't be any memory hierarchy issue. As plus we simplify the code by removing a destructor and a setter function.