The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: mod_ldap issue  (Read 3609 times)

drkraftwerkian

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
mod_ldap issue
« on: April 25, 2012, 08:56:02 PM »

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
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 843
Re: mod_ldap issue
« Reply #1 on: April 26, 2012, 01:55:04 AM »

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.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13