[Devel] Re: [Users] IP authentication

Klaus Darilion klaus.mailinglists at pernau.at
Thu Aug 31 14:22:02 CEST 2006


Juha Heinanen wrote:
> Kristian Kielhofner writes:
> 
>  > http://openser.org/docs/modules/1.1.x/permissions.html
>  > 
>  >      Specifically allow_trusted()
>  > 
>  > Just add some:
>  > 
>  > "if (!allow_trusted())" type stuff and you can add IPs all day long. 
>  > Much better than lines and lines of code to match IPs one by one!
> 
> this reminds me that i have been thinking to add to permissions module a
> new function
> 
> allow_address(ip [,port])
> 
> where ip and port can be any AVPs.  it will check if match is found in a
> new address table.  perhaps it should also have an index parameter
> allowing multiple address sets.
> 
> any comments?

Maybe we can have a pseudo variable in onsend_route which contains the 
IP address to which the message will be sent. Then we could use this 
function to allow received messages and to allow sending messages.

regards
klaus




More information about the Devel mailing list