So… I saw all the documentation posted by @speedy, tried them all, but my Spark clients still can’t connect.
Openfire is setup correctly, I can log in without SSO using LDAP. With SSO enabled I get the following error in Spark:
org.jivesoftware.smack.sasl.SASLErrorException: SASLError using GSSAPI: not-authorized
at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthentication.java:365)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1052)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971)
at java.lang.Thread.run(Unknown Source)
Is working, opening tickets. I should point alt I already tried with the princple name being XMPP/chat.rede.uniforteam.com.br which is the FQDN of the server.
SRV and PTR records are pointing to the server, KRB and GSS files are setup properly given the amount of threads I read. Regedit key is also set.
Yep, I saw the video, tutorial for Windows 2008, 2012, and so on…
I’m attaching my gss.conf and krb5.ini files. This are the commands I used to set SPN and generate the current keytab:
>>>>>>Keytab
PS C:\Program Files\Java\jre1.8.0_171\bin> .\ktab.exe -k "C:\Program Files\Openfire\resources\xmpp.keytab" -a XMPP/chat.rede.uniforteam.com.br
Password for XMPP/chat.rede.uniforteam.com.br@REDE.UNIFORTEAM.COM.BR:*****
Done!
Service key for XMPP/chat.rede.uniforteam.com.br is saved in C:\Program Files\Openfire\resources\xmpp.keytab
have your tried recreating the keytab using the windows tool and not the java tool? Ive had problems with the java tool in the pass, which i why my docs suggest using the windows one. here is a sample of the command
Okay… I’ve setup Openfire 4.2.3 on a CentOS 7.4 VM, used the bundled JRE, followed this:
The only part I didn’t follow was editing the Keytab since all principles there are the xmpp ones I need.
Same error on Spark:
org.jivesoftware.smack.sasl.SASLErrorException: SASLError using GSSAPI: not-authorized
at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthentication.java:365)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1052)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971)
at java.lang.Thread.run(Unknown Source)
SSO and Openfire are illusions, that’s what I’m getting, most thread either die off or people claim having the solution but don’t explain what they’ve done.
I have been able to get sso to work multiple times .i promise you, it is no myth. But your environment may be very different from the ones I have set up. I’m currently on vacation, and traveling so my availability is very limited until June 11. I’m happy to do a webex with you to see if I can at least see whats going on.