Novell Home

Checking for Duplicate Usernames

Novell Cool Solutions: Trench
By Israel Forst

Digg This - Slashdot This

Posted: 16 Jun 2003
 

DirXML expert Israel Forst wrote this tool to help him find duplicate user names that exist in a in different OU's of a tree.

You can download the free tool in the Cool Tools section at http://www.novell.com/coolsolutions/tools/1689.html

Usage is pretty straight forward. Copy the Jar file into a directory then type:

java -cp DupSeach.jar dupeFinder <host name> <login dn> <password> <search filter> <search Attribute> <output filename>

Where:
<host name> is the hostname or IP address of the LDAP server
<login dn> is a user with rights to browse the entire tree
<password> password of the user
<search filter> LDAP search filter, in case you want to search only users or something
<search Attribute> the attribute you want to search (CN or UID)
<output filename> the name of the file you want to write duplicates to

Example:
java -cp DupeSearch.jar dupeFinder fs1.Acme.com "cn=admin,o=Acme" secret "(objectclass=*)" CN "c:\temp\duplicates.txt"

You must have Clear Text Passwords enabled on your LDAP Server.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell