I am attempting to modify your script to create multiple mail and cn
attributes, each with a different value, which is the alias.  However,
with VBS it replaces the value instead of adding a new one.  Do you know
how I can modify this to add multiple mail attributes?

In your script, I am attempting to change the following:

        Set oUser = oDomain.Create("inetOrgPerson", "uid=aliases")

        oUser.Put "uid", "aliases"
        oUser.Put "sn", "aliases"

        For i=0 To UBound(arrValueNames)
                sEMail = arrValueNames(i)
                If sEMail = "nobody" Then
                        StdOut("Skipping 'nobody'")
                Else

                        sDstEmail = sEMail & "@" & sAliasTargetDomain
                        oUser.Put "cn", sEMail
                        oUser.Put "mail", sDstEMail
                        oUser.SetInfo
                        StdOut(sEMail & ": " & sDstEMail)               
                End If
        Next

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanford
Whiteman
Sent: Wednesday, November 15, 2006 10:44 PM
To: Sanford Whiteman
Subject: Re[3]: [IMail Forum] LDAP content

> and the mailNickname attribute is a tiny part of that.

^H^H^H^H^H^proxyAddresses

--Sandy

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

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/

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