Login Script Reporting Utilities

Two PHP Scripts reporting from login scripts.

The first script, lscriptlist.php is a report on login scripts in an eDirectory Tree. The user can select whether to search only for login scripts containing a given sarch string, or to export all login scripts. Login scripts may be searched for in all the main Object classes containing login script attributes. The script optionally adds line numbers to the script exports.
The search options is useful when attempting to find all locations where a particular server is referenced, or alternatively in finding all instances of a given command.

The second script, whosAffected.php, uses much of the same code but is intended as a help desk tool. Given a server name as a search string it reports all container login scripts containing that string, all users in the affected OUs and all users with home directory attributes that contain that string.
Our help desk requested this utility so that in the event of a server outage they had a single utility that would report all the affected users.

To install this you need to have a web server which supports PHP and LDAP. The tool is tested and installed on both Netware 6.5 and OES2 SP2 with Apache, but should be capable of running on other combinations of web server and operating system provided that php is installed and configured with LDAP support. I recommend you create a new folder for the application files in the web server root folder. On an "out of the box" NW65 install this will be sys:Apache2\htdocs, so create sys:Apache\htdocs\lscriptlist. Extract lscriptlist.zip into this folder. No other configuration is necessary. On OES it is, at a minimum, necessary to change one line of code. This is documented in the region of line 150 in the scripts. The program creates a temporary file on the file system and Linux requires that you set a full path.

To run the installed scripts start a web browser on an appropriate device and point it at the scripts. In the example above the url would be http://[servername]/lscriptlist/lscriptlist.php and http://[servername]/lscriptlist/whosAffected.php respectively. From there on it should be self explanatory. The script should run on any reasonably recent web browser and client operating system.

Change History

  1. 5th November 2011 - Initial public release.

Download

Download zip archive


These snippets and utilities are licensed under the University of Illinois/NCSA Open Source License. Here is the text of the license as it applies to this code.

To contact the writer please use this form, or if you prefer use Linked In or even Facebook.

HTML check . CSS check

© Jim Champ, last edit