# Password for each user

**URL:** <https://community.asterisk.org/t/password-for-each-user/19605>\
**Category:** Asterisk Support\
**Created:** [March 6, 2008, 7:45pm UTC](https://community.asterisk.org/t/password-for-each-user/19605 "2008-03-06T19:45:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apoenarondon](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@apoenarondon](https://community.asterisk.org/u/apoenarondon)\
**Post date:** [March 6, 2008, 7:45pm UTC](https://community.asterisk.org/t/password-for-each-user/19605/1 "2008-03-06T19:45:41Z")

</div>

Hi guys where i can found a theory about this ???  
I wanna make a Password for each user to dial until make a call…  
I buy a book and install asterisk make zap ,sip and iax phone every things it work good but didnt find how to do a password

see u guys

---

<div class="post-metadata">

**Author:** ![bwilks](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@bwilks](https://community.asterisk.org/u/bwilks)\
**Post date:** [March 7, 2008, 11:13am UTC](https://community.asterisk.org/t/password-for-each-user/19605/2 "2008-03-07T11:13:39Z")

</div>

You may want to take a look at Authenticate()

\*CLI\> show application Authenticate

-= Info about application ‘Authenticate’ =-

[Synopsis]  
Authenticate a user

[Description]  
Authenticate(password[|options[|maxdigits]]): This application asks the caller  
to enter a given password in order to continue dialplan execution. If the password  
begins with the ‘/’ character, it is interpreted as a file which contains a list of  
valid passwords, listed 1 password per line in the file.  
When using a database key, the value associated with the key can be anything.  
Users have three attempts to authenticate before the channel is hung up. If the  
passsword is invalid, the ‘j’ option is specified, and priority n+101 exists,  
dialplan execution will continnue at this location.  
Options:  
a - Set the channels’ account code to the password that is entered  
d - Interpret the given path as database key, not a literal file  
j - Support jumping to n+101 if authentication fails  
m - Interpret the given path as a file which contains a list of account  
codes and password hashes delimited with ‘:’, listed one per line in  
the file. When one of the passwords is matched, the channel will have  
its account code set to the corresponding account code in the file.  
r - Remove the database key upon successful entry (valid with ‘d’ only)  
maxdigits - maximum acceptable number of digits. Stops reading after  
maxdigits have been entered (without requiring the user to  
press the ‘#’ key).  
Defaults to 0 - no limit - wait for the user press the ‘#’ key.

---

<div class="post-metadata">

**Author:** ![apoenarondon](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@apoenarondon](https://community.asterisk.org/u/apoenarondon)\
**Post date:** [March 7, 2008, 6:46pm UTC](https://community.asterisk.org/t/password-for-each-user/19605/3 "2008-03-07T18:46:55Z")

</div>

tks a lot its work 😃

see u.

[quote=“bwilks”]You may want to take a look at Authenticate()

\*CLI\> show application Authenticate

-= Info about application ‘Authenticate’ =-

[Synopsis]  
Authenticate a user

[Description]  
Authenticate(password[|options[|maxdigits]]): This application asks the caller  
to enter a given password in order to continue dialplan execution. If the password  
begins with the ‘/’ character, it is interpreted as a file which contains a list of  
valid passwords, listed 1 password per line in the file.  
When using a database key, the value associated with the key can be anything.  
Users have three attempts to authenticate before the channel is hung up. If the  
passsword is invalid, the ‘j’ option is specified, and priority n+101 exists,  
dialplan execution will continnue at this location.  
Options:  
a - Set the channels’ account code to the password that is entered  
d - Interpret the given path as database key, not a literal file  
j - Support jumping to n+101 if authentication fails  
m - Interpret the given path as a file which contains a list of account  
codes and password hashes delimited with ‘:’, listed one per line in  
the file. When one of the passwords is matched, the channel will have  
its account code set to the corresponding account code in the file.  
r - Remove the database key upon successful entry (valid with ‘d’ only)  
maxdigits - maximum acceptable number of digits. Stops reading after  
maxdigits have been entered (without requiring the user to  
press the ‘#’ key).  
Defaults to 0 - no limit - wait for the user press the ‘#’ key.[/quote]
