Hi, been at this for over two weeks now and cannot get spark/openfire to work. I’ve tried every guide going on the internet and recreated the keytab file loads of times. Had plenty of errors when logging in but the error below is the most recent and the one I’ve had the most.
Domain: Sapphie. UK
DC: SID-DC01
Application: SID-FS
The Error:
WARNING: Exception in Login:
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)
I’m running Spark 2.8.3, openfire 4.2.3 I’ve tried downgrading the Java on both and also adding the java enhanced encryption files for version 8.
Below are my configs:
setspn -S XMPP/sid-fs.sapphire. UK keytab
ktab -k xmpp.keytab -a xmpp/sid.fs.sapphire. UK@SAPPHIRE. UK
ktpass -princ xmpp/sid-fs.sapphire. UK@SAPPHIRE. UK -mapuser keytab@sapphire. UK -crypto AES128-SHA1 -pass * -ptype KRB5_NT_PRINCIPAL -out c:\xmpp.keytab
User Accounts:
User Logon Name:
ldaplookup
User Logon Name (pre-Windows 2000):
ldaplookup
User Logon Name:
xmpp/sid-fs@sapphire. UK
User Logon Name (pre-Windows 2000):
keytab
Both user accounts have suppport for Kerberos AES 128bit and 256 bit encryption tick boxes ticked.
GSS.CONF:
com.sun.security.jgss.accept {
com.sun.security.auth.module.krb5LoginModule
required
storeKey=True
keyTab=“C:/Program Files/Openfire/resources/xmpp.keytab”
doNotPrompt=true
useKeyTab=true
realm=“SAPPHIRE. UK”
principal=“xmpp/sid-fs.sapphire. UK@SAPPHIRE. UK”
debug=true;
};
krb5.ini:
[libdefaults]
default_realm = SAPPHIRE. UK
udp_preference_limit = 1
default_tkt_enctypes = rc4-hmac des3-cbc-sha1 des-cbc-crc des-cbc-md5
default_tgs_enctypes = rc4-hmac des3-cbc-sha1 des-cbc-crc des-cbc-md5
permitted_enctypes = rc4-hmac des3-cbc-sha1 des-cbc-crc des-cbc-md5
allow_weak_crypto = true
[realms]
SAPPHIRE. UK = {
kdc = sid-dc01.sapphire. uk
admin_server = sid-dc01.sapphire. uk
default_domain = sapphire. uk
}
[domain_realms]
sapphire. UK = SAPPHIRE. UK
.sapphire. UK = SAPPHIRE. UK
openFire.xml:
<?xml version="1.0" encoding="UTF-8"?> 9090 9091 en true 5 org.jivesoftware.database.EmbeddedConnectionProvider GSSAPI SAPPHIRE. UK true C:/Program Files/Openfire/conf/gss.conf false trueDNS:
Reverse lookup
141.11.12.6 Pointer(PTR) sid-fs.sapphire. uk
141.11.12.6 Pointer(PTR) xmpp/sid-fs.sapphire. uk
xmpp/141.11.12.6 Host(A) 141.11.12.6
Forward lookup zone -
Sapphire. Uk
SID-FS Host(A) 141.11.12.6
SID-DC01 Host(A) 141.11.12.1
_tcp
_xmpp-client service location [0][0][5222] sid-fs.sapphire. uk
_xmpp-server service location [0][0][5269] sid-fs.sapphire. uk
I’ve added the registry pokes for allowing java and also the extra group policies for allowing the different encrytion types.
AllowTGTSessionkey DWORD = 1
Many thanks for any help someone can give and sorry if i’ve missed anything above