Web authentication using LDAP and Apache?

2

2

I am working on a project of setting up a web administered inventory database for my work (or if they don't want it then i'll enjoy learning about it) and hit the problem of allowing only authorized users to access the website (In its testing/development phase, I allow all people to navigate to the website to add entries to the database and query it). I am trying to make it so only particular users in the domain (Active Directory) are allowed to access the website after they are queried about their credentials. I read that Apache (I am using a LAMP server) has a means of asking visitors to the website to provide LDAP credentials in order to gain access to the site, but I wasn't sure if that was exactly what I was looking for. If anyone has experience in the LDAP configurations for Apache that I mentioned or any other means of securely authenticating with websites I would greatly appreciate advice or a direction to go

Thank you!

Stephen R

Posted 2012-05-09T16:18:35.343

Reputation: 208

@RedGrittyBrick Didn't know I had to review answers. Thanks for the heads up – Stephen R – 2012-05-09T16:48:46.493

why don't you use php (or your language of choice) to connect and authenticate through LDAP. You can see how it is done in media wiki for example. – jet – 2013-03-19T00:01:48.037

Answers

1

Hextht

Posted 2012-05-09T16:18:35.343

Reputation: 311

if you set the authentication as being needed to access the root page, then yes. – Sirex – 2016-10-12T18:52:19.200

When a user makes a connection to the web server that Apache is on (provided that the LDAP module you mentioned is being used), will the user be asked for their credentials before they are allowed to continue to the website? If that is the case then I will certainly pursue using the modules. – Stephen R – 2012-05-09T17:00:31.720