logo       

Re: Adding realm suffix to non-realm username.: msg#00312

freeradius.user

Subject: Re: Adding realm suffix to non-realm username.

Replying to my own post here ;)

>> Did I need to reference this else where in the config file?

-- Found it, but now I have more "issues".
I am using this to append our realm to the non-realm'd users.
(As taken from a previous posting found on the list archives)

<snip>
attr_rewrite add_domain {
attribute = User-Name
searchin = packet
searchfor = "^[a-z0-9_\-]+$"
replacewith = "@imaginet.co.za"
ignore_case = yes
new_attribute = no
max_matches = 1
append = yes
}
</snip>

Of course this reg-ex has some limitation to it.
I would like to use something like "!(@)" instead.
This however to does not work.

Could someone perhaps help our here, as I have no brain for reg-ex.

Thanks a mill.

-Rob


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise