summaryrefslogtreecommitdiffstats
path: root/src/tools
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup: Remove unused parametersJakub Hrozek2011-11-227-39/+30
|
* Fixed possible resource leak in create_mail_spool()Jan Zeleny2011-11-071-9/+9
| | | | https://fedorahosted.org/sssd/ticket/1071
* TOOLS: Do not leak pid_file handle on errorStephen Gallagher2011-10-141-1/+2
| | | | Coverity 11032
* SysDB commands that save lastUpdate allows this value to be passed inPavel Březina2011-10-131-2/+2
| | | | https://fedorahosted.org/sssd/ticket/836
* Use explicit base 10 for converting strings to integersJakub Hrozek2011-10-031-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1013
* Multiline macro cleanupJakub Hrozek2011-09-281-1/+1
| | | | | | | | | | This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again.
* sss_debuglevel - change the debug levels on the flyPavel Březina2011-09-061-0/+393
| | | | https://fedorahosted.org/sssd/ticket/950
* New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0Pavel Březina2011-08-258-8/+8
| | | | | | | | | | | | | | | | | | | | | Removed: SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED) Added new macro: CONVERT_AND_SET_DEBUG_LEVEL(new_value) Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0 so DEBUG macro could be reduced by one condition. Anyway, it has a minor effect, every time you want to load debug_level from command line parameters, you have to use following pattern: /* Set debug level to invalid value so we can deside if -d 0 was used. */ debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { ... } CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
* New DEBUG facility - conversionPavel Březina2011-08-259-21/+9
| | | | | | | | | | https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
* sysdb refactoring: memory context deletedJan Zeleny2011-08-152-13/+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.
* sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny2011-08-1510-45/+23
| | | | | The patch also updates code using modified functions. Tests have also been adjusted.
* Replace system() function with fork and execl call.Matthew Ife2011-07-011-22/+30
| | | | | | | | | | This is much more selinux friendly as it allows policy makers to call nscd_domtrans to transition to nscd_t instead of giving more access to the system via the corcmd_exec_bin macro. Modified-by: Simo Sorce <ssorce@redhat.com> Signed-off-by: Simo Sorce <ssorce@redhat.com>
* Set _GNU_SOURCE globallySumit Bose2011-05-231-1/+0
|
* Fixed uninitialized value in sss_cacheJan Zeleny2011-05-161-0/+1
| | | | https://fedorahosted.org/sssd/ticket/865
* Cache cleaning toolJan Zeleny2011-05-041-0/+360
|
* sss_obfuscate: abort on ctrl+cStephen Gallagher2011-03-241-0/+12
| | | | | | | There is a python bug (http://bugs.python.org/issue11236) where getpass.getpass() does not throw KeyboardInterrupt on ctrl+c. This workaround is the closest we can get: if we detect the control character in the string that we read, we'll cancel.
* sss_obfuscate: Avoid traceback on ctrl+dStephen Gallagher2011-03-241-5/+9
|
* removing password option functionalityGowrishankar Rajaiyan2011-02-031-5/+1
|
* Gracefully handle permission errors in sss_obfuscateStephen Gallagher2011-02-031-3/+15
|
* Make the domain argument mandatory in sss_obfuscateStephen Gallagher2011-02-031-2/+6
| | | | | It doesn't make sense to set a "default" domain. We should require that the domain always be specified.
* Fix usability of sss_obfuscate commandStephen Gallagher2011-01-171-12/+21
|
* Fix boolean comparison against stringStephen Gallagher2011-01-051-2/+2
| | | | Coverity 10082 and 100083
* Properly check the return value from semanage_commitStephen Gallagher2010-11-051-2/+2
| | | | | | | semanage_commit() returns -1 on error, and can return a positive value on success. https://bugzilla.redhat.com/show_bug.cgi?id=649037
* Fix assorted minor bugs in sss_ toolsJakub Hrozek2010-09-089-47/+37
| | | | Fixes: #585
* sss_obfuscate toolJakub Hrozek2010-09-081-0/+81
| | | | A tool to add obfuscated passwords into the SSSD config file
* Fix potential resource leak in remove_tree_with_ctx()Stephen Gallagher2010-06-171-1/+10
| | | | https://fedorahosted.org/sssd/ticket/515
* Fix potential resource leak in copy_tree_ctx()Jakub Hrozek2010-06-141-2/+10
| | | | Ticket #515
* Remove the -g option from useraddJakub Hrozek2010-06-141-57/+2
| | | | | | The local domain has the magic private groups option set unconditionally. Therefore, it does not make any sense to let user configure the primary GID. As a side-effect, this fixes #522.
* Make sure to close varargs before returning from a functionStephen Gallagher2010-06-101-1/+1
| | | | https://fedorahosted.org/sssd/ticket/528
* Properly handle read() and write() throughout the SSSDStephen Gallagher2010-06-101-19/+36
| | | | | | | We need to guarantee at all times that reads and writes complete successfully. This means that they must be checked for returning EINTR and EAGAIN, and all writes must be wrapped in a loop to ensure that they do not truncate their output.
* Add missing break to switch statementJakub Hrozek2010-06-091-0/+1
| | | | | | | Switch statement missing a break causes unintended implicit setting of 'm' options in sss_useradd. Fixes: #512
* Silence warnings with -O2Jakub Hrozek2010-04-301-4/+4
|
* Fix merge error for sss_userdel.cStephen Gallagher2010-04-121-21/+1
|
* tools: remove creation of event_contextSimo Sorce2010-04-129-26/+3
| | | | | Since the sysdb is now synchronous and creates its own event context we don't need an explicit event context anymore in the tools.
* Make groupshow synchronous.Simo Sorce2010-04-121-310/+105
| | | | | | | | I tried to convert this code as mechanically as possible from the previously existing code. I am not sure it works right, and it will probably recurse infinetly as circular group memberships are admitted in sysdb. The original code had the same issues. This code should be probably discarded and redone from scratch.
* sysydb: Finally stop using a common event contextSimo Sorce2010-04-121-1/+1
| | | | This commit completes the migration to a synchronous sysdb
* sysdb: remove remaining traces of sysdb_handleSimo Sorce2010-04-123-6/+1
|
* sysdb: convert sysdb_getgrnamSimo Sorce2010-04-126-101/+45
|
* sysdb: convert sysdb_getpwnamSimo Sorce2010-04-125-103/+57
|
* Use the sysdb synchronous transaction functionsSimo Sorce2010-04-126-389/+84
|
* sysdb: convert sysdb_search_groupsSimo Sorce2010-04-121-175/+59
|
* sysdb: convert sysdb_mod/add/remove_group_memberSimo Sorce2010-04-121-371/+58
|
* sysdb: convert sysdb_store/add(_basic)_groupSimo Sorce2010-04-121-101/+5
|
* sysdb: convert sysdb_store/add(_basic)_userSimo Sorce2010-04-121-110/+25
|
* sysdb: convert sysdb_set_entry/user/group_attrSimo Sorce2010-04-121-101/+12
|
* sysdb: convert sysdb_search_group_by_name/gidSimo Sorce2010-04-121-124/+96
|
* sysdb: convert sysdb_search_user_by_name/uidSimo Sorce2010-04-121-96/+31
|
* sysdb: convert sysdb_delete_entryStephen Gallagher2010-04-124-237/+18
|
* SELinux login managementJakub Hrozek2010-04-085-0/+371
| | | | | | | | | | Adds a new option -Z to sss_useradd and sss_usermod. This option allows user to specify the SELinux login context for the user. On deleting the user with sss_userdel, the login mapping is deleted, so subsequent adding of the same user would result in the default login context unless -Z is specified again. MLS security is not supported as of this patch.
* Move SELinux related functions into its own moduleJakub Hrozek2010-04-083-60/+85
| | | | Fix whitespace errors