Can anyone help help me with the syntax to remove spaces from the
username field? I copied the parserequest from radius.pm to custom.pm. I
changed:

    my $user_name = $radius_request->{'User-Name'};

   to

    my $user_name = $radius_request->{'Stripped-User-Name'};

   to fix a backslash issue. Now I'm trying to drop spaces out of the
names. I tried:

    my $user_name = {$radius_request->{'Stripped-User-Name'} =~
s/\s//g};

   but it comes back as HASH(0x2a5f....). 
   I apologize for my lack of Perl skills.  :-<




------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to