Bug 455092
| Summary: | Better handling if default group not found | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] freeIPA | Reporter: | Rob Crittenden <rcritten> | ||||
| Component: | ipa-server | Assignee: | Rob Crittenden <rcritten> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Chandrasekar Kannan <ckannan> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 1.0 | CC: | 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
Rob Crittenden
2008-07-11 21:46:23 UTC
Should we instead make ipausers undeletable ? 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. Created attachment 312294 [details]
decent error message if default group not found
The wrong exception was being used to catch the LDAP not found.
master: 23fab304e97d4b275037e066ab93c44e0ed8ae96 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 |