summaryrefslogtreecommitdiff
path: root/server/tools/sss_userdel.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-01Better error message when there is no local domain configuredJakub Hrozek1-1/+5
Fixes: #235
2009-11-04Do not delete users, groups outside domain rangeJakub Hrozek1-11/+17
Fixes: 240
2009-10-22User home directories managementJakub Hrozek1-5/+65
Create and populate user directories on useradd, delete them on userdel Fixes: #212
2009-10-14Fix error messages in toolsJakub Hrozek1-16/+2
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
2009-10-01Fix tools sync operations and mem hierarchySimo Sorce1-47/+15
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.
2009-09-23Allow entering parent groups as FQDNJakub Hrozek1-1/+1
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
2009-09-21Decouple synchronous sysdb interface from toolsJakub Hrozek1-75/+36
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
2009-09-21Refactor tools codeJakub Hrozek1-28/+24
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
2009-09-08Remove shadow-utils support from toolsJakub Hrozek1-94/+6
Removes the ability to proxy to shadow-utils. Also remove all the supporting functions for getting domain type, domain by id etc.
2009-09-08Tools are allowed to touch only the 'local' domainSimo Sorce1-10/+2
2009-09-08Split database in multiple filesSimo Sorce1-2/+10
The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
2009-08-21Disallow all operations outside domains, fix deleting cache for filesJakub Hrozek1-4/+15
One of the previous patches disallowed adding users and groups outside known domains but it was missing disallowing modifying, deleting, etc. Also don't error if there's no sysdb cache to delete after deleting legacy user/domain. Fixes: tickets #113,#114
2009-08-05Parse fully qualified names in toolsJakub Hrozek1-6/+27
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.
2009-07-31Notify user when deleting nonexistent user or groupJakub Hrozek1-3/+10
Fixes: RHBZ #513247, RHBZ #513250
2009-07-31Use correct return codesJakub Hrozek1-1/+1
Some code paths that should exit with an error used potentionally incorrect return code.
2009-07-20Start rationalizing user tools a bitSimo Sorce1-64/+42
There is a lot of duplication in user tools. First steps to remove as much duplication as possible.
2009-07-08fixed a double talloc_free errorSumit Bose1-2/+0
2009-07-06Check for root before initializingJakub Hrozek1-0/+10
Also move setting locale to separate function to be called before anything else to make sure the "Not root" message would be localized.
2009-07-03Rework transaction code to use tevent_reqSimo Sorce1-17/+65
This is part of a set of patches to rewrite sysdb to a hopefully better API, that will also let use use tevent_req async style calls to manipulate our cache.
2009-07-03Rename sysdb_req to sysdb_handle.Simo Sorce1-6/+6
This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache.
2009-07-02Gettextize the sss_ toolsJakub Hrozek1-10/+22
2009-06-17Create gettext framework for SSSD daemonStephen Gallagher1-2/+2
2009-04-28Add debug param to the tools, fix lock/unlock in sss_usermodJakub Hrozek1-0/+4
2009-04-28Invoke shadow-utils in sss_ toolsJakub Hrozek1-8/+61
Make shadow-utils base path configurable Use default values for params, allow configuring them
2009-04-08Change the way we retrieve domainsSimo Sorce1-4/+7
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.
2009-03-08Fix initialization problemsJakub Hrozek1-1/+1
Init tools ctx in groupadd before copying its value
2009-03-07sss_groupdel, delete by DN in sss_userdelJakub Hrozek1-73/+10
Don't convert username->uid in userdel, use DN
2009-03-06sss_userdelJakub Hrozek1-0/+230
Also install tools into /sbin, own them in specfile