473,788 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Editable for only specific active directory user goup

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!

Jun 29 '07 #1
2 1515
On Jun 29, 12:03 pm, AxOn <hannu_tahvanai ...@hotmail.com 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_bu tton();
}
else
{
display_mini_fo rm_password_and _submit();
}

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

Jun 29 '07 #2
shimmyshack wrote:
On Jun 29, 12:03 pm, AxOn <hannu_tahvanai ...@hotmail.com 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_bu tton();
}
else
{
display_mini_fo rm_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
Jun 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3884
by: ASGMikeG | last post by:
Hi, How do I find the user object for the current user in Active Directory i.e. the user running my program ? Regards Michael
8
5483
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
7
2919
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the database into classes, which are used throughout the application. I have made class collections which, upon reading from the DB, create an instance of the class and store the DB values in there temporarily. My problem is that if user1 looks at...
6
2417
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any Idea about ASP.net Please Help Thanks in Advance.
3
3486
by: Luis Esteban Valencia | last post by:
Hello gusys, Is it possible to make my asp.net application add users to the AD , I also want to be able to delete users, modify their information, everything through a website. Thanks for the info
9
3180
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated Windows authentication. The error occurs on the FindAll method. The exceptions are as follows. anyway of getting the code working with Integrated Windows authentication (too annoying for user to enter user-name/password). Note I do need to use...
1
3895
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://domain") Dim mySearcher As New DirectorySearcher(enTry) Dim resEnt As SearchResult mySearcher.Filter = ("(objectClass=*)") mySearcher.SearchScope = SearchScope.Subtree
3
2654
by: Adrian Parker | last post by:
At the moment, we have a simple user id / password entry screen to login to our website, the data credentials are held in our database. We've now been asked to integrate with active directory so that users on the lan who are already logged in via active directory no longer need to log into the website, but automatically are logged in using their network userid (which should match the old website login). I can see how I could prompt for...
0
2744
by: jakobsgaard | last post by:
It is possible to Map a certificate to a Active Directory User Account from DotNet? Please provide an example. Best regards, Ejnar Jakobsgaard ------------------------------------------------- To map a certificate to a user account Open Active Directory Users and Computers.
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.