mod_ldap issue

Started by drkraftwerkian, April 25, 2012, 08:56:02 PM

Previous topic - Next topic

drkraftwerkian

Whenever I try to use mod_ldap and mod_authnz_ldap with forms-based authentication I get the following error:
[ldap:error] [pid 4020:tid 1120] (70023)This function has not been implemented on this platform

I have compiled Apache 2.4.2 on Redhat 5 using a build of latest openldap and my same config works fine (minus mod_session_crypto which doesn't work on redhat but your windows dist seems to have fixed) with an apacheds setup (on same windows host where my set up is at) so I don't think there's an issue with my config.  Here's the relevant section of my config, for your reference:

<Location /doldaplogin.html>
SetHandler form-login-handler
AuthFormLoginRequiredLocation /ldaploginfailed.html
AuthFormLoginSuccessLocation /success.html
AuthFormProvider ldap
AuthType form
AuthName realm
AuthLDAPUrl ldap://drkraftwerkian-lt:10389/ou=users,o=ztwholesalers?uid
AuthLDAPBindDN uid=admin,ou=system
AuthLDAPBindPassword welcome1
Session On
SessionCookieName session path=/
SessionCryptoPassphrase secret
</Location>
# AuthLDAPUrl ldap://host:port/basedn?attribute?scope?filter
# AuthLDAPUrl ldap://drkraftwerkian-lt:10389/cn=users,o=ztwholesalers?uid??(uniqueIdentifier=*)

# Additional stuff needed:
# Add in filter that looks exclusively for uniqueIdentifier value since we know that is a database user id.
# AuthLDAPUrl ldap://drkraftwerkian-lt:10389/o=ztwholesalers?uid??(uniqueIdentifier=*)

# Next 2 are needed since we don't allow anonymous bind:
# AuthLDAPBindDN distinguished-name
# AuthLDAPBindPassword password


<Directory "/Apache24/htdocs/formsecuredldap">
AuthFormLoginRequiredLocation /ldaplogin.html
AuthFormProvider ldap
AuthType form
AuthName realm
AuthLDAPUrl ldap://drkraftwerkian-lt:10389/ou=users,o=ztwholesalers?uid
AuthLDAPBindDN uid=admin,ou=system
AuthLDAPBindPassword welcome1
Session On
SessionCookieName session path=/
SessionCryptoPassphrase secret
Require valid-user
</Directory>
# Must expose ldap auth by uncommenting LoadModule authnz_ldap_module modules/mod_authnz_ldap.so  AND  LoadModule ldap_module modules/mod_ldap.so

Gregg

This function has not been implemented on this platform is an APR error.  What mod_ldap is using from APR that is not Windows friendly at this point I cannot say. I'll investigate.