PHP script to check user status

I've been using the attached PHP script as a quick way of checking the login habits / roles / subscriptions / externalSystemIDs etc. of individual Luminis users and thought that it may be of use to others.

Some comments about the script...
* Ensure that it is in a password protected directory on the webserver - i.e. don't let everyone see this.
* Server on https if paranoid
* Change the LDAP connection strings in the script to your particular environment
* Ensure that others cannot read the script if you use the Luminis sysadmin credentials - Better to use a different LDAP user ;-)
* Enable LDAP support on your PHP installation!

Regards
David.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Apache LDAP module

This is an old post (January 2006) that I'd completely forgotten about, but I received an email yesterday with some questions. Here's the answer...

For this to work, you need the LDAP module loaded. Look in httpd.conf for a line similar to:

#LoadModule ldap_module modules/mod_ldap.so

Remove the # (comment) to enable it and restart apache.

Failing that, have a look in the error logs for any error messages

/var/log/apache2/error_log

Also, this was based on Luminis 3, so the LDAP structure may be slightly different in Luminis 4 - it's definitely changed in Luminis 5.

Syndicate content