Actually I retract what I said about IPA being fully functional, not everything is
functional after I double checked (strange that some commands worked after upgrade
before).
Anything I type in command line now reproduces the same output. This might give some clues
maybe:
ipa: ERROR: Insufficient access: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS
failure. Minor code may provide more information (Credential cache is empty)
-----Original Message-----
From: Stefan Uygur via FreeIPA-users [mailto:freeipa-users@lists.fedorahosted.org]
Sent: 18 August 2017 11:35
To: Alexander Bokovoy; FreeIPA users list
Cc: Troels Hansen; Fraser Tweedale; Stefan Uygur
Subject: [Freeipa-users] Re: web UI - login failed after updates on server
I have reproduced what you requested below. Each line where you see Client connected is my
attempt to login via web UI.
As you can see there are no issues, at least from what I read/see. Just to repeat what I
said at the beginning of my post, the IPA itself is fully functional, it is the web part
that is not working. I can do all operation normally via the command line on the shell
side.
-- Logs begin at Thu 2017-08-17 14:26:42 UTC, end at Fri 2017-08-18 10:28:06 UTC. -- Aug
17 14:26:47
ipa.example.com systemd[1]: Starting GSSAPI Proxy Daemon...
Aug 17 14:26:47
ipa.example.com systemd[1]: Started GSSAPI Proxy Daemon.
Aug 18 10:26:54
ipa.example.com systemd[1]: Stopping GSSAPI Proxy Daemon...
Aug 18 10:26:54
ipa.example.com systemd[1]: Starting GSSAPI Proxy Daemon...
Aug 18 10:26:54
ipa.example.com gssproxy[19280]: [2017/08/18 10:26:54]: Debug Enabled
(level: 2) Aug 18 10:26:54
ipa.example.com gssproxy[19280]: [2017/08/18 10:26:54]: Problem
with kernel communication! NFS Aug 18 10:26:54
ipa.example.com gssproxy[19280]:
[2017/08/18 10:26:54]: Client connected (fd = 10)[2017/08/18 1 Aug 18 10:26:54
ipa.example.com systemd[1]: Started GSSAPI Proxy Daemon.
Aug 18 10:27:45
ipa.example.com gssproxy[19280]: [2017/08/18 10:27:45]: Client connected
(fd = 11)[2017/08/18 1 Aug 18 10:27:45
ipa.example.com gssproxy[19280]: [2017/08/18
10:27:45]: gp_rpc_execute: executing 6 (GSSX_ACQUI Aug 18 10:27:45
ipa.example.com
gssproxy[19280]: GSSX_ARG_ACQUIRE_CRED( call_ctx: { "" [ ] } input_cred_handle
Aug 18 10:27:45
ipa.example.com gssproxy[19280]: GSSX_RES_ACQUIRE_CRED( status: { 0 { 1 2
840 113554 1 2 2 } 0 Aug 18 10:27:45
ipa.example.com gssproxy[19280]: [2017/08/18
10:27:45]: gp_rpc_execute: executing 6 (GSSX_ACQUI Aug 18 10:27:45
ipa.example.com
gssproxy[19280]: GSSX_ARG_ACQUIRE_CRED( call_ctx: { "" [ ] } input_cred_handle
Aug 18 10:27:45
ipa.example.com gssproxy[19280]: GSSX_RES_ACQUIRE_CRED( status: { 0 { 1 2
840 113554 1 2 2 } 0 Aug 18 10:28:06
ipa.example.com gssproxy[19280]: [2017/08/18
10:28:06]: Client connected (fd = 11)[2017/08/18 1 Aug 18 10:28:06
ipa.example.com
gssproxy[19280]: [2017/08/18 10:28:06]: gp_rpc_execute: executing 6 (GSSX_ACQUI Aug 18
10:28:06
ipa.example.com gssproxy[19280]: GSSX_ARG_ACQUIRE_CRED( call_ctx: { ""
[ ] } input_cred_handle Aug 18 10:28:06
ipa.example.com gssproxy[19280]:
GSSX_RES_ACQUIRE_CRED( status: { 0 { 1 2 840 113554 1 2 2 } 0 Aug 18 10:28:06
ipa.example.com gssproxy[19280]: [2017/08/18 10:28:06]: gp_rpc_execute: executing 6
(GSSX_ACQUI Aug 18 10:28:06
ipa.example.com gssproxy[19280]: GSSX_ARG_ACQUIRE_CRED(
call_ctx: { "" [ ] } input_cred_handle Aug 18 10:28:06
ipa.example.com
gssproxy[19280]: GSSX_RES_ACQUIRE_CRED( status: { 0 { 1 2 840 113554 1 2 2 } 0 Aug 18
10:28:06
ipa.example.com gssproxy[19280]: [2017/08/18 10:28:06]: gp_rpc_execute: executing
9 (GSSX_ACCEP Aug 18 10:28:06
ipa.example.com gssproxy[19280]:
GSSX_ARG_ACCEPT_SEC_CONTEXT( call_ctx: { "" [ ] } context_han Aug 18 10:28:06
ipa.example.com gssproxy[19280]: GSSX_RES_ACCEPT_SEC_CONTEXT( status: { 0 { 1 2 840 113554
1 2 Aug 18 10:30:02
ipa.example.com gssproxy[19280]: [2017/08/18 10:30:02]: Client
connected (fd = 12)[2017/08/18 1 Aug 18 10:30:02
ipa.example.com gssproxy[19280]:
[2017/08/18 10:30:02]: gp_rpc_execute: executing 6 (GSSX_ACQUI Aug 18 10:30:02
ipa.example.com gssproxy[19280]: GSSX_ARG_ACQUIRE_CRED( call_ctx: { "" [ ] }
input_cred_handle Aug 18 10:30:02
ipa.example.com gssproxy[19280]: GSSX_RES_ACQUIRE_CRED(
status: { 0 { 1 2 840 113554 1 2 2 } 0 Aug 18 10:30:02
ipa.example.com gssproxy[19280]:
[2017/08/18 10:30:02]: gp_rpc_execute: executing 6 (GSSX_ACQUI Aug 18 10:30:02
ipa.example.com gssproxy[19280]: GSSX_ARG_ACQUIRE_CRED( call_ctx: { "" [ ] }
input_cred_handle Aug 18 10:30:02
ipa.example.com gssproxy[19280]: GSSX_RES_ACQUIRE_CRED(
status: { 0 { 1 2 840 113554 1 2 2 } 0 Aug 18 10:30:02
ipa.example.com gssproxy[19280]:
[2017/08/18 10:30:02]: gp_rpc_execute: executing 9 (GSSX_ACCEP Aug 18 10:30:02
ipa.example.com gssproxy[19280]: GSSX_ARG_ACCEPT_SEC_CONTEXT( call_ctx: { "" [
] } context_han Aug 18 10:30:02
ipa.example.com gssproxy[19280]:
GSSX_RES_ACCEPT_SEC_CONTEXT( status: { 0 { 1 2 840 113554 1 2 lines 1-36/36 (END)
RPMs:
krb5-libs-1.15.1-8.el7.x86_64
krb5-libs-1.14.1-27.el7_3.x86_64
cyrus-sasl-md5-2.1.26-21.el7.x86_64
cyrus-sasl-lib-2.1.26-21.el7.x86_64
cyrus-sasl-lib-2.1.26-20.el7_2.x86_64
cyrus-sasl-gssapi-2.1.26-20.el7_2.x86_64
cyrus-sasl-2.1.26-21.el7.x86_64
cyrus-sasl-plain-2.1.26-21.el7.x86_64
cyrus-sasl-gssapi-2.1.26-21.el7.x86_64
cyrus-sasl-md5-2.1.26-20.el7_2.x86_64
-----Original Message-----
From: Alexander Bokovoy [mailto:abokovoy@redhat.com]
Sent: 18 August 2017 11:24
To: FreeIPA users list
Cc: Troels Hansen; Fraser Tweedale; Stefan Uygur
Subject: Re: [Freeipa-users] Re: web UI - login failed after updates on server
On pe, 18 elo 2017, Stefan Uygur via FreeIPA-users wrote:
Your assumptions is correct Alexander, I did accept the server cert
otherwise the browser won't open the login page at all. Beside, that
log was there even before when it was working...before the update.
Re to gssproxy, all my attempts were also followed by a full server
reboot.
I will take a look at your article but I can certainly confirm the
issue is upgrade related. I am not the only one who is experiencing
this from what I read on internet.
If you can produce a set of logs (error_log, gssproxy) for an attempt to connect,
we can look at them. gssproxy logs are important now to see what's wrong in your
case.
Also please provide list of rpm with their versions for krb5-libs, freeipa,
cyrus-sasl-*.
Thanks
-----Original Message-----
From: Alexander Bokovoy [mailto:abokovoy@redhat.com]
Sent: 18 August 2017 10:53
To: FreeIPA users list
Cc: Fraser Tweedale; Troels Hansen; Stefan Uygur
Subject: Re: [Freeipa-users] Re: web UI - login failed after updates on
server
On pe, 18 elo 2017, Stefan Uygur via FreeIPA-users wrote:
>Hi Fraser,
>Thanks for the tips.
>
>I did put SELinux in permissive mode and of course I have restarted
>the IPA after that to makes sure the new setting picked up by IPA.
>
>All certs including CA sanitized and they are correct with the trust
>flags, so it is not matter with certs either. I read about the
>SubjAltName warning and indeed I was ignoring that part.
>
>I have raised the case with RedHat but no joy with them either.
>Usually the community is the best way to solve this sort of issues as
>I never have had good experience with redhat support to be honest.
>
>So if anyone else has further suggestions pls fire up.
Your httpd's error_log says your _client_ does not trust the certificate. Can you
check the client browser actually trusts your CA?
I assume you did accept the server cert trust when Firefox or Chrome asked you, did you?
At least in Fedora and RHEL we configure Firefox to only allow GSSAPI negotiate over
https:// links with trusted certificates.
Another component to look at is gssproxy. You might want to restart gssproxy too when you
restarted IPA.
I have written an article how to debug FreeIPA 4.5.0:
https://vda.li/en/docs/freeipa-debug-privsep/
>
>Thanks a lot.
>
>Stefan
>
>-----Original Message-----
>From: Fraser Tweedale [mailto:ftweedal@redhat.com]
>Sent: 18 August 2017 08:32
>To: Stefan Uygur
>Cc: FreeIPA users list; Troels Hansen
>Subject: Re: [Freeipa-users] Re: web UI - login failed after updates
>on server
>
>On Fri, Aug 18, 2017 at 05:28:12PM +1000, Fraser Tweedale wrote:
>> Hi Stefan et al,
>>
>> It's hard to work out exactly what's going on.
>>
>> First make sure that all certificates including the IPA CA
>> certificate are within their validity period. Make sure that CA
>> certificate(s) have the correct trust flags in the /etc/httpd/alias
>> NSSDB:
>>
>> certutil -d /etc/httpd/alias -L
>>
>> Check /var/log/ipaupgrade.log for any errors that may have occurred
>> during upgrade.
>>
>> If you put SELinux into permissive mode, do run `ipactl restart`
>> afterwards, before attempting to log in.
>>
>> Finally, the log message:
>>
>> /usr/lib/python2.7/site-packages/urllib3/connection.py:251: SecurityWarning:
>> Certificate has no `subjectAltName`, falling back to check for a `commonName`
>> for now. This feature is being removed by major browsers and deprecated by
RFC
>> 2818. (See
https://github.com/shazow/urllib3/issues/497 for
>> details.)
>>
>> ... is not the cause, and can be ignored for the purposes of
>> diagnosing the current problem.
>>
>> Cheers,
>> Fraser
>>
>One more thing; one the affected master try putting `debug = True` in
/etc/ipa/default.conf and restarting FreeIPA. You will get a lot more debug output in the
httpd logs which could help narrow down the problem.
>
>>
>>
>> On Fri, Aug 18, 2017 at 08:16:19AM +0200, Troels Hansen via FreeIPA-users
wrote:
>> > Hi Jason
>> >
>> > You aren't the only one having weird problems after updating to
>> > IPA
>> > 4.5 on RHEL 7.4 We are also facing problems accessing the web-ui and having
a support case open with Red Hat and can see from the linked (private) Red Hat bugzilla
that others are facing the same or other problems.
>> >
>> > My best shot would be to raise the issue with Red Hat. After all,
>> > that what you pay them for :-) Also, for Red Hat to get a full picture of
the problems I guess it they need all the corner-cases...
>> >
>> > ----- On Aug 17, 2017, at 6:12 PM, Stefan Uygur via FreeIPA-users
<freeipa-users(a)lists.fedorahosted.org> wrote:
>> >
>> > > Hi Jason,
>> >
>> > > Thanks for the reply, but I did try that already, setting
>> > > selinux in permissive mode rather than enforcing and it didn’t help.
>> >
>> > > However, I didn’t see anything in audit logs that would indicate
>> > > selinux as culprit.
>> >
>> > > I just tried one more time right now with no joy, exact same result.
>> >
>> > > Stefan
>> >
>> > > From: Jason Sherrill via FreeIPA-users
>> > > [mailto:freeipa-users@lists.fedorahosted.org]
>> > > Sent: 17 August 2017 17:07
>> > > To: FreeIPA users list
>> > > Cc: Jason Sherrill
>> > > Subject: [Freeipa-users] Re: web UI - login failed after updates
>> > > on server
>> >
>> > > Stefan,
>> >
>> > > I resolved a similar issue on a Fedora host by setting selinux
>> > > to permissive instead of enforcing. The setting is located in
>> >
>> > > /etc/selinux/config
>> >
>> > > On Thu, Aug 17, 2017 at 10:37 AM, Stefan Uygur via FreeIPA-users
>> > > < freeipa-users(a)lists.fedorahosted.org > wrote:
>> >
>> > > Hi everyone,
>> >
>> > > I have an IPA instance installed and working for the last 6
>> > > months but after the patching yesterday the Web UI login has stopped to
work.
>> >
>> > > To be clear the IPA server is fully functional at the backend,
>> > > the problem is when I try to login via web UI I get the following
error:
>> >
>> > > Login failed due to an unknown reason.
>> >
>> > > The server is a Red Hat Enterprise Linux Server release 7.4
>> > > (Maipo) with the IPA
>> > > VERSION: 4.5.0, API_VERSION: 2.228
>> >
>> > > Furthermore, this is what I get from apache error logs while
>> > > trying to login using web UI:
>> >
>> > > [Thu Aug 17 11:58:40.727456 2017] [:error] [pid 20879] ipa: INFO:
>> > > *** PROCESS START ***
>> >
>> > > [Thu Aug 17 11:58:40.911349 2017] [:error] [pid 20878] ipa: INFO:
>> > > *** PROCESS START ***
>> >
>> > > [Thu Aug 17 11:58:57.224594 2017] [auth_gssapi:error] [pid
>> > > 20884] [client IPADDR:54323] NO AUTH DATA Client did not send
>> > > any authentication headers,
>> > > referer: https://-ipa1.example.com/ipa/ui/
>> >
>> > > [Thu Aug 17 11:58:57.266259 2017] [auth_gssapi:error] [pid
>> > > 20884] [client IPADDR:54323] GSS ERROR In Negotiate Auth:
>> > > gss_accept_sec_context() failed: [An unsupported mechanism was
requested (Unknown error)], referer:
>> > >
https://ipa1.example.com/ipa/ui/
>> >
>> > > /usr/lib/python2.7/site-packages/urllib3/connection.py:251:
SecurityWarning:
>> > > Certificate has no `subjectAltName`, falling back to check for a
>> > > `commonName` for now. This feature is being removed by major
>> > > browsers and deprecated by RFC 2818. (See
>> > >
https://github.com/shazow/urllib3/issues/497 for details.)
>> >
>> > > SecurityWarning
>> >
>> > > [Thu Aug 17 11:59:03.637157 2017] [:error] [pid 20878] ipa: INFO: 404
Not Found:
>> > > URL="/ipa/session/cookie", URL fragment
"/session/cookie" does
>> > > not have a handler
>> >
>> > > [Thu Aug 17 11:59:03.638346 2017] [:error] [pid 20879] ipa: INFO:
>> > > 401
>> > > Unauthorized: No session cookie found
>> >
>> > > [Thu Aug 17 12:00:01.567042 2017] [:error] [pid 20882] SSL
>> > > Library
>> > > Error: -12195 Peer does not recognize and trust the CA that
>> > > issued your certificate
>> >
>> > > [Thu Aug 17 12:00:01.617683 2017] [:error] [pid 21225] SSL
>> > > Library
>> > > Error: -12195 Peer does not recognize and trust the CA that
>> > > issued your certificate
>> >
>> > > [Thu Aug 17 12:00:09.967173 2017] [auth_gssapi:error] [pid
>> > > 20881] [client IPADDR:54377] NO AUTH DATA Client did not send
>> > > any authentication headers,
>> > > referer: https://-ipa1.example.com/ipa/ui/
>> >
>> > > /usr/lib/python2.7/site-packages/urllib3/connection.py:251:
SecurityWarning:
>> > > Certificate has no `subjectAltName`, falling back to check for a
>> > > `commonName` for now. This feature is being removed by major
>> > > browsers and deprecated by RFC 2818. (See
>> > >
https://github.com/shazow/urllib3/issues/497 for details.)
>> >
>> > > SecurityWarning
>> >
>> > > [Thu Aug 17 12:00:17.495782 2017] [:error] [pid 20879] ipa: INFO: 404
Not Found:
>> > > URL="/ipa/session/cookie", URL fragment
"/session/cookie" does
>> > > not have a handler
>> >
>> > > [Thu Aug 17 12:00:17.497067 2017] [:error] [pid 20878] ipa: INFO:
>> > > 401
>> > > Unauthorized: No session cookie found
>> >
>> > > I know it is complaining about the new mod_gssapi but never seen
>> > > this sort of problem before on IPA.
>> >
>> > > Any help would be greatly appreciated.
>> >
>> > > Stefan
>> >
>> > > __________________________________________ __________ Stefan
>> > > Uygur
>> > > | First Derivatives Ireland Ltd | +353 16307761 |
>> > > suygur(a)firstderivatives.com
>> >
>> > > ****************************************************************
>> > > *
>> > > *
>> > > *************************************************************
>> >
>> > > This email, its contents and any files attached are a
>> > > confidential communication and are intended only for the named
addressees indicated in the message.
>> >
>> > > If you are not the named addressee or if you have received this
>> > > email in error, you may not, without the consent of First
>> > > Derivatives, copy, use or rely on any information or attachments
>> > > in any way. Please notify the sender by return email and delete it from
your email system.
>> >
>> > > Unless separately agreed, First Derivatives does not accept any
>> > > responsibility for the accuracy or completeness of the contents
>> > > of this email or its attachments. Please note that any views,
>> > > opinion or advice contained in this communication are those of
>> > > the sending individual and not those of First Derivatives and
>> > > First Derivatives shall have no liability whatsoever in relation to
this communication (or its content) unless separately agreed.
>> >
>> > > ****************************************************************
>> > > *
>> > > *
>> > > *************************************************************
>> >
>> > > ****************************************************************
>> > > *
>> > > *
>> > > *************************************************************
>> >
>> > > This email, its contents and any files attached are a
>> > > confidential communication and are intended only for the named
addressees indicated in the message.
>> >
>> > > If you are not the named addressee or if you have received this
>> > > email in error, you may not, without the consent of First
>> > > Derivatives, copy, use or rely on any information or attachments
>> > > in any way. Please notify the sender by return email and delete it from
your email system.
>> >
>> > > Unless separately agreed, First Derivatives does not accept any
>> > > responsibility for the accuracy or completeness of the contents
>> > > of this email or its attachments. Please note that any views,
>> > > opinion or advice contained in this communication are those of
>> > > the sending individual and not those of First Derivatives and
>> > > First Derivatives shall have no liability whatsoever in relation to
this communication (or its content) unless separately agreed.
>> >
>> > > ****************************************************************
>> > > *
>> > > *
>> > > *************************************************************
>> >
>> > > _______________________________________________
>> > > FreeIPA-users mailing list --
>> > > freeipa-users(a)lists.fedorahosted.org
>> > > To unsubscribe send an email to
>> > > freeipa-users-leave(a)lists.fedorahosted.org
>> >
>> > > --
>> >
>> > > Jason Sherrill
>> >
>> > > IT Specialist
>> >
>> > > Deeplocal Inc.
>> >
>> > > mobile: 412-636-2073
>> >
>> > > office: 412-362-0201
>> >
>> > > _______________________________________________
>> > > FreeIPA-users mailing list --
>> > > freeipa-users(a)lists.fedorahosted.org
>> > > To unsubscribe send an email to
>> > > freeipa-users-leave(a)lists.fedorahosted.org
>> >
>> > --
>> >
>> > Med venlig hilsen
>> >
>> > Troels Hansen
>> >
>> > Systemkonsulent
>> >
>> > Casalogic A/S
>> >
>> > T (+45) 70 20 10 63
>> >
>> > M (+45) 22 43 71 57
>> >
>> > Red Hat, SUSE, VMware, Citrix, Novell, Yellowfin BI, EnterpriseDB, Sophos og
meget mere.
>>
>> > _______________________________________________
>> > FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
>> > To unsubscribe send an email to
>> > freeipa-users-leave(a)lists.fedorahosted.org
>>
>_______________________________________________
>FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
>To unsubscribe send an email to
>freeipa-users-leave(a)lists.fedorahosted.org
--
/ Alexander Bokovoy
_______________________________________________
FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
To unsubscribe send an email to
freeipa-users-leave(a)lists.fedorahosted.org
--
/ Alexander Bokovoy
_______________________________________________
FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave(a)lists.fedorahosted.org