Who's Affected & Login Script Listing

Who's Affected & Login Script Listing

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 search 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.

download url: http://www.devboats.co.uk/idmphp/lscriptlist/index.html

home page url: http://www.devboats.co.uk/idmphp
Attachments

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments
Worked a treat !
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2012-11-05 18:32
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.