Re: add a realm to a User-Name if no realm

2005-10-06 Thread Lewis Bergman
Alan DeKok said: > "Lewis Bergman" <[EMAIL PROTECTED]> wrote: >> I was hoping to look for a specific %{NAS-Identifier} and based on that >> AND the fact that a user does not have an "@" in the username, add the >> realm. > > Try using "hints" > > DEFAULT User-Name !~ ".*@", NAS-Identif

Re: add a realm to a User-Name if no realm

2005-10-06 Thread Alan DeKok
"Lewis Bergman" <[EMAIL PROTECTED]> wrote: > I was hoping to look for a specific %{NAS-Identifier} and based on that > AND the fact that a user does not have an "@" in the username, add the > realm. Try using "hints" DEFAULT User-Name !~ ".*@", NAS-Identifier == "foo" User-Name

Re: add a realm to a User-Name if no realm

2005-10-06 Thread Dave Weis
Lewis Bergman wrote: I wasn't quite specific enough on my post. The NULL match in the realm module would probably work for the "no realm at all" situation. I was hoping to look for a specific %{NAS-Identifier} and based on that AND the fact that a user does not have an "@" in the username, add t

Re: add a realm to a User-Name if no realm

2005-10-05 Thread Lewis Bergman
I wasn't quite specific enough on my post. The NULL match in the realm module would probably work for the "no realm at all" situation. I was hoping to look for a specific %{NAS-Identifier} and based on that AND the fact that a user does not have an "@" in the username, add the realm. -- Lewis Be

add a realm to a User-Name if no realm

2005-10-05 Thread Lewis Bergman
I am in need of rewriting a username in a request to include a domain. Basically, if a user comes in as "user" add the realm "@dom.com" so it is checked as "[EMAIL PROTECTED]". I found this in the archives which seems to be close. http://www.mail-archive.com/freeradius-users@lists.freeradius.org/ms