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>
ldap2csv.pl -h 192.168.1.2 -D cn=admin,o=novell -w novell -b ou=people,o=novell -f attrs.txt objectclass=user
- The user and password are optional. If not specified, an anonymous bind will be done.
- The attributes file must be in this format:
Here's an example attributes file:
- 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.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.