<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I've been struggling to set up audisp-remote with krb5 enabled, and also struggling to find much information/guidance regarding it.</div><div><br></div><div>I'm trying to get this working on RHEL7 due to organizational requirements.  Based on the man pages, I created a key file on the server:</div><div><br></div><div>addprinc -randkey auditd/<a href="http://server.example.com">server.example.com</a><br>ktadd -k /home/me/audit.key auditd/<a href="http://server.example.com">server.example.com</a></div><div><br></div><div>then placed this (root:root 0400) in /etc/audit and set the following:</div><div><br></div><div>enable_krb5 = yes<br>krb5_principal = auditd<br>krb5_key_file = /etc/audit/audit.key<br></div><div><br></div><div>For the client:</div><div><br></div><div>addprinc -randkey auditd/<a href="http://client.example.com">client.example.com</a><br>ktadd -k /home/me/audisp-remote.key auditd/<a href="http://client.example.com">client.example.com</a><br><br></div><div>then placed this (root:root 0400) in /etc/audisp and set the following:<br><br>enable_krb5 = yes<br>krb5_principal = auditd/<a href="http://server.example.com">server.example.com</a><br>krb5_client_name = auditd<br>krb5_key_file = /etc/audisp/audisp-remote.key<br><br></div><div>I'm getting this message over and over again on the client:<br><br>Apr 17 08:21:07 client audisp-remote: GSS error: initializing context: Success<br>Apr 17 08:21:07 client audisp-remote: kerberos principal: auditd/<a href="mailto:client.example.com@REALM.COM">client.example.com@REALM.COM</a><br>Apr 17 08:21:07 client audisp-remote: GSS error: initializing context: Invalid token was supplied</div><div><br></div><div>and this on the server:<br><br>Apr 17 08:56:53 server auditd[134051]: GSS-API error: event length excedes MAX_AUDIT_LENGTH<br>Apr 17 08:56:53 server auditd[134051]: TCP session from ::ffff:<client IP>:44354 will be closed, error ignored</div><div><br></div><div>(sorry about having to mask the actual hostnames/IPs/etc.)</div><div><br></div><div>Any idea what I'm doing wrong?  Based on what I've found online, it seems most people don't use krb5, but unfortunately I'm now required to try.  We've been using audisp for years, and it works fine with krb5 disabled.  I'm...pretty sure my Kerberos realm is fine, since that's what we use for authentication (gdm, SSH, etc.)  Though it is not the RHEL-provided Kerberos.<br><br></div><div>Any assistance would be greatly appreciated.</div><div><br></div><div>--Ray<br></div></div></div></div></div></div></div></div>