Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdoc:tt_vm_password_validation [2012/07/07 11:57] droemel |
userdoc:tt_vm_password_validation [2012/08/01 03:46] (current) droemel |
||
---|---|---|---|
Line 8: | Line 8: | ||
* Minimum length (i.e. >= 4) | * Minimum length (i.e. >= 4) | ||
+ | * Can not be the same as the extension (mailbox) | ||
+ | * Can not be the old password | ||
* Can not contain consecutive numbers, in sets of four (i.e. 1234, or 8765) | * Can not contain consecutive numbers, in sets of four (i.e. 1234, or 8765) | ||
* Can not contain the same digit, in sets of four (i.e. 1111) | * Can not contain the same digit, in sets of four (i.e. 1111) | ||
- | * Can not be the same as the extension | + | * Can not be the same as the extension |
- | * Can not be the old password | + | |
You can just comment out the requirements you don't need/want. | You can just comment out the requirements you don't need/want. | ||
Line 78: | Line 80: | ||
fi | fi | ||
done | done | ||
+ | |||
+ | delta=$((${# | ||
+ | if [ $delta -eq 1 ]; then | ||
+ | if string_in_string " | ||
+ | reject "Too similar to mailbox number detected" | ||
+ | fi | ||
+ | fi | ||
echo " | echo " | ||
Line 83: | Line 92: | ||
</ | </ | ||
- | Asterisk 1.8 has also the feature to set a minimum Voicemail Password without the script. | + | Asterisk 1.8 has also the feature to set a minimum Voicemail Password |
+ | |||
+ | ; minpassword=0 ; Enforce minimum password length |