summaryrefslogtreecommitdiff
path: root/src/db/sysdb_search.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-11Fix formating of variables with type: size_tLukas Slebodnik1-1/+1
2013-06-07New utility function sss_get_domain_nameJakub Hrozek1-14/+4
Instead of copying a block of code that checks whether domain is a subdomain and uses only name of FQDN as appropriate, wrap the logic into a function.
2013-05-30Add utility functions for formatting fully-qualified namesJakub Hrozek1-4/+2
Instead of using printf-like functions directly, provide two wrappers that would encapsulate formatting the fully-qualified names. No functional change is present in this patch.
2013-03-13Fix initialization of multiple variablesOndrej Kos1-1/+1
2013-02-10Introduce IS_SUBDOMAIN() macroSimo Sorce1-2/+2
Fixes https://fedorahosted.org/sssd/ticket/1766
2013-01-15Move mpg flag to the domain where it belongsSimo Sorce1-3/+3
A sysdb contains now multiple domains, but the mpg property is a property of a specific domain not of the underlying database.
2013-01-15Add domain argument to sysdb_get_user_attr()Simo Sorce1-1/+2
2013-01-15Add domain argument to sysdb_initgroups()Simo Sorce1-1/+2
2013-01-15Add domain option to sysdb_get/netgr/attrs() fnsSimo Sorce1-3/+5
2013-01-15Pass domain to sysdb_enum<pw/gr>ebt() functionsSimo Sorce1-3/+5
2013-01-15Pass domain to sysdb_get<pwu/grg><id() functionsSimo Sorce1-3/+5
2013-01-15Pass domain to sysdb_get<pw/gr>nam() functionsSimo Sorce1-8/+38
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.
2012-11-19Refactor the way subdomain accounts are savedSimo Sorce1-1/+3
The original sysdb code had a strong assumption that only users from one domain are saved in the databse, with the subdomain feature, we have changed reality, but have not adjusted all the code arund the sysdb calls to not rely on the original assumption. One of the side effects of this incongrunece is that currently group memberships do not return fully qualified names for subdomain users as they should. In oreder to fix this and other potential issues surrounding the violation of the original assumption, we need to fully qualify subdomain user names. By savin them fully qualified we do not risk aliasing local users and have group memberhips or other name based matching code mistake a domain user with subdomain usr or vice versa.
2012-03-06Search netgroups by alias, tooJakub Hrozek1-1/+3
https://fedorahosted.org/sssd/ticket/1228
2011-11-21Fix FTBFS related to -Werror=format-securityKrzysztof Klimonda1-1/+1
2011-10-17Sanitize DN in sysdb_get_direct_parentsJakub Hrozek1-1/+7
2011-10-06Fix typo in sysdb_get_direct_parentsJakub Hrozek1-1/+1
2011-09-28Return users and groups based on aliasJakub Hrozek1-3/+4
https://fedorahosted.org/sssd/ticket/926
2011-09-28Add a sysdb_get_direct_parents functionJakub Hrozek1-0/+101
2011-08-15Remaining memory context variables renamedJan Zeleny1-62/+62
memctx to mem_ctx tmpctx to tmp_ctx
2011-08-15sysdb refactoring: memory context deletedJan Zeleny1-9/+9
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.
2011-08-15sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny1-60/+14
The patch also updates code using modified functions. Tests have also been adjusted.
2011-08-15sysdb refactoring: renamed ctx variable to sysdbJan Zeleny1-37/+37
2010-11-15Sanitize search filters for the sysdbStephen Gallagher1-6/+39
2010-10-13Also return member groups to the clientSumit Bose1-55/+71
2010-10-13Netgroups sysdb APIStephen Gallagher1-0/+336
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-04-12sysdb: remove obsolete helpers from sysdbSimo Sorce1-150/+0
2010-04-12sysdb: convert sysdb_initgroupsSimo Sorce1-95/+48
2010-04-12sysdb: convert sysdb_enumgrentSimo Sorce1-55/+33
2010-04-12sysdb: convert sysdb_enumpwentSimo Sorce1-53/+22
2010-04-12sysdb: convert sysdb_get_user_attrSimo Sorce1-17/+22
2010-04-12sysdb: convert sysdb_getgrgidSimo Sorce1-21/+33
2010-04-12sysdb: convert sysdb_getgrnamSimo Sorce1-17/+46
2010-04-12sysdb: convert sysdb_getpwuidSimo Sorce1-18/+22
2010-04-12sysdb: convert sysdb_getpwnamSimo Sorce1-17/+21
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+691
Also update BUILD.txt