Hello,

I belong to the LemonLDAP::NG[1] community, which open source software is
a websso for Apache using mod_perl and of course Net::LDAP (we are doing
authentication and authorization trough LDAP).

I recently added the password policy support to our authentication portal,
so a user can know if its account is locked or its password expired.

The problem is that it only works if we have perl-ldap >= 0.35, and the
major Linux distributions still provide perl-ldap 0.34.

So we protect calls to password policy module with eval functions, and we
face a problem when exporting the constants. The source code is:
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/lemonldap/trunk/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthLDAP.pm?rev=333&view=markup

The pb is exporting constants is done when compiling, and not when running
the code. So in the actual code, the constants are not exported (we need
to remove the eval or use {} around eval arguments). But this will raise
errors for people with perl-ldap library <= 0.34.

Did you have any suggestions to resolve this pb?

Thanks for your help!

Clement OUDOT.

[1] http://wiki.lemonldap.objectweb.org/xwiki/bin/view/NG/Presentation

Reply via email to