[Home]

Summary:ASTERISK-17422: Unable to Authenticate() against AstDB
Reporter:Leif Madsen (lmadsen)Labels:
Date Opened:2011-02-17 07:58:52.000-0600Date Closed:2011-11-02 14:34:15
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Documentation
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The Authenticate() application has a flag (d) that lets you state that the path provided by the first argument is the path to the AstDB key. Unfortunately I can't seem to make this work.

When specifying the 'd' flag and providing the path to the AstDB, authentication never happens

****** STEPS TO REPRODUCE ******

<pre>
*CLI> dialplan show Authentication
[ Context 'Authentication' created by 'pbx_config' ]
 'start' =>        1. NoOp()                                     [pbx_config]
                   2. Playback(silence/1)                        [pbx_config]
                   3. Authenticate(/authenticate/temp_password,d,4) [pbx_config]
                   4. Playback(vm-goodbye)                       [pbx_config]
                   5. Hangup()                                   [pbx_config]

-= 1 extension (5 priorities) in 1 context. =-
</pre>
Comments:By: Leif Madsen (lmadsen) 2011-02-18 07:10:56.000-0600

Actually it appears as if I'm using it wrong. The way I was using it is how I would have expected it to work, but c'est la vie.

The database key provided should be something like:

/authentication/temp_password/1234

And the value of that family/key value doesn't matter, as the last key name is what gets used for the password, not the value.

I'm leaving this open as a documentation task.