|
Home > Archive > Apache Server configuration support > May 2006 > Newbie authentication question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Newbie authentication question
|
|
| can2002 2006-05-18, 7:16 pm |
| Hi,
I'm cutting my teeth on Apache on an OpenSUSE 10 box at the moment.
I need to set up a page that initiates a call on an Asterisk (VoIP)
system. The page has a basic form that calls a php script that
initiates a call using Asterisk's management interface.
I've got it working fine up to now without any authentication; however I
now want to introduce auth. I've managed to get basic authentication
with a flat file working fine, which is good. What I'd like to be able
to do now is make use of the username submitted when I submit the form.
To explain what I'm trying to do, the page allows people to enter a
telephone number to be called from their browser. After clicking on
Submit, th Asterisk system initiates a call to the users' extension and
when they answer, Asterisk connects them to the number they put in the
browser. What I'd like to do if possible is make their apache username
match their extension (e.g. define users 1001, 1002, 1003, etc. in the
htpasswd file) and then pass the username through to the php script that
initiates the call (at the moment I'm submitting a static extension
through every time).
Any help would be appreciated!
Chris
| |
| Davide Bianchi 2006-05-19, 7:18 am |
| On 2006-05-18, can2002 <can2002@nospammailDOTnet> wrote:
> What I'd like to be able
> to do now is make use of the username submitted when I submit the form.
This has nothing to do with Apache or with Authentication, check the
PHP documentation about how to access the environment variable or
move completely the authentication to PHP.
Davide
--
Tip of the day:
The Windows 95 CD-ROM makes an excellent skeet shoot target.
|
|
|
|
|