[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ldap: export account data (csv) from command line.



Hi yis,

these days I had to extract account data (login, full name)
from an elderly tjener's ldap.

Quickly, I archieved to grep and paste outputs of "ldapsearch -x"
in order to accomplish such a list.

Only later, I had to learn that some users were missing in my
hand made list. Apparently there is a limit of 1,000 users when
using ldapsearch anonymously.

Using ldapvi, I managed to get all information I need, and
could paste my grep-lines into one csv file. This time,
I bound to DN-admin, of course. 

I failed to use the same bind-options for ldapsearch, and
after all, I wonder if there hadn't been an even more
comfortable way to export accounts to csv (like ldif2csv?).

Cheers,
Ralf


Reply to: