i put the hint file more below after radiusd -X.. check again please... <div>i miss policyfilter... </div><div>i send again both.</div><div><br></div><div>/etc/freeradius/hints</div><div><br></div><div><div>DEFAULT<span class="Apple-tab-span" style="white-space:pre">     </span>Suffix == "@<a href="http://my.domain.cu">my.domain.cu</a>", Strip-User-Name = Yes</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>Hint = "userdefault",</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>Service-Type = Framed-User,</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>Framed-Protocol = PPP,</div>

<div><br></div><div>/etc/freeradius/policy.conf   (is the original file, i just activate uncommented # ) anyway here is</div><div><br></div><div><div>policy {</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>forbid_eap {</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>if (EAP-Message) {</div><div><span class="Apple-tab-span" style="white-space:pre">                   </span>reject</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>permit_only_eap {</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>if (!EAP-Message) {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>if (!"%{outer.request:EAP-Message}") {</div><div><span class="Apple-tab-span" style="white-space:pre">                             </span>reject</div><div><span class="Apple-tab-span" style="white-space:pre">                       </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>deny_realms {</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>if (User-Name =~ /@|\\/) {</div><div><span class="Apple-tab-span" style="white-space:pre">                   </span>reject</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>do_not_respond {</div><div><span class="Apple-tab-span" style="white-space:pre">             </span>update control {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>Response-Packet-Type := Do-Not-Respond</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>handled</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>filter_username {</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>if (User-Name =~ /^ /) {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>reject</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>if (User-Name =~ / $$/) {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>reject</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>if (User-Name != "%{tolower:%{User-Name}}") {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>reject</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>cui_authorize {</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>update request {</div><div><span class="Apple-tab-span" style="white-space:pre">                     </span>Chargeable-User-Identity:='\\000'</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>cui_postauth {</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>if (FreeRadius-Proxied-To == 127.0.0.1) {</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>if (outer.request:Chargeable-User-Identity) {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span>update outer.reply {</div><div><span class="Apple-tab-span" style="white-space:pre">                                 </span>Chargeable-User-Identity:="%{md5:%{config:cui_hash_key}%{User-Name}}"</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>else {</div><div><span class="Apple-tab-span" style="white-space:pre">                       </span>if (Chargeable-User-Identity) {</div><div><span class="Apple-tab-span" style="white-space:pre">                              </span>update reply {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                                      </span>Chargeable-User-Identity="%{md5:%{config:cui_hash_key}%{User-Name}}"</div><div><span class="Apple-tab-span" style="white-space:pre">                               </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>cui_updatedb {</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>if (reply:Chargeable-User-Identity) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>cui</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>cui_accounting {</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>if (!Chargeable-User-Identity) {</div><div><span class="Apple-tab-span" style="white-space:pre">                     </span>update control {</div><div><span class="Apple-tab-span" style="white-space:pre">                             </span>Chargable-User-Identity := "%{cui: SELECT cui FROM cui WHERE clientipaddress = '%{Client-IP-Address}' AND callingstationid = '%{Calling-Station-Id}' AND username = '%{User-Name}'}"</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>if (Chargeable-User-Identity && (Chargeable-User-Identity != "")) {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>cui</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>mac-addr = ([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>rewrite.called_station_id {</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>if((Called-Station-Id) && "%{Called-Station-Id}" =~ /^%{config:policy.mac-addr}(:(.+))?$/i) {</div><div><span class="Apple-tab-span" style="white-space:pre">                      </span>update request {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span>Called-Station-Id := "%{tolower:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}"</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>if ("%{8}") {</div><div><span class="Apple-tab-span" style="white-space:pre">                              </span>update request {</div><div><span class="Apple-tab-span" style="white-space:pre">                                     </span>Called-Station-Id := "%{Called-Station-Id}:%{8}"</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>updated</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>else {</div><div><span class="Apple-tab-span" style="white-space:pre">                       </span>noop</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>rewrite.calling_station_id {</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>if((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}$/i) {</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>update request {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span>Calling-Station-Id := "%{tolower:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}"</div><div><span class="Apple-tab-span" style="white-space:pre">                   </span>}</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>updated</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>else {</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>noop</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>}</div>

<div>}</div></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">2012/9/27 alan buxey <span dir="ltr"><<a href="mailto:A.L.M.Buxey@lboro.ac.uk" target="_blank">A.L.M.Buxey@lboro.ac.uk</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
>            User-Name = "[1]<a href="mailto:usertest@my.domain.cu">usertest@my.domain.cu</a>"<br>
<br>
okay..<br>
<div class="im"><br>
>    [preprocess]   hints: Matched DEFAULT at 36<br>
>    ++[preprocess] returns ok<br>
<br>
</div>and what is in your hints file?<br>
<div class="im"><br>
>    ++- policy filter_username returns ok<br>
<br>
</div>and what is in this policy?<br>
<br>
alan<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#888888"><font color="#888888">Antonio Pe</font><span><font color="#888888">ñ</font></span><font color="#888888">a</font><span></span><br><font color="#888888">Secure email with PGP 0x8B021001 available at <a href="http://pgp.mit.edu" target="_blank">http://pgp.mit.edu</a><br>

</font></font><font color="#888888">
<font color="#888888">Fingerprint: 74E6 2974 B090 366D CE71  7BB2 6476 FA09 8B02 1001</font></font><br>
</div>