Remko van der Vossen writes:
Hello,I am experiencing some troubles in getting courier-authlib and courier-imap running successfully. When I presently try to log into the imap server using thunderbird (using basic passwd authentication) the authdaemond child process dies with a segfault as can be seen in the below logging: Aug 13 14:53:20 [imapd] LOGIN FAILED, user=revossen, ip=[172.19.201.250] Aug 13 14:53:20 [imapd] authentication error: Input/output errorAug 13 14:53:20 [kernel] authdaemond[16376]: segfault at 0 ip 00007fee7cdc55ca sp 00007fff452fba38 error 4 in libc-2.17.so[7fee7cd42000+169000]I attached a gdb to a running child instance and received the following backtrace when the segfault happened: Program received signal SIGSEGV, Segmentation fault. 0x00007f0ac01d25ca in strcmp () from /lib/libc.so.6 (gdb) bt #0 0x00007f0ac01d25ca in strcmp () from /lib/libc.so.6#1 0x00007f0abfb42e29 in do_authcheckpassword () from /usr/lib/courier- authlib/libcourierauthcommon.so
What platform is this. Looks like something that's fairly old, if it's using the pwd module. Most modern platforms should be using PAM now.
Looks like your platform's crypt() is returning NULL, that's the only path from do_authcheckpassword() into strcmp(). Most likely you got a no-op stub for your crypt(), and you will need some special linking flags to get the real crypt() linked with the code. That's something that you'll need to figure out.
But, if you're running something that's dated this century, you ended up with the wrong module altogether, you should've had authpam installed and running, instead. You probably did not have PAM development files installed when you built courier-authlib, so the PAM module did not get built, and you went to authpwd as a fallback. Install PAM development files, and rebuild courier-authlib.
pgpWdjoAKtuxF.pgp
Description: PGP signature
------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users