This is an addendum to various PHP scripts I've posted. Its solely a demonstration of how to read Operational attributes using LDAP and PHP. All this script does is to produce text output to the Console screen - it demonstrates the principle rather than doing any useful reporting.
Comments in the code show what is going on, and the crucial call is included in different forms which can be commented out and uncommented to demonstrate what is happening.
To run this script fill in the user id, password, server and base ldap variables, copy it to an appropriate location on the server, and run it from the console. If the file is in sys:phpscripts on a Netware server then the command line would be:-
load php sys:/phpscripts/readopatt.php
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.