Hello, just to point it out, in case it is somehow "a must" to load the password from a specific/custom file format, there is the option of using embedded Python/Lua/... scripts to parse and extract the value and then pass it as a parameter to auth module function pv_auth_check().
Cheers, Daniel On Mon, Jul 31, 2023 at 7:56 PM Kaufman <[email protected]> wrote: > Without getting too pendantic, isn't saving this data into a "yaml/txt" > file just changing where it's hard coded? > > Generally, Kamailio will store information like this in a database. > Someone pointed you to the db_text module, but I'd recommend db_sqlite > although for the purpose of your question, this is a rather moot > distinction. If you're looking to omit any possibly confidential > information from being hard coded in your "main" config file to avoid > having credentials, etc. stored in git, etc., I'd recommend using the > `import_file` option and gitignoring your "confidential" files. > > With that said there's no current yaml module. There are modules for > working with json, but I don't think any of them have "load serizlized data > from a file" options. > > -----Original Message----- > From: [email protected] <[email protected]> > Sent: Sunday, July 30, 2023 2:06 AM > To: [email protected] > Subject: [SR-Users] Saving credentials in yaml/txt format > > CAUTION: This email originated from outside the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Hello all, I want to save some credentials for different users I have that > are being used in a digest authorization (INVITE), with different realms (I > don't want the credentials to be hardcoded). > I tried to look at how can I read into my kamalio.cfg from yaml/txt file, > but haven't found the right module for this. > > Thanks in advance, > Max > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe > send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > -- Daniel-Constantin Mierla - https://www.asipto.com https://twitter.com/miconda - https://www.linkedin.com/in/miconda Kamailio Advanced Training - https://www.asipto.com/u/kat
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
