(RADIATOR) attributes from outer to inner authentication
Nacho Paredes
iparedes at eurocomercial.es
Tue Nov 21 10:15:10 CST 2006
Hi,
I've used a hook to do an outer to inner copy.
Hope this helps.
Regards
sub
{
# We call as PreAuthHook of a TunneledBy Handler,
# so $p refers to the inner request
my ($p,$rp,$handled,$reason)=@_;
# Atribs we DON'T want to copy to the inner request
my @fbd=('User-Name','User-Password','EAP-Message','Message-Authenticator');
my $tp=${$p}->{outerRequest};
my $l=$tp->{Attributes};
&main::log($main::LOG_DEBUG,"Copying attributes from outer request to inner request");
foreach my $a (@{$l}){
my $cod=$a->[0];
my $val=$a->[1];
# Check for forbidden attributes
my $l=grep(/^$cod$/, at fbd);
if(!$l){
&main::log($main::LOG_DEBUG,"------>$cod:$val");
${$p}->add_attr($a->[0],$a->[1]);
}
}
}
-----Mensaje original-----
De: owner-radiator at open.com.au [mailto:owner-radiator at open.com.au] En nombre de M.A.G. van der
Walle
Enviado el: martes, 21 de noviembre de 2006 16:21
Para: radiator at open.com.au
Asunto: (RADIATOR) attributes from outer to inner authentication
Hello,
I want to retrieve information from LDAP based on attributes wich are sent in the outer
authentication. It is about the 'Calling-Station-Id'.
When I call LDAP in the inner authentication then it looks like I cannot use those attributes
anymore, only the attributes belonging to the inner authentication. In a special situation I
want to search for "Calling-Station-Id" in an inner authentication. We do the outer
authentication with user 'anonymous'.
Or, can I do the LDAP search for "Calling-Station-Id" in the outer authentication and add reply
items retrieved from LDAP to the replies from the inner authentication?
met vriendelijke groet, with kind regards
Martin
Teamleider
_____________________
_M.A.G. van der Walle
__
___Tilburg University
____IT services
______Network and Telephony
_______
________m.a.g.vanderwalle at uvt.nl
_________Tel: +31 13 4662091
__________Fax: +31 13 4663189
________________________________________
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au To unsubscribe, email 'majordomo at open.com.au'
with 'unsubscribe radiator' in the body of the message.
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list