Hi all,
I´ve found an unwanted feature in PAPI 1.4. I´m using standar
attribute separator (",") and value separator ("="), so i don´t specify
them in the config file.
In my case, when an attribute contains spaces, for example ou=Biblioteca
Virtual Servicio Andaluz Salud, PAPI splits spaces as attribute
separator, so i obtain non desired headers:
X-PAPIAttr-ou = Biblioteca
X-PAPIAttr-Virtual = Servicio
X-PAPIAttr-Andaluz = Salud
This problem is fixed applying to the PoA.pm file the next workaround:
sub build_attrList
{
my $self=shift;
my $str=shift;
my $are='\s*,\s*';
if (defined $self->{'AttSep'} && $self->{'AttSep'} ne "") {
$are='\s*'.$self->{'AttSep'}.'\*';
}
my $ave='\s*=\s*';
if (defined $self->{'ValSep'} && $self->{'ValSep'} ne "") {
$ave='\s*'.$self->{'ValSep'}.'\*';
}
my @acomp=split (/@/,$str);
my $asid=pop(@acomp);
my $spsubj=join('@',@acomp);
for my $atc (split (/$are/,$spsubj)) {
push (@{$self->{'attrList'}}, split (/$ave/,$atc,2));
}
push (@{$self->{'attrList'}},("PAPIAuthServer",$asid));
}
Hope this help someone :P
Best regards.
|