Hi Florian On 2013-08-01, at 8:29 AM, Florian Mirkes <[email protected]> wrote:
>> Any hints in the log file? Do you have an entry starting with >> "Searching for (mail=..."? > > Totally forgot to look at it. Here it is ;) > > -- > > Aug 01 13:44:54 guest-selfregistration.cgi(0) INFO: Looking up username for > email: [email protected] (pf::authentication::username_from_email) > Aug 01 13:44:54 guest-selfregistration.cgi(0) INFO: Searching for > ([email protected]), from ou=OU,dc=my,dc=domain,dc=local, with > scope sub (pf::Authentication::Source::LDAPSource::username_from_email) > Aug 01 13:44:54 guest-selfregistration.cgi(0) ERROR: Unable to execute > search, we skip the rule. > (pf::Authentication::Source::LDAPSource::username_from_email) > Aug 01 13:44:54 guest-selfregistration.cgi(0) INFO: Missing information for > self-registration > (ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_guest_2dselfregistration_2ecgi::handler) > Aug 01 13:44:54 guest-selfregistration.cgi(0) INFO: > generate_selfregistration_page > (pf::web::guest::generate_selfregistration_page) Can you apply this patch to log the error message from the LDAP server? diff --git a/lib/pf/Authentication/Source/LDAPSource.pm b/lib/pf/Authentication/Source/LDAPSource.pm index 6798a1b..03ecb7e 100644 --- a/lib/pf/Authentication/Source/LDAPSource.pm +++ b/lib/pf/Authentication/Source/LDAPSource.pm @@ -381,7 +381,7 @@ sub username_from_email { ); if ($result->is_error) { - $logger->error("Unable to execute search, we skip the rule."); + $logger->error("Unable to execute search: " . $result->error); next; } > -- > > Hmm....Is somehow possible to see what pf tries to execute, when it does the > search? Or maybe the LDAP answer? > >> Is your username attribute properly specified in your AD >> source? Is the mail address located in the 'mail' attribute? > > Yep, attribute is set. > > Regards > Florian -- [email protected] :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
