> 1)  Aliases2ldap  is  only  necessary for virtual hosts, not ip-full
> hosts?

It'd  be  necessary  for both IP-ful and IP-less virtual hosts (n.b. I
like  to use IMail's terminology, in which both are virtual hosts), as
neither stores aliases in LDAP by default.

> 2)  Is  it  only  one domain at a time, or is there a way to
> batch them all (for multiple domains/hosts)?

It's  written for one virtual host at a time, but you could wrap it in
a  batch  file if, for one example, you have all of your topdirs under
the  same  parent,  d:\mailboxes, and each topdir has the same name as
the virtual host:

     for   /f   %i   in   ('dir  d:\mailboxes  /b  /a:d')  do  cscript
     aliases2ldap.vbs -lv %i -d cn=root,o=%i -w <root_password>

All  of  the  LDAP  admin usernames and passwords would have to be the
same for this command line, and, as mentioned, your topdirs have to be
in  the form d:\mailboxes\mail.example.com. A foolproof way to extract
the domains is to enumerate the actual registry keys, which is a cinch
but  not  built-in  to  the script at this time. You can use Declude's
DOMLIST.EXE to dump the domains to a file, though, and then:

     for  /f %i in (domlist.txt) do cscript aliases2ldap.vbs -lv %i -d
     cn=root,o=%i -w <root_password>

> And, finally when I run the script from a command prompt, I run:

> Cscript aliases2ldap.vbs -lv example.com -d root -w rootpassword

You  have  to  use  a  real  LDAP  DN  to log in. By default, the LDAP
administrator     is    stored    in    o=<virtual_host_name>,    i.e.
cn=<LDAP_admin_user>,o=<virtual_host_name>.

That should help.

--Sandy


------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
e-mail: [EMAIL PROTECTED]

SpamAssassin plugs into Declude!
  http://www.mailmage.com/products/software/freeutils/SPAMC32/download/release/

Defuse Dictionary Attacks: Turn Exchange or IMail mailboxes into IMail Aliases!
  
http://www.mailmage.com/products/software/freeutils/exchange2aliases/download/release/
  http://www.mailmage.com/products/software/freeutils/ldap2aliases/download/release/


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to