summaryrefslogtreecommitdiffstats
path: root/server/tools/tools_util.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid returning uninitialized result.Stephen Gallagher2009-12-081-0/+1
| | | | | If grouplist was a zero-length array, we would return ret unitialized.
* Better error message when there is no local domain configuredJakub Hrozek2009-12-011-1/+1
| | | | Fixes: #235
* User home directories managementJakub Hrozek2009-10-221-0/+223
| | | | | | Create and populate user directories on useradd, delete them on userdel Fixes: #212
* Fix segfault when using SSS tools with no local providerStephen Gallagher2009-10-161-5/+0
| | | | | | There was a double-free here. I removed the free()s within setup_db, because upon returning to sss_init_tools(), if ret != EOK, the context is freed as well.
* Fix error messages in toolsJakub Hrozek2009-10-141-0/+31
| | | | | | | | | | Add getpwnam, getgrnam sync versions Fix ticket #164: Groupnames in non-local domains Fix ticket #100: Error Message Modifying a user that doesn't Exist Fix ticket #214: incorrect error message when MPG already exists Fix ticket #188: Deleting and modifying users in non-local domain Fix ticket #120: Adding a user to a full domain gives unhelpful error message
* Fix tools sync operations and mem hierarchySimo Sorce2009-10-011-31/+17
| | | | | | | Tools were using nested loops that are illegal. (and enforced in latest tevent with a nice abort()) Fix them by creating appropriate synchronous transaction calls. Also fix tools_ctx mem hierarchy setup.
* Allow entering parent groups as FQDNJakub Hrozek2009-09-231-1/+39
| | | | | | | | Allow entering parent groups for groupadd,useradd,usermod as FQDN. Since members and parents must be from the same domain, error out if we can't determine the domain of member. Fixes: #121
* Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2009-09-231-3/+0
| | | | | | | | This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d. Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made use of the SYSLOG_ERROR() macro, so those portions of that code also needed to be reverted.
* Use syslog for logging error conditions in SSSDJakub Hrozek2009-09-211-0/+3
| | | | | This is just a band-aid until ELAPI is fully functional and ready to use.
* Decouple synchronous sysdb interface from toolsJakub Hrozek2009-09-211-63/+26
| | | | | | | | Instead of working directly with async code in tools, create synchronous wrappers that could be used by tools and python bindings. Also resolves many issues with code duplication in tools and thus fixes ticket #87
* Refactor tools codeJakub Hrozek2009-09-211-16/+20
| | | | | | | | | | | | | | | | Move parameter parsing in tools before attempting to do anything that might fail - so that we have debug_level set correctly for potential error messages. That allows printing the --help and --usage messages without being root. Fix code duplicates in tools and refactor its code a little to lay ground for decoupling the synchronous interfaces. Remove some legacy tools leftovers, re-add sensible error message on removing nonexistent users/groups which was removed by accident. Fixes: Trac ticket #75 Fix typo in groupdel: fixes ticket #136
* Remove unused event context argument from confdb_initStephen Gallagher2009-09-101-1/+1
| | | | | | Because the confdb always operates synchronously, it maintains its own private event context internally. The event context argument passed to it is never used, so we'll remove it to avoid confusion.
* Remove shadow-utils support from toolsJakub Hrozek2009-09-081-87/+33
| | | | | Removes the ability to proxy to shadow-utils. Also remove all the supporting functions for getting domain type, domain by id etc.
* Tools are allowed to touch only the 'local' domainSimo Sorce2009-09-081-7/+15
|
* Split database in multiple filesSimo Sorce2009-09-081-2/+2
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* Make "files" a reserved word for legacy local domainJakub Hrozek2009-08-131-1/+2
| | | | | | | | This patch introduces provider=files as a valid provider. Upon loading the backend, its properties in confdb are overwritten to those that represent legacy local domain. Also document this in sssd.conf(5) and example config
* Tools ID range fixesJakub Hrozek2009-08-131-1/+2
| | | | | | | | | The tools did not take the special case where id_max = 0 (no limit) into account. Also disallow adding users when ID is specified outside any domain. Resolves trac tickets #86 and #89
* Parse fully qualified names in toolsJakub Hrozek2009-08-051-37/+88
| | | | | | Allow adding users into different domains not only by specifying ID directly but also by specifying fully qualified name. Exit when both specifications are used in conflict.
* Correct check for local domain in toolsJakub Hrozek2009-07-311-2/+2
| | | | | | When looking for the local domain in the tools, do so by looking on provider value, not domain name. Also removes one redundant lookup of local domain.
* Check for root before initializingJakub Hrozek2009-07-061-4/+26
| | | | | Also move setting locale to separate function to be called before anything else to make sure the "Not root" message would be localized.
* Gettextize the sss_ toolsJakub Hrozek2009-07-021-2/+2
|
* Create gettext framework for SSSD daemonStephen Gallagher2009-06-171-0/+20
|
* Silence warningsSimo Sorce2009-05-261-1/+1
|
* Invoke shadow-utils in sss_ toolsJakub Hrozek2009-04-281-0/+88
| | | | | Make shadow-utils base path configurable Use default values for params, allow configuring them
* Move MPG checks within sysdb.Simo Sorce2009-03-091-98/+0
| | | | | This allows to perform checks and modifications in one transaction. Uses configuration stored in confdb to determins if a domain uses MPGs.
* sss_usermodJakub Hrozek2009-03-091-0/+44
| | | | Move parse_groups into tools_utils
* Add userspace tools to manipulate accounts.Simo Sorce2009-03-061-0/+196
The first functional command is sss_useradd (Name is temporary, while looking for a better one)