Normally a tool named LDIFDE is used to export Active Directory information from a command-line interface, but it does not export passwords. This is by design, since exporting passwords in cleartext is inherently insecure, and passwords are not even stored in AD directly -- they are stored as hashes in AD. You may want to look into using Windows 2000 Services for Netware from Microsoft instead. Trying to export passwords from AD is not supported in any legitimate fashion as far as I know.
This was first published in March 2003