summaryrefslogtreecommitdiffstats
path: root/src/tools/tools_util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixing critical format string issues.Lukas Slebodnik2013-05-201-1/+2
| | | | | | --missing arguments. --format '%s', but argument is integer. --wrong format string, examle: '%\n'
* Check for waitpid failure at wrong place.Michal Zidek2013-04-051-6/+5
| | | | | | Coverity bugs. https://fedorahosted.org/sssd/ticket/1865
* tools: append new line to string from poptStrerror()Milan Cejnar2013-02-211-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.
* TOOLS: Use file descriptor to avoid races when creating a home directoryJakub Hrozek2013-01-231-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
* tools: Respect use_fully_qualified_namesMichal Zidek2013-01-161-0/+9
| | | | | | | Tools for LOCAL domain should require FQDN if option 'use_fuly_quallified_names = TRUE' was configured. https://fedorahosted.org/sssd/ticket/1746
* TOOLS: move memcache related functions to tools_mc_utils.cJakub Hrozek2013-01-151-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
* TOOLS: set domain in check_group_namesJakub Hrozek2013-01-151-0/+1
|
* Refactor single domain initializationSimo Sorce2013-01-151-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.
* sss_cache: Small refactor.Michal Zidek2012-11-281-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.
* Display more information on DB version mismatchOndrej Kos2012-11-191-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.
* sss_cache: Remove fastcache even if sssd is not running.Michal Zidek2012-11-061-0/+94
| | | | https://fedorahosted.org/sssd/ticket/1584
* tools_util.h provides signal_sssd function.Michal Zidek2012-09-241-0/+93
|
* Make re_expression and full_name_format per domain optionsStef Walter2012-06-121-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
* Keep sysdb context in domain info structSumit Bose2012-02-291-8/+2
|
* pam_sss: keep selinux optionalSimo Sorce2012-02-231-3/+0
| | | | Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
* Cleanup: Remove unused parametersJakub Hrozek2011-11-221-3/+1
|
* Fixed possible resource leak in create_mail_spool()Jan Zeleny2011-11-071-9/+9
| | | | https://fedorahosted.org/sssd/ticket/1071
* sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny2011-08-151-1/+0
| | | | | The patch also updates code using modified functions. Tests have also been adjusted.
* Fix assorted minor bugs in sss_ toolsJakub Hrozek2010-09-081-0/+5
| | | | Fixes: #585
* tools: remove creation of event_contextSimo Sorce2010-04-121-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.
* sysydb: Finally stop using a common event contextSimo Sorce2010-04-121-1/+1
| | | | This commit completes the migration to a synchronous sysdb
* sysdb: convert sysdb_getgrnamSimo Sorce2010-04-121-1/+1
|
* Add userdel_cmd paramJakub Hrozek2010-04-061-0/+75
| | | | Fixes: #231
* Rename server/ directory to src/Stephen Gallagher2010-02-181-0/+520
Also update BUILD.txt