Bug 1189963 - satpassd does not accept punctuation characters in username
Summary: satpassd does not accept punctuation characters in username
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.2
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space24
TreeView+ depends on / blocked
 
Reported: 2015-02-06 02:00 UTC by philipp.burath@conocophillips.com
Modified: 2015-10-08 13:26 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-08 13:26:06 UTC
Embargoed:


Attachments (Terms of Use)

Description philipp.burath@conocophillips.com 2015-02-06 02:00:21 UTC
Description of problem:
satpassd does not accept punctuation characters in username.

For example:
user_a is not treated as a valid username when changing password with satpasswd even though username is accepted within spacewalk.

Version-Release number of selected component (if applicable):
spacewalk-base-2.2.33-1.el6.noarch

How reproducible:
satpasswd user_a

Steps to Reproduce:
1. Create user_a in spacewalk
2. In CLI on server, run "satpasswd user_a"
3.

Actual results:
[root]# satpasswd user_a
Usage: satpasswd [OPTIONS] user

Options:
        -h, --help      Print this help message.
        -s, --stdin     Read the password from standard input.


Expected results:
Should prompt for password.

Additional info:

This is the cause of the problem:
    if not userIn.isalnum():

It incorrect only permits alphanumeric.

Comment 1 Tomáš Kašpárek 2015-07-09 13:53:48 UTC
this was fixed by 0c29c06799e0afc1120a548a06886e4bd961bb1a

Comment 2 Jan Dobes 2015-10-08 13:26:06 UTC
Spacewalk 2.4 has been released.


Note You need to log in before you can comment on or make changes to this bug.