summaryrefslogtreecommitdiffstats
path: root/server/tools/tools_util.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-181-108/+0
| | | | Also update BUILD.txt
* Build files.c only for toolsStephen Gallagher2009-11-051-0/+10
| | | | Move files.c into tools directory
* User home directories managementJakub Hrozek2009-10-221-0/+19
| | | | | | Create and populate user directories on useradd, delete them on userdel Fixes: #212
* Delete sssd-i18n.h and put it's old contents into util.hMartin Nagy2009-10-221-1/+1
| | | | Also include talloc.h, tevent.h and ldb.h as system headers in util.h.
* Fix error messages in toolsJakub Hrozek2009-10-141-0/+4
| | | | | | | | | | 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-4/+1
| | | | | | | 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-0/+3
| | | | | | | | 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
* Provide python bindings for sysdbJakub Hrozek2009-09-211-0/+2
| | | | | | | | Implement a set of python bindings for the sysdb with feature set similar to what is available in the tools. The primary consumers would be applications like system-config-users. Resolves: Ticket #102
* Decouple synchronous sysdb interface from toolsJakub Hrozek2009-09-211-23/+11
| | | | | | | | 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-31/+1
| | | | | | | | | | | | | | | | 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
* Add copyright noticesJakub Hrozek2009-09-111-0/+22
| | | | Fixes: #138
* Remove shadow-utils support from toolsJakub Hrozek2009-09-081-10/+8
| | | | | 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-2/+1
|
* Split database in multiple filesSimo Sorce2009-09-081-1/+2
| | | | | The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
* Parse fully qualified names in toolsJakub Hrozek2009-08-051-5/+12
| | | | | | 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.
* Start rationalizing user tools a bitSimo Sorce2009-07-201-0/+23
| | | | | There is a lot of duplication in user tools. First steps to remove as much duplication as possible.
* Check for root before initializingJakub Hrozek2009-07-061-0/+12
| | | | | Also move setting locale to separate function to be called before anything else to make sure the "Not root" message would be localized.
* Create gettext framework for SSSD daemonStephen Gallagher2009-06-171-0/+4
|
* Invoke shadow-utils in sss_ toolsJakub Hrozek2009-04-281-0/+28
| | | | | Make shadow-utils base path configurable Use default values for params, allow configuring them
* Change the way we retrieve domainsSimo Sorce2009-04-081-1/+1
| | | | | | | | | | | | | To be able to correctly filter out duplicate names when multiple non-fully qualified domains are in use we need to be able to specify the domains order. This is now accomplished by the configuration paramets 'domains' in the config/domains entry. 'domains' is a comma separated list of domain names. This paramter allows also to have disbaled domains in the configuration without requiring to completely delete them. The domains list is now kept in a linked list of sss_domain_info objects. The first domain is also the "default" domain.
* Move MPG checks within sysdb.Simo Sorce2009-03-091-2/+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/+2
| | | | Move parse_groups into tools_utils
* Add userspace tools to manipulate accounts.Simo Sorce2009-03-061-0/+21
The first functional command is sss_useradd (Name is temporary, while looking for a better one)