Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 455092

Summary: Better handling if default group not found
Product: [Retired] freeIPA Reporter: Rob Crittenden <rcritten>
Component: ipa-serverAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: 1.0CC: benl, jgalipea
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freeipa-2.0.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-27 07:16:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 453489    
Attachments:
Description Flags
decent error message if default group not found none

Description Rob Crittenden 2008-07-11 21:46:23 UTC
Description of problem:

When adding a user we attempt to add the user to the default user's group.

If the search for this group fails then adding the user will fail as well.

Currently ipa-adduser will fail with:

# ipa-adduser -f Test -l User testuser
* not found

We should at minimum provide a better error message

Comment 1 Simo Sorce 2008-07-12 15:28:17 UTC
Should we instead make ipausers undeletable ?

Comment 2 Rob Crittenden 2008-07-14 12:34:37 UTC
No. There is no need to require that the group of "everyone" be ipausers.

He put in a perfectly legal group. The problem is that the add_user code assumes
the location in the DIT of the group and constructs the DN. What I will probably
do is store the DN of the default group instead, assuming it doesn't cause too
much grief with installation and I can figure out a way to handle both cases.

What I wanted to avoid is a search for the group whenever a user is added.

Comment 3 Rob Crittenden 2008-07-21 19:47:42 UTC
Created attachment 312294 [details]
decent error message if default group not found

The wrong exception was being used to catch the LDAP not found.

Comment 4 Rob Crittenden 2008-07-23 14:14:26 UTC
master: 23fab304e97d4b275037e066ab93c44e0ed8ae96

Comment 5 Jenny Severance 2008-11-25 14:38:01 UTC
Fix Verified:

Can't delete default group via webgui or ipa-delgroup.  If you delete the group with ldapmodify and try to add a user - you get a descriptive error message.

[root@jennyv3 /]# ipa-adduser jack
First name: Jack
Last name: O'Lantern
The default group for new users, 'test', cannot be found.
[root@jennyv3 /]# ipa-finduser jack
No entries found for jack