Hello, I am wondering if anyone has created any scripts to manage user authentication using a database? Chad
Hi Chad, mod_curl works great for that.... Jack On 9/29/2011 5:47 PM, Chad Vogel wrote:
Hello,
I am wondering if anyone has created any scripts to manage user authentication using a database?
Chad
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I'm not looking to use curl, I would like to use some kind of scripting so i can apply custom rules to track and reject authentication based on rate and origin of authentication from source ip address On Sep 29, 2011, at 11:22 PM, Jack wrote:
Hi Chad, mod_curl works great for that.... Jack
On 9/29/2011 5:47 PM, Chad Vogel wrote:
Hello,
I am wondering if anyone has created any scripts to manage user authentication using a database?
Chad
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello Chad, You do get IP information through mod_xml_curl. You should get the following variables to your web application: * action * sip_profile * sip_user_agent * sip_auth_username * sip_auth_realm * sip_auth_nonce * sip_auth_uri * sip_contact_user * sip_contact_host * sip_to_user * sip_to_host * sip_to_port * sip_from_user * sip_from_host * sip_from_port * sip_request_user * sip_request_host * sip_request_port * sip_auth_qop * sip_auth_cnonce * sip_auth_response * sip_auth_method Besides that you also get all sip headers that start with X- But of course you can use any module that implements the xml handler directory binding such as: * mod_erlang_event * mod_perl * mod_yaml * mod_lua * mod_managed * mod_xml_curl * mod_xml_ldap I don't know how well each of these work, but I can tell that mod_lua (in combination with fetching data from a db) works great in our production environment - see an example here: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh#User_Directory_XML regards, Leon On Sep 30, 2011, at 7:31 AM, Chad Vogel wrote:
I'm not looking to use curl, I would like to use some kind of scripting so i can apply custom rules to track and reject authentication based on rate and origin of authentication from source ip address
On Sep 29, 2011, at 11:22 PM, Jack wrote:
Hi Chad, mod_curl works great for that.... Jack
On 9/29/2011 5:47 PM, Chad Vogel wrote:
Hello,
I am wondering if anyone has created any scripts to manage user authentication using a database?
Chad
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
fusionpbx does a great job of user management if you're looking to deploy this on a SME type of envrionment where SSO isn't a that much of an issue On Sun, Oct 2, 2011 at 2:08 AM, Leon de Rooij <leon@scarlet-internet.nl> wrote:
Hello Chad, You do get IP information through mod_xml_curl. You should get the following variables to your web application: * action * sip_profile * sip_user_agent * sip_auth_username * sip_auth_realm * sip_auth_nonce * sip_auth_uri * sip_contact_user * sip_contact_host * sip_to_user * sip_to_host * sip_to_port * sip_from_user * sip_from_host * sip_from_port * sip_request_user * sip_request_host * sip_request_port * sip_auth_qop * sip_auth_cnonce * sip_auth_response * sip_auth_method Besides that you also get all sip headers that start with X- But of course you can use any module that implements the xml handler directory binding such as: * mod_erlang_event * mod_perl * mod_yaml * mod_lua * mod_managed * mod_xml_curl * mod_xml_ldap I don't know how well each of these work, but I can tell that mod_lua (in combination with fetching data from a db) works great in our production environment - see an example here: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh#User_Directory_XML regards, Leon
On Sep 30, 2011, at 7:31 AM, Chad Vogel wrote:
I'm not looking to use curl, I would like to use some kind of scripting so i can apply custom rules to track and reject authentication based on rate and origin of authentication from source ip address
On Sep 29, 2011, at 11:22 PM, Jack wrote:
Hi Chad,
mod_curl works great for that....
Jack
On 9/29/2011 5:47 PM, Chad Vogel wrote:
Hello,
I am wondering if anyone has created any scripts to manage user authentication using a database?
Chad
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You can still do that with mod_xml_curl Freeswitch will give your server side script all the details about the authentication so you can decide how to handle them. This may include checking them against a database table, or tracking statistics about them before deciding whether or not to return credentials and allow that client to register or authenticate. If you really don't want to use curl and insist that it runs on the same box, you can do something very similar with lua. There is a way to bind a lua script to directory lookups, so whenever a SIP auth happens, the xml is fed to your lua script and you can make similar decisions. I just like curl because it offloads all that onto another machine, and it's really easy to implement in a clustered environment. -Tim Chad Vogel wrote:
I'm not looking to use curl, I would like to use some kind of scripting so i can apply custom rules to track and reject authentication based on rate and origin of authentication from source ip address
On Sep 29, 2011, at 11:22 PM, Jack wrote:
Hi Chad, mod_curl works great for that.... Jack
On 9/29/2011 5:47 PM, Chad Vogel wrote:
Hello,
I am wondering if anyone has created any scripts to manage user authentication using a database?
Chad
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Chad Vogel
-
curriegrad2004
-
Jack
-
Leon de Rooij
-
Tim St. Pierre