#2937 sss_obfuscate: SyntaxError: Missing parentheses in call to 'print'
Closed: Fixed None by lslebodn. Opened 2 years ago by lslebodn.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1301303

Description of problem:

Running sss_obfuscate results in a python error that prevents it from working
properly.


Version-Release number of selected component (if applicable):

I'm including the python release for reference.

# rpm -qi -f $(readlink -f $(type -p sss_obfuscate)) $(readlink -f $(type -p
python3))

Name        : sssd-tools
Version     : 1.13.3
Release     : 1.fc22
Architecture: x86_64
Install Date: Sat 23 Jan 2016 04:37:25 PM CST
Group       : Applications/System
Size        : 862707
License     : GPLv3+
Signature   : RSA/SHA256, Wed 16 Dec 2015 09:19:57 PM CST, Key ID
11adc0948e1431d5
Source RPM  : sssd-1.13.3-1.fc22.src.rpm
Build Date  : Wed 16 Dec 2015 06:44:59 AM CST
Build Host  : buildhw-01-nfs.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://fedorahosted.org/sssd/

Name        : python3
Version     : 3.4.2
Release     : 6.fc22
Architecture: x86_64
Install Date: Sat 19 Sep 2015 12:50:57 PM CDT
Group       : Development/Languages
Size        : 36419
License     : Python
Signature   : RSA/SHA256, Fri 10 Jul 2015 03:20:33 PM CDT, Key ID
11adc0948e1431d5
Source RPM  : python3-3.4.2-6.fc22.src.rpm
Build Date  : Thu 09 Jul 2015 01:14:07 PM CDT
Build Host  : buildvm-02.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.python.org/


How reproducible:


Steps to Reproduce:
1. dnf install sssd-ldap sssd-tools python-sssdconfig
2. Creating / modifying /etc/sssd/sssd.conf isn't necessary to demonstrate this
bug
3. sss_obfuscate -d example.com

Actual results:

  File "/usr/sbin/sss_obfuscate", line 81
    print "Cannot read internal configuration files."
                                                    ^
SyntaxError: Missing parentheses in call to 'print'


Expected results:

Operator should be prompted for password twice then its obfuscated version
should be written to /etc/sssd/sssd.conf


Additional info:

This also affects 23.

# rpm -qi -f $(readlink -f $(type -p sss_obfuscate)) $(readlink -f $(type -p
python3))
Name        : sssd-tools
Version     : 1.13.3
Release     : 1.fc23
Architecture: x86_64
Install Date: Sun 10 Jan 2016 02:56:32 AM CST
Group       : Applications/System
Size        : 862675
License     : GPLv3+
Signature   : RSA/SHA256, Wed 16 Dec 2015 09:21:26 PM CST, Key ID
32474cf834ec9cba
Source RPM  : sssd-1.13.3-1.fc23.src.rpm
Build Date  : Wed 16 Dec 2015 02:10:35 AM CST
Build Host  : buildvm-10.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://fedorahosted.org/sssd/

Name        : python3
Version     : 3.4.3
Release     : 5.fc23
Architecture: x86_64
Install Date: Sun 10 Jan 2016 02:39:05 AM CST
Group       : Development/Languages
Size        : 36241
License     : Python
Signature   : RSA/SHA256, Mon 29 Jun 2015 10:23:56 AM CDT, Key ID
32474cf834ec9cba
Source RPM  : python3-3.4.3-5.fc23.src.rpm
Build Date  : Mon 29 Jun 2015 08:15:25 AM CDT
Build Host  : buildhw-08.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.python.org/

Fields changed

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
mark: no => 0
owner: somebody => lslebodn
review: True => 0
selected: =>
status: new => assigned
testsupdated: => 0

Fields changed

patch: 0 => 1

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.13.4

master:

sssd-1-13:

resolution: => fixed
status: assigned => closed

Metadata Update from @lslebodn:
- Issue assigned to lslebodn
- Issue set to the milestone: SSSD 1.13.4

2 years ago

Login to comment on this ticket.

Metadata