eDirectory Collisioned Object Finder v1.0

eDirectory Collisioned Object Finder v1.0

Program Input:


LDAP source server IP address 
Starting context in target eDirectory tree



Program Actions:


The program will use the IP address and context entered to extract the schema naming attributes and all object RDNs from the context entered and below. The schema naming values are then used with 'regular expressions' (regex) to identify all collisioned objects in the extracted data.



The collisioned object data is then 'context reversed' and sorted to produce all collisioned objects in container order.


The main results output file is called 'sorted_collisions.txt'.



Program Requirements:


The program should run on any Linux/Unix OS that supports ldapsearch, grep, egrep, awk, sed and cut. It has been tested on SLED10, SLES10/OES2 SP1 and SLES11.



Installation:



  • Untar the code to a new directory.

  • Use chmod to make sure you can execute the perl program and the shell scripts (e.g. chmod 755 *).

  • Verify connectivity to the intended LDAP source by pinging the LDAP server.

  • Execute the program using: perl getcolls.pl



Notes: To extract all objects from a tree enter the root or organization of the target tree:

e.g.

t=MyTree

o=MyCompany




The code will correctly handle white space in any context entered (e.g. 'ou=IT Dept.o=MyCo').



Working files created (these are retained for debug purposes and can be deleted at will):


 collisions.txt
dnfixed.txt
dnlist.txt
getdn.pl
revcolls.txt
schema.pl
schema.txt
schema2.txt
schema3.txt
schema4.txt
schema5.txt


Tags (1)
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.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2009-08-21 02:33
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.