From 875b524fdee8909f1631747b3e56d1e41af1e113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Deltombe?= Date: Tue, 12 Jun 2012 16:24:09 +0000 Subject: [PATCH] Repair portal URL rewriting in buildPortalWSDL (Lemonldap-473) --- .../example/scripts/buildPortalWSDL | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lemonldap-ng-portal/example/scripts/buildPortalWSDL b/lemonldap-ng-portal/example/scripts/buildPortalWSDL index 55d7f9456..58d3e3cff 100644 --- a/lemonldap-ng-portal/example/scripts/buildPortalWSDL +++ b/lemonldap-ng-portal/example/scripts/buildPortalWSDL @@ -2,23 +2,26 @@ use Lemonldap::NG::Portal::SharedConf; -my $portal = Lemonldap::NG::Portal::SharedConf->new( {} ); +my $self = Lemonldap::NG::Portal::SharedConf->new( {} ); -unless ( $portal->{Soap} ) { +unless ( $self->{Soap} ) { print STDERR "Lemonldap::NG Portal SOAP capability is disabled.\n" . "Set 'Soap' option to 1 in manager or lemonldap-ng.ini to enable it.\n"; exit; } -my @cookies = ( $portal->{cookieName} ); -push @cookies, "$portal->{cookieName}.http" - if ( $portal->{securedCookie} >= 2 ); +my $portal = $self->{portal}; +$portal .= "index.pl" if ( $portal =~ /\/$/ ); + +my @cookies = ( $self->{cookieName} ); +push @cookies, "$self->{cookieName}.http" + if ( $self->{securedCookie} >= 2 ); my $cookieList = join "\n", map { "" } @cookies; my $attrList = join "\n", map { "" } - $portal->exportedAttr; + $self->attributeList; print < @@ -117,7 +120,7 @@ $attrList - + @@ -152,7 +155,7 @@ $attrList - + @@ -229,7 +232,7 @@ $attrList - +