pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

in openpam_dispatch(): pam_mysql.so: no pam_sm_authenticate()



Dear list readers and devels,


on a NetBSD 4.99.73 i try to use pam_mysql.so (from pkgsrc) with no luck. 

Authentication agains pam_mysql.o won't work. 

Is there anyone who is able to authenticate against pam_mysql.so under netbsd?


It seems there is any problem related to the netbsd implementation of pam 
(openpam) or the available security/pam-mysql pkgsrc package.

When i do testing PAM (saslauthd is using pam mech here) by:

~# testsaslauthd -s smtp -u aaaaa  -p bbbbb
0: OK "Success."
(OK comes by pam_unix.so, because user 'aaaaa' is in passwd)

I get a error like:
---
saslauthd[xyz]: in openpam_dispatch(): pam_mysql.so: no pam_sm_authenticate()
saslauthd[xyz]: in openpam_dispatch(): pam_mysql.so: no pam_sm_acct_mgmt()
---

here is my /etc/pam.d/smtp
---
auth                    required        pam_nologin.so          no_warn
auth                    required        pam_unix.so             no_warn 
try_first_pass nullok

auth                    optional         pam_mysql.so user=xxx passwd=yyyyy 
host=localhost db=mail table=accountuser usercolumn=username 
passwdcolumn=password crypt=1 ...

account         required        pam_unix.so
account         required        pam_mysql.so user=xxx passwd=yyyyy 
host=localhost db=mail table=accountuser usercolumn=username 
passwdcolumn=password crypt=1 ...
---

---
~# nm /usr/pkg/lib/security/pam_mysql.so
0000094b t .L12
0000099f t .L13
0000098a t .L14
00000975 t .L15
00000960 t .L16
00002064 A _DYNAMIC
0000215c a _GLOBAL_OFFSET_TABLE_
         w _Jv_RegisterClasses
00002054 d __CTOR_END__
00002050 d __CTOR_LIST__
0000205c d __DTOR_END__
00002058 d __DTOR_LIST__
00001020 r __EH_FRAME_BEGIN__
00001020 r __FRAME_END__
00002060 d __JCR_END__
00002060 d __JCR_LIST__
00002398 A __bss_start
         w __cxa_finalize
         w __deregister_frame_info
00000e40 t __do_global_ctors_aux
000007e0 t __do_global_dtors_aux
000021a0 d __dso_handle
         w __register_frame_info
00002398 A _edata
000023b4 A _end
00000e80 T _fini
00000730 T _init
         U calloc
00002398 b completed.3413
0000085c t frame_dummy
         U free
         U memcpy
0000239c b object.3471
000021c0 d options
000021a4 d p.3411
00002390 d pam_mysql_boolean_opt_accr
000008d8 t pam_mysql_boolean_opt_getter
00000b18 t pam_mysql_boolean_opt_setter
00002388 d pam_mysql_crypt_opt_accr
00000910 t pam_mysql_crypt_opt_getter
000009b4 t pam_mysql_crypt_opt_setter
00000ca4 T pam_mysql_find_option
00000cfc T pam_mysql_get_option
00000da0 T pam_mysql_set_option
00002380 d pam_mysql_string_opt_accr
000008bc t pam_mysql_string_opt_getter
00000bf0 t pam_mysql_string_opt_setter
         U strcasecmp
00000bb4 t strnncpy
         U syslog
---

---
/usr/pkg/lib/security/pam_mysql.so:
        -lc.12 => /usr/lib/libc.so.12
        -lcrypt.0 => /usr/lib/libcrypt.so.0
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lcrypto.4 => /usr/lib/libcrypto.so.4
        -lssl.6 => /usr/lib/libssl.so.6
        -lz.1 => /usr/pkg/lib/libz.so.1
        -lmysqlclient.15 => /usr/pkg/lib/mysql/libmysqlclient.so.15
---

Has anyone a idea or the same issue?

many thanks for any hint in advance.


cheers,


Niels.
-- 

---

  Niels Dettenbach
  ---
  Syndicat IT&Internet
  http://www.syndicat.com
  T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
  ---
  Kryptoinfo: 
  PGP public key ID 651CA20D
  Fingerprint: 55E0 4DCD B04C 4A49 1586  88AE 54DC 4465 651C A20D
  https://syndicat.com/pub_key.asc
  ---


Home | Main Index | Thread Index | Old Index