i am tring to convert my ldap entries to csv format

i have just started working on zimbra

i executed ./ldap-csvexport.pl with attributes i wanted but am getting this error

(Server says: IO::Socket::INET: connect: Connection refused)

any help in this matter will be appreciated

thanks and regards
Nihkil Shetty