2013/2/24 Tony Miller <mcfiredr...@gmail.com>:
> On Sat, Feb 23, 2013 at 8:14 AM, Romain Beauxis <to...@rastageeks.org> wrote:
>> Not if you base user detection on e.g. passwords..
>>
>
> Ok, can you elaborate?

Well, here's a quick example:

def auth(user, password) =
  # Test user
  if list.hd(get_process_lines("/path/to/auth #{quote(user)}
#{quote(password)}")) == "true" then
    # Here you can do whatever you want with user && name
    system("/path/to/after-auth #{quote(user)} #{quote(password)}")
    true
  else
    false
  end
end

s = input.harbor(auth=auth, ...)

Please note that you don't necessarily have to use two scripts as above..

Romain

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to