• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp
KEEP IN TOUCH

Posts tagged authnz_ldap.load

Web Dev > Password protect webpage(s) with PHP & LDAP

May27
2011
8 Comments Written by Scott Rowley

The title says it all, this will allow you to restrict the access to a page or pages running php with access to LDAP. I’ve used this a few times for some internal things we don’t want everyone getting access to or similar scenarios. As always if it works for you, please leave a comment and if it doesn’t please leave a question and I’ll see what I can do to help you out.

Enable LDAP

First thing you’ll need to do is to install ldap for php & enable the needed mods, ldap.load & authnz_ldap.load

On Ubuntu:

apt-get update
apt-get install php5-ldap
cd /etc/apache2/mods-enabled
ln -s ../mods-available/ldap.load ldap.load
ln -s ../mods-available/authnz_ldap.load authnz_ldap.load
apache2ctl graceful

READ MORE »

Posted in Ubuntu, Web Development - Tagged apache, apache2ctl, graceful, ldap, ldap.load, login, mods-available, mods-enabled, php, php5-ldap, restricted, secure, security
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Sudo Bash Member sites

Iowa SAR
Des Moines, Iowa Tattoo & Piercing
The Man In Black

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

RSS HowToGeek

  • What’s the Difference Between Bitcoin, Bitcoin Cash, Bitcoin Gold, and Others?
  • Geek Trivia: When Khrushchev Visited IBM’s California Facility In 1959, He Brought The Concept For What Home With Him?
  • Six Of The Best In-Ear Noise Canceling Earbuds
  • Microsoft Kills OneNote Desktop in Favor of the Microsoft Store Version
  • Skill Blueprints Lets You Design Your Own Alexa Responses

RSS TheGeekStuff

  • Happy New Year 2018 – From Geek, Dolls and Penguins
  • How to Install Configure LDAP Client for 389 Directory Server
  • 15 mysqlbinlog Command Examples for MySQL Binary Log Files
  • How to View Chrome OS Current version and Force Update Chromebook OS
  • 7 Nginx Rewrite Rule Examples with Reg-Ex and Flags

RSS LifeHacker

EvoLve theme by Blogatize  •  Powered by WordPress Sudo Bash
By Geeks - For Geeks

Back to Top