summaryrefslogtreecommitdiff
path: root/src/tools/tools_util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-11Fix formating of variables with type: uid_tLukas Slebodnik1-1/+2
2013-05-20Fixing critical format string issues.Lukas Slebodnik1-1/+2
--missing arguments. --format '%s', but argument is integer. --wrong format string, examle: '%\n'
2013-04-05Check for waitpid failure at wrong place.Michal Zidek1-6/+5
Coverity bugs. https://fedorahosted.org/sssd/ticket/1865
2013-02-21tools: append new line to string from poptStrerror()Milan Cejnar1-1/+13
https://fedorahosted.org/sssd/ticket/1756 Messages from poptStrerror() passed to BAD_POPT_PARAMS macro were printed out to the console without new line character at the end of the message. BAD_POPT_PARAMS should now behave correctly with strings both with or without new line character at the end.
2013-01-23TOOLS: Use file descriptor to avoid races when creating a home directoryJakub Hrozek1-27/+1
When creating a home directory, the destination tree can be modified in various ways while it is being constructed because directory permissions are set before populating the directory. This can lead to file creation and permission changes outside the target directory tree, using hard links. This security problem was assigned CVE-2013-0219 https://fedorahosted.org/sssd/ticket/1782
2013-01-16tools: Respect use_fully_qualified_namesMichal Zidek1-0/+9
Tools for LOCAL domain should require FQDN if option 'use_fuly_quallified_names = TRUE' was configured. https://fedorahosted.org/sssd/ticket/1746
2013-01-15TOOLS: move memcache related functions to tools_mc_utils.cJakub Hrozek1-161/+0
The upcoming patches will link only users of this file with client libs, so it's better to have it separate. There is no functional change in this patch
2013-01-15TOOLS: set domain in check_group_namesJakub Hrozek1-0/+1
2013-01-15Refactor single domain initializationSimo Sorce1-2/+2
Bring it out of sysdb, which will slowly remove internal dependencies on domains and instead will always require them to be passed by callers.
2012-11-28sss_cache: Small refactor.Michal Zidek1-0/+67
The logic that checks if sssd_nss is running and then sends SIGHUP to monitor or removes the caches was moved to a function sss_memcache_clear_all() and made public in tools_util.h.
2012-11-19Display more information on DB version mismatchOndrej Kos1-0/+1
https://fedorahosted.org/sssd/ticket/1589 Added check for determining, whether database version is higher or lower than expected. To distinguish it from other errors it uses following retun values (further used for appropriate error message): EMEDIUMTYPE for lower version than expected EUCLEAN for higher version than expected When SSSD or one of it's tools fails on DB version mismatch, new error message is showed suggesting how to proceed.
2012-11-06sss_cache: Remove fastcache even if sssd is not running.Michal Zidek1-0/+94
https://fedorahosted.org/sssd/ticket/1584
2012-09-24tools_util.h provides signal_sssd function.Michal Zidek1-0/+93
2012-06-12Make re_expression and full_name_format per domain optionsStef Walter1-1/+1
* Allows different user/domain qualified names for different domains. For example Domain\User or user@domain. * The global re_expression and full_name_format options remain as defaults for the domains. * Subdomains get the re_expression and full_name_format of their parent domain. https://bugzilla.redhat.com/show_bug.cgi?id=811663
2012-02-29Keep sysdb context in domain info structSumit Bose1-8/+2
2012-02-23pam_sss: keep selinux optionalSimo Sorce1-3/+0
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2011-11-22Cleanup: Remove unused parametersJakub Hrozek1-3/+1
2011-11-07Fixed possible resource leak in create_mail_spool()Jan Zeleny1-9/+9
https://fedorahosted.org/sssd/ticket/1071
2011-08-15sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny1-1/+0
The patch also updates code using modified functions. Tests have also been adjusted.
2010-09-08Fix assorted minor bugs in sss_ toolsJakub Hrozek1-0/+5
Fixes: #585
2010-04-12tools: remove creation of event_contextSimo Sorce1-8/+0
Since the sysdb is now synchronous and creates its own event context we don't need an explicit event context anymore in the tools.
2010-04-12sysydb: Finally stop using a common event contextSimo Sorce1-1/+1
This commit completes the migration to a synchronous sysdb
2010-04-12sysdb: convert sysdb_getgrnamSimo Sorce1-1/+1
2010-04-06Add userdel_cmd paramJakub Hrozek1-0/+75
Fixes: #231
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+520
Also update BUILD.txt