From: Florian V. <flo...@un...> - 2003-10-17 16:28:59
|
________________________________________ \| Sergey Matveychuk <se...@ci...> ha scrit=20 | in/als Fri, 17 Oct 2003 00:04:13 +0400 il seguaint: |Florian Verdet wrote: |> |> If you want to do some work/support, download the work I've done |> |> and test it - I'm missing feedback until now :-/ |> | |> |OK, I'll do. | |Well, I did. I've cvs'ed your version, hack it a little for OpenPAM and=20 |build. And I've got a strange problem I haven't with 0.5 version. | |When I tried to login I got a message: |login: in open_load_module(): no pam_mysql.so found |kernel: pid NNN (login), uid 0: exited on signal 10 (core dumped) | |I have no idea why it happened. When I change pam_mysql.so with the same= =20 |file from 5.0 version I login successful. | I've no idea what went wrong... I'm using (Linux-)PAM as shipped with Mdk90 (I'll have 9.2 in a few days). I've no experience(s) with OpenPAM... (this could change :o] ) (I also had a similar error, but it was because I used a (double) symbolic link to reflect the actual devel lib - I got this error, if the link was ba= d). A) Check if you have really my version (I think yes, due to the cvs-connects in the logfiles) - do you have ~10 C source files and some headers. B) i) If you exchanged the 'pam_mysql.so' in the same place, check the permissions (we never know...) ii) Looking at a sample OpenPAM module (shipped with its source) : Did you add something like --- #ifdef PAM_MODULE_ENTRY PAM_MODULE_ENTRY("pam_mysql"); #endif --- (or without #ifdef) to the end of 'pam_mysql.c' ?? iii) What size does your 'pam_mysql.so' have ? (mine has 50'491 B (~50kB) - it gives a rough idea if everything=20 is linked in...) iv) Do you use dynamic linking ? Do you use static linking ? (I tested with dynamic - The Makefile surely has errors for static one) v) I think you know (/already hacked), that only Linux-PAM modules can #include <security/pam_misc.h> which in turn, includes <security/_pam_macros.h> (the 'D(())' debugging function is defined there). vi) Are there any 'not found's in the output of=20 $ ldd pam_mysql.so C) You could try enabeling OpenPAM's debugging... This would say you if it checks the (OpenPAM) modules-cache, if it checks= =20 for a dynamic and then for a static module=20 (openpam-20030715/lib/openpam_load.c:66ff) D) Oh, yes... did you try specifying the whole path (from root '/') ? That's all I can suggest for now... Until next time ! sal=FCds, _________=20 Florian Verdet GnuPG: fvg.zapto.org/informatica/gpg.php . |