ZhangHuangbin wrote: odaraujo wrote:
I tried your import script. I've no error message. the file ldif seems ok. but nothing in the vmail folder. It's for a virtual domain.
Dovecot will create maildir automaticly when user login via POP3/IMAP.
There is nothing in iRedAdmin and login via roundcubemail fail.
I think the problem is here :
# Prompt to import user data.
Would you like to import them now?""" % (ldif_file)
answer = raw_input('[Y|n] ').lower().strip()
if answer == '' or answer == 'y':
# Import data.
conn = ldap.initialize(LDAP_URI)
conn.set_option(ldap.OPT_PROTOCOL_VERSION, 3) # Use LDAP v3