| Summary: | postalcode for user not being added correctly with ipa user-add or user-mod | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jenny Severance <jgalipea> |
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED ERRATA | QA Contact: | Chandrasekar Kannan <ckannan> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1 | CC: | benl, dpal |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-2.0.0-20.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:44:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jenny Severance
2011-04-01 18:47:54 UTC
looks like it is when it starts with a 0 master: 316efbc32f7b586df36653aa894e686313a64764 ipa-2-0: c4fb150837d9e141eb95e5d4d97934271703551b To Test: Scenario 1: Testing on the master itself - ipa-server-install <your favorite options> - kinit admin - ipa user-add --first=Tim --last=User --postalcode=01234-1111 tuser Verify in output that ZIP is correct. Scenario 2: Test with a previous version of ipa-client Using the IPA server from Scenario 1, on another machine: - yum install ipa-client - ipa-client-install Enter the server from Scenario 1 Enroll using admin credentials - kinit admin - ipa user-add --first=Tim --last=User --postalcode=01234-1111 tuser Expected error: ipa: ERROR: invalid 'postalcode': must be an integer - ipa user-add --first=Tim --last=User --postalcode=01234 tuser Expected output: ZIP = 668 The expectation here is not that the zip will be correct, it won't with older bits and a leading 0. We just want to confirm that it won't blow up. verified: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-user-cli-mod-047: modify user's postalcode - bug 692945 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Setting user postalcode - code beginning with 0 :: [ LOG ] :: Value of ZIP for user sup34 is as expected: 01730 :: [ PASS ] :: Verify user's postalcode :: [ LOG ] :: Duration: 6s :: [ LOG ] :: Assertions: 2 good, 0 bad :: [ PASS ] :: RESULT: ipa-user-cli-mod-047: modify user's postalcode - bug 692945 # ipa user-add --first=Tim --last=User --postalcode=01234-1111 tuser ------------------ Added user "tuser" ------------------ User login: tuser First name: Tim Last name: User Full name: Tim User Display name: Tim User Initials: TU Home directory: /home/tuser GECOS field: tuser Login shell: /bin/sh Kerberos principal: tuser@TESTRELM UID: 167200007 ZIP: 01234-1111 version: ipa-server-2.0.0-20.el6.x86_64 ipa-admintools-2.0.0-20.el6.x86_64 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0631.html |