With a little side of applesauce...

Thursday, February 1, 2007

Apache::AuthNetLDAP failure when using stunnel

Some AuthNetLDAP users prefer stunnel to the built-in TLS/SSL connections. In these cases, it may be very difficult to troubleshoot authentication problems, as this is the only entry you will find in the error_log:

[Tue Jun 6 08:36:34 2006] [error] Can’t call method “bind” on an undefined value at /usr/local/share/perl/5.8.4/Apache/AuthNetLDAP.pm line 93, line 225.\n

If you are using stunnel4, and have something similar to this for your configuration:

PerlSetVar BindDN “uid=user,ou=example,o=com”
PerlSetVar BindPWD “password”
PerlSetVar BaseDN “ou=example,o=com”
PerlSetVar LDAPServer localhost
PerlSetVar LDAPPort 389
PerlSetVar UIDAttr uid
PerlAuthenHandler Apache::AuthNetLDAP
PerlSetVar Decline yes
PerlSetVar AllowAlternateAuth yes

PerlAuthenHandler Apache::AuthNetLDAP


It probably means that stunnel is down. Check to see if it is, and if not, restart the daemon…

No comments: