Removing characters from usernames

2007-01-31 Thread Andrew Zirkel
Is there a way to parse the input of a username and password before it is passed to the back end database? I'm doing mac address authentication and some devices are passing the mac address with dashes, where I need to have no separation between the octets. I basically need to strip out

Re: Removing characters from usernames

2007-02-01 Thread Andrew Zirkel
:05 PM, Andrew Zirkel wrote: Is there a way to parse the input of a username and password before it is passed to the back end database? I'm doing mac address authentication and some devices are passing the mac address with dashes, where I need to have no separation between the octets. I

Re: Removing characters from usernames

2007-02-01 Thread Andrew Zirkel
= no } } i call it just before the actual ldap-module i am using. hth regards markus Zitat von Andrew Zirkel [EMAIL PROTECTED]: I was thinking I could do something like this with a regular expression: User-Name =~ tr/-//d but I'm not sure where to do