Re: Editable for only specific active directory user goup



shimmyshack wrote:
On Jun 29, 12:03 pm, AxOn <hannu_tahvanai...@xxxxxxxxxxx> wrote:
Hi,

I'm trying to make a php message board on our company's Intranet that
can only be edited by a specific user group. The group "writers" is
managed in active directory.

Is it possible to automatically check if the user that is logged in to
windows and is watching the site is a part of the group "writers"? And
if that user is a part of writers then an "Edit" button would be
displayed on the site. The intranet site runs on Apache 2.2

Thanks!

youre asking whether M$ windows sends usernames and passwords over
port 80 to apache, and whether apache can understand them if it does,
just use a separate password file with a small php script

if( user_authd() )
{
display_edit_button();
}
else
{
display_mini_form_password_and_submit();
}

form posts back to same page the function user_authd checks a small
file or db and edit button appears

http://www.developer.com/lang/php/article.php/3100951

Arjen
.


Quantcast