I've found the following searching in the mailing list, that may solve my issue, but I don't know where I have to insert it within the conf files (and which one ...):
if (User-Name =~ /^DOMAIN\\(.*)/) { update request { Stripped-User-Name := "%{1}" } } I know that will sounds trivial for most of you, but I really appreciate some help ... > -----Message d'origine----- > De : freeradius-users- > bounces+benoit.bianchi=enel....@lists.freeradius.org > [mailto:freeradius-users- > bounces+benoit.bianchi=enel....@lists.freeradius.org] De la part de > benoit.bian...@enel.com > Envoyé : mercredi 4 août 2010 09:21 > À : freeradius-users@lists.freeradius.org > Objet : Remove Domain from User-Name > > Hi, > > I've successfully set up freeradius for EAP-PEAP Authentication > with MSCHAP on my AD Domain, but I'm facing a problem on accounting: > I'm using SQL accounting and can't get rid of the "DOMAIN\" part > for the sql_user_name, I've tried using the Stripped-User-Name variable > but it remains empty. > I've also tried using hints file to define a proper > Stripped-User-Name, with the following: > > DEFAULT User-Name =~ "DOMAIN\\(.*)" > Stripped-User-Name := "%{1}" > > Still without any success, so I investigate on the realm module > who do recognize the DOMAIN\ part of User-Name but then it look for > proxying (which I don't have) and don't give me a Stripped-User-Name > anyway ... > > I'm stucked, is there anyone here who can give me a hand on > this? > > Thanks in advance > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html