<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV>Good afternoon! I have a problem. The user will be authorized with a
login</DIV>
<DIV>in the form of 123456@realm1, it is necessary, that freeradius transformed
</DIV>
<DIV>its login 123456@realm2... And so for all users. How to make? TRIED:</DIV>
<DIV> </DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial
size=2>radiusd.conf:</FONT></SPAN></DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial
size=2> attr_rewrite User-Name
{<BR>
attribute =
User-Name<BR>
searchin =
packet<BR>
searchfor =
"realm1"<BR>
replacewith =
"realm2"<BR>
ignore_case =
yes<BR>
new_attribute =
yes<BR>
max_matches =
1<BR>
append = yes<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial size=2>authorize
{<BR> Autz-Type unknown
{<BR>
files<BR>
}<BR>
User-Name<BR>
preprocess<BR>
chap<BR>
mschap<BR>
suffix<BR>
files<BR>
sqlauth<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial size=2>in radiusd
-X:</FONT></SPAN></DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=791522509-07122007><FONT face=Arial
size=2> User-Name = "<A
href="mailto:123456@realm1">123456@realm1</A>"<BR>
User-Password = "EBLAImXtaUidLnSa"<BR>
NAS-IP-Address = 10.173.65.200<BR>rad_lowerpair: User-Name now <A
href="mailto:'123456@realm1'">'123456@realm1'</A><BR> Processing the
authorize section of radiusd.conf<BR>modcall: entering group authorize for
request 0<BR>radius_xlat: 'realm2'<BR>rlm_attr_rewrite: Added attribute
User-Name with value 'realm2'<BR> modcall[authorize]: module "User-Name"
returns ok for request 0<BR> modcall[authorize]: module "preprocess"
returns ok for request 0<BR> modcall[authorize]: module "chap" returns
noop for request 0<BR> modcall[authorize]: module "mschap" returns noop
for request 0<BR> rlm_realm: Looking up realm "realm1" for
User-Name = "<A
href="mailto:123456@realm2">123456@realm</A>1"<BR> rlm_realm:
Found realm "realm1"<BR> rlm_realm: Proxying request from
user 123456 to realm realm1<BR> rlm_realm: Adding
Realm = "123456"<BR> rlm_realm: Authentication realm is
LOCAL.<BR> modcall[authorize]: module "suffix" returns noop for request
0<BR> users: Matched entry DEFAULT at line 3<BR>
modcall[authorize]: module "files" returns ok for request
0<BR>radius_xlat: <A
href="mailto:'123456@realm1'">'123456@realm1'</A><BR>rlm_sql (sqlauth):
sql_set_user escaped user --> <A
href="mailto:'123456@realm1'">'123456@realm1'</A><BR>radius_xlat: 'SELECT
id,UserName,Attribute,Value,op FROM radcheck WHERE Username = <A
href="mailto:'123456@realm1'">'123456@realm1'</A> ORDER BY
id'<BR></FONT></SPAN></DIV>
<DIV> </DIV>
<STYLE>
.pt { font-family: "Arial" }
.pt { font-size: 8pt }
</STYLE>
<TABLE height=9 cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width=110 rowSpan=7><IMG height=92 src="cid:791522509@07122007-2FA0"
width=92></TD>
<TD colSpan=2><SPAN class=pt>Сысоев Дмитрий Александрович</SPAN></TD></TR>
<TR>
<TD colSpan=2><SPAN class=pt>Сетевой администратор</SPAN></TD></TR>
<TR>
<TD colSpan=2><SPAN class=pt>Отдел информационных технологий</SPAN></TD></TR>
<TR>
<TD colSpan=2><SPAN class=pt>ЗАО ''Ульяновская Сотовая
Связь''</SPAN></TD></TR>
<TR>
<TD width=60><SPAN class=pt>Тел.:</SPAN></TD>
<TD width=1000><SPAN class=pt>+7 (901) 947 17 31</SPAN></TD></TR>
<TR>
<TD><SPAN class=pt>Моб.:</SPAN></TD>
<TD><SPAN class=pt>+7 (901) 947 02 71</SPAN></TD></TR>
<TR>
<TD><SPAN class=pt>Факс:</SPAN></TD>
<TD><SPAN class=pt>+7 (8422) 43 51 99</SPAN></TD></TR></TBODY></TABLE>
<DIV> </DIV></BODY></HTML>