Portal with $vhost in Handler does not work
Reported by codebfu:
{quote} I've added the followin line in MyHandler.pm at line 40 : portal => '$vhost."/auth-bpce"',
first I had this error during redirection to portal : Can't use string ("1") as a subroutine ref while "strict refs" in use at (eval 122) line 1.\n
I've modified handler/simple.pm at line 589 from my $portal = $class->conditionSub( $args->{portal} ); to my ($portal, $unused) = $class->conditionSub( $args->{portal} );
in order to prevent $portal from holding the 1 from "return ( $sub, 1 );"
now the error is the following : Can't call method "hostname" on an undefined value at (eval 121) line 1.\n
I've print $cond in handler/simple.pm at line 536 (juste before # Eval sub), I get the following : sub {return ($apacheRequest->hostname."/auth-bpce")}
If you have any idea on how to get it work fine ...
thank you.
ps: this works with lemonldap-ng 0.9.4 {quote}