AW: Since 2 Month noone any idea how to do this ? Stripping Username Question *important*

Armin Krämer Kraemer.Armin at web.de
Mon Jul 24 13:39:29 CEST 2006


Okay i tried a little and my result is now that my attr_rewirite looks like:


search_string = "(host/)"
replace_string = ""



That works to delete the "host/" part. But i need a "$" appended to the
User-Name. How can i do this?


Mit freundlichen Grüßen

Armin 




-----Ursprüngliche Nachricht-----
Von: freeradius-users-bounces+kraemer.armin=web.de at lists.freeradius.org
[mailto:freeradius-users-bounces+kraemer.armin=web.de at lists.freeradius.org]
Im Auftrag von Michael Mitchell
Gesendet: Samstag, 22. Juli 2006 11:42
An: FreeRadius users mailing list
Betreff: Re: Since 2 Month noone any idea how to do this ? Stripping
Username Question *important*

Hi Armin,

You may be able to use the attr_rewrite module to rewrite the value of the
attribute in the authorize section. You can use a regular expression,
something like:

search_string = "^([^/]*)/(.*)$"
replace_string = "%{2}$"

You may need to escape some characters (for example the forward slash),
you'll have to try it...

Hope that helps.

regards,
Mike


Krämer Armin wrote:

> When a machine authenticates  I get the name of the mchine like
> "host/250-IT"  and the search String on LDAP is like "host/250-IT".
> 
> I nee the searchString at LDAP like 250-IT$. How can I strip away that
host/
> and add $ for the search at the LDAP Directory?
> 

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





More information about the Freeradius-Users mailing list