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
-
+