Asterisk - The Open Source Telephony Project  18.5.0
Variables
voicemailpwcheck Namespace Reference

Variables

 context
 
 mailbox
 
 new_pw
 
 old_pw
 
list PW_BLACKLIST
 
list REGEX_BLACKLIST
 
int REQUIRED_LENGTH = 6
 

Detailed Description

Sample externpasscheck script for use with voicemail.conf

Copyright (C) 2010, Digium, Inc.
Russell Bryant <[email protected]>

The externpasscheck option in voicemail.conf allows an external script to
validate passwords when a user is changing it.  The script can enforce password
strength rules.  This script is an example of doing so and implements a check
on password length, a password with too many identical consecutive numbers, or
a password made up of sequential digits.

Variable Documentation

◆ context

context

Definition at line 45 of file voicemailpwcheck.py.

◆ mailbox

mailbox

Definition at line 45 of file voicemailpwcheck.py.

◆ new_pw

new_pw

Definition at line 45 of file voicemailpwcheck.py.

◆ old_pw

old_pw

Definition at line 45 of file voicemailpwcheck.py.

◆ PW_BLACKLIST

list PW_BLACKLIST

Definition at line 31 of file voicemailpwcheck.py.

◆ REGEX_BLACKLIST

list REGEX_BLACKLIST
Initial value:
1 = [
2  ("(?P<digit>\d)(?P=digit){%d}" % (REQUIRED_LENGTH - 1),
3  "%d consective numbers that are the same" % REQUIRED_LENGTH)
4 ]

Definition at line 23 of file voicemailpwcheck.py.

◆ REQUIRED_LENGTH

int REQUIRED_LENGTH = 6

Definition at line 19 of file voicemailpwcheck.py.