userdoc:tt_vm_password_validation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userdoc:tt_vm_password_validation [2012/07/02 16:25]
droemel
userdoc:tt_vm_password_validation [2012/08/01 03:46] (current)
droemel
Line 1: Line 1:
 ====== Voicemail Password Validation ====== ====== Voicemail Password Validation ======
  
-Since Asterisk 1.6.1 there is a new variable in ''voicemail.conf'' to launch an external application when someone wants to change their voicemail password. This app can validate the new password. This is most useful for administrators who want to enforce more strict password requirements.  Adding this option is as simple as:+Since Asterisk 1.6.1 there is a new variable in ''voicemail.conf'' to launch an external application when someone wants to change their voicemail password via a phone keypad. This app can validate the new password. This is most useful for administrators who want to enforce more strict password requirements.  Adding this option is as simple as:
  
   externpasscheck=/mnt/kd/bin/ast-vmpasscheck   externpasscheck=/mnt/kd/bin/ast-vmpasscheck
Line 8: Line 8:
  
   * Minimum length (i.e. >= 4)   * Minimum length (i.e. >= 4)
-  * No consecutive increasing numbers (i.e. 1234, or 8765) +  * Can not be the same as the extension (mailbox)
-  * Can not be all the same digit (i.e. 1111) +
-  * Can not be the same as the extension+
   * Can not be the old password   * Can not be the old password
 +  * 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 be the same as the extension plus a single digit
  
-Here is a bash script from Lonnie: 
  
-<code>#!/bin/bash+You can just comment out the requirements you don't need/want. 
 + 
 +Here is a bash script from Lonnie //(currently not yet included in AstLinux)//: 
 + 
 +<code bash ast-vmpasscheck.sh> 
 +#!/bin/bash
  
 # ast-vmpasscheck # ast-vmpasscheck
Line 75: Line 80:
   fi   fi
 done done
 +
 +delta=$((${#new_pw} - ${#mbox}))
 +if [ $delta -eq 1 ]; then
 +  if string_in_string "$mbox" "$new_pw"; then
 +    reject "Too similar to mailbox number detected"
 +  fi
 +fi
  
 echo "VALID" echo "VALID"
 exit 0 exit 0
 </code> </code>
 +
 +Asterisk 1.8 has also the feature to set a minimum Voicemail Password length without the script:
 +
 +  ; minpassword=0 ; Enforce minimum password length
  • userdoc/tt_vm_password_validation.1341264336.txt.gz
  • Last modified: 2012/07/02 16:25
  • by droemel