> cool solutions home   > cool tools home
LDAP Error Count 2.0
Count all the LDAP error codes in a dstrace or iMonitor log file.
Reader Rating    from ratings rate this article
View a Printer Friendly Version of this Page Send this page to a friend
vitals
Updated: 7 Feb 2005
File Size: 1K
License: Free
Download 1:  ldaperrcnt.zip
Publisher: Jim Schnitter
E-mail: JSchnitter@TAKETHISOUTnovell.com
disclaimer
Please read the note from our friends in legal before using this file.
details

Administrators can use this tool to quickly determine the result of every LDAP operation.

It works in conjunction with log files created as per TID 10062292.

The tool presents a report of every LDAP result code found in the log file. The result codes are also translated into a descriptive message.

Finally, the tool returns an overall count of the total number of LDAP operations.

The program has been tested on WindowsXP using ActiveState's Perl and RedHat AS 2.1. It should work on any platform that has Perl installed.

New with Version 2.0

  1. It's been tested on SLES9.
  2. Missing LDAP error codes between 91 and 97 have been added.
  3. It has better error handling and prints a usage message, if an trace file isn't specified on the command line.

Sample output report:
5888 : LDAP Bind
16377 : LDAP Search
3424 :LDAP Unbind
1 :LDAP Compare
 
22030 :LDAP Code 0 (SUCCESS)
1 :LDAP Code 32 (NO SUCH OBJECT)
239 :LDAP Code 48 (INAPPROPRIATE AUTH)
5 : LDAP Code 49 (INVALID CREDENTIALS)
 
22275 :Total Operations