ldapdb_canonuser_plug_init invalid parameter supplied

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

 



Hello everyone!

I'm stuck in the problem that cyrus-sasl library doesn't recognize ldapdb auxprop plugin.

I have these packages installed on FreeBSD-10.3R:

# pkg info | grep sasl
cyrus-sasl-2.1.26_13
cyrus-sasl-ldapdb-2.1.26_5
cyrus-sasl-saslauthd-2.1.26_3
openldap-sasl-client-2.4.46
openldap-sasl-server-2.4.46_5

But pluginviewer only lists sasldb plugin, and not ldapdb:

# pluginviewer -a
Installed and properly configured auxprop mechanisms are:
sasldb
List of auxprop plugins follows
Plugin "sasldb" ,       API version: 8
        supports store: yes

And in logs i see this:

Oct 31 10:24:17 startsnto pluginviewer: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied Oct 31 10:24:17 startsnto pluginviewer: auxpropfunc error invalid parameter supplied Oct 31 10:24:17 startsnto pluginviewer: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied

In fact every sasl-linked program that run on system make such error message in logs (I have also nss_ldap configured, so every call to system functions about uid/gid is also produce this error):

ldapwhoami: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied chown: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied saslauthd[15698]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied

But what's more intriguing is that ldapdb plugin is actually working! cyrus-imapd successfully authorizing users with this config file:

sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: ldapdb
sasl_mech_list: cram-md5 digest-md5 plain login
sasl_ldapdb_uri: ldap://localhost/
sasl_ldapdb_id: cyradm
sasl_ldapdb_pw: somepassword
sasl_ldapdb_filter: (uid=%u)
sasl_ldapdb_canon_attr: mail

/usr/local/lib/sasl2# ls

Sendmail.conf libanonymous.so.3.0.0 libcrammd5.so.3.0.0 libdigestmd5.so.3.0.0 liblogin.a libntlm.a libotp.a libplain.a libsasldb.a libscram.a libanonymous.a libcrammd5.a libdigestmd5.a libldapdb.a liblogin.la libntlm.la libotp.la libplain.la libsasldb.la libscram.la libanonymous.la libcrammd5.la libdigestmd5.la libldapdb.so liblogin.so libntlm.so libotp.so libplain.so libsasldb.so libscram.so libanonymous.so libcrammd5.so libdigestmd5.so libldapdb.so.3 liblogin.so.3 libntlm.so.3 libotp.so.3 libplain.so.3 libsasldb.so.3 libscram.so.3 libanonymous.so.3 libcrammd5.so.3 libdigestmd5.so.3 libldapdb.so.3.0.0 liblogin.so.3.0.0 libntlm.so.3.0.0 libotp.so.3.0.0 libplain.so.3.0.0 libsasldb.so.3.0.0 libscram.so.3.0.0


--
Best regards
Alexander Lunev



[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux