<div dir="ltr">On 12 February 2018 at 23:34, Ben Woods <span dir="ltr"><<a href="mailto:woodsb02@gmail.com" target="_blank">woodsb02@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<br><br>I have a repeatable core dump when running dovecot on FreeBSD in the specific scenario described below.<br><br>Dovecot is linked against MIT kerberos in /usr/local/lib/, whilst PAM is linked against Heimdal in /usr/lib/.<br>My expectation was that dovecot authentication using GSSAPI would use MIT kerberos in /usr/local/lib, whereas PAM authentication is independent from dovecot and would therefore use Herimdal in /usr/lib/.<br><br>What actually seems to occur during PAM authentication is the Heimdal code in /usr/lib/ is initially being used, but part way through it switches to using the MIT kerberos code in /usr/local/lib/.<br><br>I have reported this bug on the FreeBSD bug tracker here:<br><a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225818" target="_blank">https://bugs.freebsd.org/<wbr>bugzilla/show_bug.cgi?id=<wbr>225818</a><br><br>Any help troubleshooting this issue would be much appreciated. I suspect it has something to do with the CFLAGS and LDFLAGS being used during the build, so I have attached the build log to the FreeBSD bug report.<br><br>Thanks in advance,<br>Ben<br></div></blockquote><div><br></div><div><br>Hi everyone,<br></div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Can anyone recommend a way to fix the dovecot build process so that the dovecot code for PAM authentication is not dynamically linked to the kerberos libraries?<br><br></div><div class="gmail_extra">The issue appears to be that a single dovecot library is created for all authentication mechanisms (<a href="http://libauth.la">libauth.la</a>), so whilst the PAM authentication code does not need to link to the kerberos libraries, the GSSAPI authentication code does.<br><br></div><div class="gmail_extra">This results in dovecot being linked to the MIT kerberos libraries, whilst my PAM is linked to the Heimdal kerberos libraries. Therefore, when dovecot runs PAM, both the MIT and Heimdal libraries are loaded at the same time.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">Ben<br clear="all"></div><div class="gmail_extra"><div><div class="gmail_signature"><br>--<br>From: Benjamin Woods<br><a href="mailto:woodsb02@gmail.com" target="_blank">woodsb02@gmail.com</a> <br></div></div></div></div></div></div></div>