How to use password file with AuthenticateApplication

Home » Asterisk Users » How to use password file with AuthenticateApplication

7 thoughts on - How to use password file with AuthenticateApplication

  • Hi Warren,

    As per your suggestion I revert back the things. In such case nothing is
    working. So it’s completely wrong case.

    Can someone tell me how Authenticate check password from plan text file ?
    If we know who it’s work then we can implements the logic on it.

  • I’m not sure, one thought would be to try without the “a” option in the
    Read()? Other than that, I’d suggest maybe opening a ticket on the issue
    tracker.

  • the original format (i.e. :) was correct.
    one question, when you create the md5hash did you use the echo
    command? if so, did you specify the “-n” option?
    e.g. echo -n 12345 | md5sum

  • another things to check are:
    – the permission of the file /tmp/pass.txt?
    – the user/group of that file?
    – the user/group asterisk running as?

    i’m using 1.6.2.18 and it works perfectly. maybe you can
    upgrade yours

  • Hi Edwin,

    – the permission of the file /tmp/pass.txt?
    – the user/group of that file?
    – the user/group asterisk running as?

    I have 777 permission for that file.

    [root@haddock8-astrx tmp]# ll

    -rwxrwxrwx 1 root root 81 Nov 24 15:39 pass.txt

    Asterisk version is *Asterisk 1.6.2.11*

    and asterisk running with root user.

  • Hi list,

    I have upgrade my linux version to Asterisk 1.6.2.20. now Authenticate()
    function is working. But 1 question I want to add this thread..

    I have 3 password in my pass.txt file. i want that only sip 2209( just
    example,) will come with 1234 pass and 2208 with 1235 and rest will come
    with 1236 password. So how I can make so ?