[Asterisk-Dev] Authenticate App with Rights Check.
Alexander Lopez
alex.lopez at opsys.com
Wed Jan 11 19:45:12 MST 2006
It may be a little complicated but you can nest Authenticate commands or
you can use variables loaded from a files via an AGI.
example 1
exten => 900,1,Authenticate(password-list-of-autherorizated users)
exten => 900,2,Authenticate(password-list-for-opton)
exten => 900,102,Playback(you are not auith)
example 2:
exten => 900,1,AGI(what-rights-do-I-have)
exten => 900,2.Goto(900-${RIGHTS},1)
exten => 900-full,1,Authenticate(path-to-file)
exten => 900-limited,1,Authenticate(path-to-file)
example 3
You can do the whole thing with an AGI. Authentication, Validation, and
even execution.
________________________________
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Alvaro
Parres
Sent: Wednesday, January 11, 2006 8:51 PM
To: asterisk-dev at lists.digium.com
Subject: [Asterisk-Dev] Authenticate App with Rights Check.
Hi list, becouse a requirement of one client i have
to program a Authenticate App, that authenticate
and also check if the user have permission for doing it.
I have been thinking to use the actual Authenticate module
only with some changes. For check the rights of the user.
The first think i want to consult all is the password and rights
file to use:
I was thinking on a fiel with the next format:
account_code:password:list_of_rights_separte_by_comas
i mean we can have somthin like this
0001:1234:4,3,6,10,78
0002:4532,12,5,3,1
And the command will be
exten _900.,1,AuthRights(/path/to/file|3|j)
this will search te user password and then check if he have the
right 3.
I will start progamming this, i'm open for suggestions.
Alvaro Parres.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060111/37a221f0/attachment.htm
More information about the asterisk-dev
mailing list