[Asterisk-Users] Pass variable to Authenticate?

Justin B Newman justin.newman at binhost.com
Mon May 16 12:52:18 MST 2005


Dana Olson wrote:

> I thought of a way to do it using a list of passwords, but the agent
> would only ever be prompted for their password. I won't want that.
> 
> Basically, what I want to do is this:
> 
> Read in the username, ex. 4567
> Read in the password, ex. 1234
> Pass 12344567 to the Authenticate command, which checks in the file
> for that password.
> 
> I can't figure out a way to do it, and it may not even be possible.
> 
> Is there another way to do it? Can I somehow utilize the DBget and
> DBput commands? I couldn't find much info on it in the wiki, and my
> impression is that I have to use only the blacklist or cidname
> databases.
> 

Dana:

- Read in the username
- Do a DBGET for the password associated with that username
- Authenticate(password)

Yours,

-jbn
Justin B Newman
BinFone Telecom





More information about the asterisk-users mailing list