Bug 624511

Summary: Error creating a new user
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-17 15:03:14 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:

Description Jay Dobies 2010-08-16 17:55:56 UTC
When running:

[root@guardian ~]# pulp-admin -uadmin -padmin user create --newusername jdob --newpassword foo


The following is output in /var/log/pulp/pulp.log:

2010-08-16 13:51:36,661  password received is foo
2010-08-16 13:51:36,661  login jdob
2010-08-16 13:51:36,661  name 
2010-08-16 13:51:36,671  Traceback (most recent call last):
  File "/home/jdob/vault/code/pulp/src/pulp/webservices/controllers/base.py", line 50, in report_error
    return method(self, *args, **kwargs)
  File "/home/jdob/vault/code/pulp/src/pulp/webservices/role_check.py", line 102, in check_roles
    ret=f(instance, *fargs, **kw)
  File "/home/jdob/vault/code/pulp/src/pulp/webservices/controllers/users.py", line 50, in PUT
    user_data['name'])
  File "/home/jdob/vault/code/pulp/src/pulp/auditing.py", line 186, in _audit
    result = method(*args, **kwargs)
  File "/home/jdob/vault/code/pulp/src/pulp/api/user.py", line 60, in create
    hashed_password = password_util.hash_password(password)
  File "/home/jdob/vault/code/pulp/src/pulp/password_util.py", line 20, in hash_password
    hashed_password = pbkdf_sha256(plain_password, salt, NUM_ITERATIONS)
  File "/home/jdob/vault/code/pulp/src/pulp/password_util.py", line 14, in pbkdf_sha256
    result = HMAC(result, salt, sha256).digest() # use HMAC to apply the salt
  File "/usr/lib64/python2.6/hmac.py", line 72, in __init__
    self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode

Comment 1 Pradeep Kilambi 2010-08-17 15:03:14 UTC

*** This bug has been marked as a duplicate of bug 623969 ***