[OpenSER-Users] Modify $au to lowercase

Peter P GMX Prometheus001 at gmx.net
Sat Nov 24 14:19:25 CET 2007


Hello Christian,

that seems to be a solution in conjunction with the perl module. When 
will 1.3 be available?

BTW: I am always wondering why such "normal" things as overwriting vars 
and general string substutution is so limited in OpenSER. Besides 
superficial documentation (everyone has to try and error and to reinvent 
the whole thing by himself), the main job is research ing for tricky 
workarounds in order to make things running. I am running a number of 
Asterisk PBX (release version 1.2) -- and there it's so easy!

Kind regards
Peter


Christian Schlatter schrieb:
> Peter P GMX wrote:
>   
>> Hello,
>>
>> is there any chance to modify the authorization user name?
>>
>> I have the following scenario. We do allow only lowercase usernames when 
>> users are registering. So the md5 password is created and stored based 
>> on lowercase letters.
>> When a user receives his account data he might enter his username in 
>> camelcase in his user agent. So when he tries to register, it fails, as 
>> the md5 hash based on the camelcased username is different.
>>
>> I tried to use the perl module, put the username to lowercase and put it 
>> back to OpenSER via avp_pushto. But Openser only allows $ru,$du,$br to 
>> be modified.
>>
>> Do I have a chance to modify $au?
>>     
>
> The auth module of openser 1.3 (which will be released soon) contains 
> two new authentication functions that take any pseudo variables as 
> username/password input:
>
> pv_www_authorize(realm):
> http://www.openser.org/docs/modules/1.3.x/auth.html#AEN243
>
> pv_proxy_authorize(realm):
> http://www.openser.org/docs/modules/1.3.x/auth.html#AEN279
>
> This should enable you to feed the username's uppercase version to the 
> authorize functions.
>
> BTW: It would be nice to have an uppercase/lowercase string 
> transformation available.
>
> /Christian
>
>
>   
>> Best regards
>> Peter
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.openser.org
>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>     
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the sr-users mailing list