#6566 [py3] session cookie not found with py3
Closed: fixed 6 years ago Opened 7 years ago by mbasti.

with python3:

python3 /usr/bin/ipa -d ping

...
ipa: DEBUG: args=keyctl search @s user ipa_session_cookie:admin@EXAMPLE.COM
ipa: DEBUG: Process finished, return code=0
ipa: DEBUG: stdout=803825173

ipa: DEBUG: stderr=
ipa: DEBUG: Starting external process
ipa: DEBUG: args=keyctl pipe 803825173
ipa: DEBUG: Process finished, return code=0
ipa: DEBUG: stdout=ipa_session=1d10b48c7ae83958f00d37429fba0870; Domain=vm-126.example.com; Path=/ipa; Expires=Thu, 15 Dec 2016 17:50:30 GMT; Secure; HttpOnly
ipa: DEBUG: stderr=
ipa: DEBUG: failed to find session_cookie in persistent storage for principal 'admin@EXAMPLE.COM'  ** <---------- HERE
ipa: INFO: trying https://vm-126.example.com/ipa/json
ipa: DEBUG: Created connection context.rpcclient_139934574650144
ipa: DEBUG: raw: ping(version='2.217')
ipa: DEBUG: ping(version='2.217')

with python2:

python2 /usr/bin/ipa -d ping

...
ipa: DEBUG: args=keyctl search @s user ipa_session_cookie:admin@EXAMPLE.COM
ipa: DEBUG: Process finished, return code=0
ipa: DEBUG: stdout=803825173

ipa: DEBUG: stderr=
ipa: DEBUG: Starting external process
ipa: DEBUG: args=keyctl pipe 803825173
ipa: DEBUG: Process finished, return code=0
ipa: DEBUG: stdout=ipa_session=1d10b48c7ae83958f00d37429fba0870; Domain=vm-126.example.com; Path=/ipa; Expires=Thu, 15 Dec 2016 17:50:30 GMT; Secure; HttpOnly
ipa: DEBUG: stderr=
ipa: DEBUG: found session_cookie in persistent storage for principal 'admin@DOM-126.EXAMPLE.COM', cookie: 'ipa_session=1d10b48c7ae83958f00d37429fba0870; Domain=vm-126.example.com; Path=/ipa; Expires=Thu, 15 Dec 2016 17:50:30 GMT; Secure; HttpOnly'
ipa: DEBUG: setting session_cookie into context 'ipa_session=1d10b48c7ae83958f00d37429fba0870;'
ipa: INFO: trying https://vm-126.example.com/ipa/session/json
ipa: DEBUG: Created connection context.rpcclient_140093927625552
ipa: DEBUG: raw: ping(version=u'2.217')
ipa: DEBUG: ping(version=u'2.217')

mass moving python3 tickets to FreeIPA 4.6 which should be smaller release targeted mainly on python3 porting.

Metadata Update from @mbasti:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.6

7 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.1 (was: FreeIPA 4.6)

6 years ago

This was fixed as a part of the Python 3 support ticket (https://pagure.io/freeipa/issue/4985).

Metadata Update from @stlaz:
- Issue close_status updated to: None

6 years ago

Metadata Update from @stlaz:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata