Tool

LDAP2CSV

Author Info

15 March 2005 - 5:35pm
Submitted by: jimsc

tool
Reads:

729

Score:
0
0
 
Comments:

0

license: 
Free

What makes this tool unique is that it can handle attributes that have multiple values. The administrator specifies the attributes and the maximum count for each one. The program discards values that exceed the count and provides null values for attributes that don't match the maximum count. You run the utility like this:

ldap2csv.pl -h < host> -D < user> -w < password> -b < base> -f < attributes file> < filter>

Example:
ldap2csv.pl -h 192.168.1.2 -D cn=admin,o=novell -w novell -b ou=people,o=novell -f attrs.txt objectclass=user

  1. The user and password are optional. If not specified, an anonymous bind will be done.
  2. The attributes file must be in this format:


  3. attribute_name, count
    attribute_name, count

    Here's an example attributes file:

    description,1
    cn,2
    mail,3
    sn,1
    fullname,1
    telephonenumber,1
  4. You'll need to download and install the perl-ldap-0.3202 module from www.cpan.org/. (This is already present on NetWare 6.5.)

Platforms: I've tested it on SLES9 and NetWare 6.5.

AttachmentSize
ldap2csv.zip1.17 KB

Author Info

15 March 2005 - 5:35pm
Submitted by: jimsc




User Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <cite> <code> <img> <ul> <ol> <li> <div> <dl> <dt> <dd> <b> <strong> <h1> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
13 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2008 Novell, Inc. All Rights Reserved.