event socket : userauth undocumented esl command?
Hi, I''ve read in an old esl source that a userauth command exist in mod_event_socket and provides user/password based authentication, not only password based, like auth... Th actual code accepts the userauth command... Question: where can I configure the user / password for the userauth command? Shouldn't this command bee in wiki? Thanks, John
John, I did not realize we had this either. Looking in mod_event_socket.c yields some clues. Looking in the code you saw the block where it checks for "userauth ". However, looking further down you see this: if (switch_xml_locate_user("id", user, domain_name, NULL, &x_domain_root, &x_domain, &x_user, &x_group, params) == SWITCH_STATUS_SUCCESS) This suggests to me that the users are taken right from the XML user directory and that you just need to figure out what parameters to set. I would start there. Let us know what you find. -MC On Wed, Oct 24, 2012 at 12:21 AM, rentmycoder rentmycoder < rentmycoder@gmail.com> wrote:
Hi,
I''ve read in an old esl source that a userauth command exist in mod_event_socket and provides user/password based authentication, not only password based, like auth... Th actual code accepts the userauth command... Question: where can I configure the user / password for the userauth command? Shouldn't this command bee in wiki? Thanks, John
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
It's new to me too. Reading the mod_event_socket source code you authenticate as a user@domainand it performs a user directory lookup for that user. It looks for the following variables in the directory entry: esl-password esl-allowed-log esl-allowed-events esl-allowed-api esl-password is required. esl-allowed-log is either true or false (optional, default is true) esl-allowed-events and esl-allowed-api are also optional, I think the default would be all allowed. It appears the command syntax is 'userauth user@domain:password' -Steve On 24 October 2012 08:21, rentmycoder rentmycoder <rentmycoder@gmail.com>wrote:
Hi,
I''ve read in an old esl source that a userauth command exist in mod_event_socket and provides user/password based authentication, not only password based, like auth... Th actual code accepts the userauth command... Question: where can I configure the user / password for the userauth command? Shouldn't this command bee in wiki? Thanks, John
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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 don't know if anyone has done it w/ static XML, normaly if you are using external config, you look for the event header "action", and if it's "event_socket_auth", then you check the event socket users, and not the normal ones. I know the only way I use it is when using some sort of external config. XML_Curl or switch_bind_xml_search_function. Has anyone here actually got it working w/ static XML? --Dave _____ From: Steven Ayre [mailto:steveayre@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Wed, 24 Oct 2012 09:42:58 -0700 Subject: Re: [Freeswitch-users] event socket : userauth undocumented esl command? It's new to me too. Reading the mod_event_socket source code you authenticate as a user@domain and it performs a user directory lookup for that user. It looks for the following variables in the directory entry: esl-password esl-allowed-log esl-allowed-events esl-allowed-api esl-password is required. esl-allowed-log is either true or false (optional, default is true) esl-allowed-events and esl-allowed-api are also optional, I think the default would be all allowed. It appears the command syntax is 'userauth user@domain:password' -Steve On 24 October 2012 08:21, rentmycoder rentmycoder <rentmycoder@gmail.com> wrote: Hi, I''ve read in an old esl source that a userauth command exist in mod_event_socket and provides user/password based authentication, not only password based, like auth... Th actual code accepts the userauth command... Question: where can I configure the user / password for the userauth command? Shouldn't this command bee in wiki? Thanks, John _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com 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 (4)
-
Dave R. Kompel
-
Michael Collins
-
rentmycoder rentmycoder
-
Steven Ayre