|
 |
asp_cdo thread: problems on deleting a NT / Exchange Account
Message #1 by Eduardo Correa Goncalves <Ecorrea@f...> on Wed, 3 Jan 2001 13:50:09 -0300
|
|
Hello experts,
I've written an ASP application which is used to create NT and Exchange
accounts through ADSI (in a NT 4.0 / Exchange 5.5 Server). I had spent
some
days studying ADSI and chasing for samples on Internet before having
beginning writing my application. I figured out that I had to follow
three
basic steps to accomplish my goal:
1) Create a NT User
2) Create a Mailbox
3) Associate this NT User with his Mailbox and set the Security
The first two steps were very easy to be done. I've just cheked out the
ADSI
ASP PROGRAMMER'S REFERENCE book (Steven Hahn) and picked up some code
samples at the Microsoft site.
But the 3rd step has seemed a bit confused. I've been using a DLL that
I
found in a book called DEPLOYING EXCHANGE SERVER 5.5. Its name is
ExAdmin.DLL. Here=B4s the code sample used to Associate the NT User
with his
Mailbox and set the Security:
Set objExAdmin =3D CreateObject("ExAdmin.Lookup")
objExAdmin.SetSecurity CStr(strDomain), CStr(strAlias),
CStr(strServer),
CStr(strOrg), CStr(strSite), CStr(strContainer)
where strDomain, strAlias, strServer, etc are variables / constants.
Well, this DLL seemed to be working well... I am creating my accounts
normally, and I am able to log into the OWA. But it's been happenning a
problem when I delete some mailbox / NT account. When I try to recriate
this
account (I mean to create a new NT / Exchange account with the same
name of
the one that was deleted) I can't log into OWA anymore. An error occurs
and
the OWA application redirects to the ERRINBOX page. There=B4s an
account I
delete a week ago. I tried to create a new one with the same name of
that
one, and the error occurred (despite the NT and Exchange account were
created in my server. This is whay I think something is going wrong
with
this ExAdmin.DLL).
Anyone knows what is happening?????? Is it some Exchange Server bug?
__________________________________________________________
Eduardo Corr=EAa Gon=E7alves - Analista de Sistemas
:
(0xx21) 559-6009
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com
Message #2 by Srikieat Sriprawatkul <srikieat@y...> on Wed, 3 Jan 2001 21:17:33 -0800 (PST)
|
|
I also develop the mail application as you done and i
have finished it..but I use acctcrt.dll to create the
mailbox and nt account. Do you want the example file
to create mail application? Please let me know I will
sent it to you if you want.
--- Eduardo Correa Goncalves <Ecorrea@f...> wrote:
> Hello experts,
>
> I've written an ASP application which is used to
> create NT and Exchange
> accounts through ADSI (in a NT 4.0 / Exchange 5.5
> Server). I had spent some
> days studying ADSI and chasing for samples on
> Internet before having
> beginning writing my application. I figured out that
> I had to follow three
> basic steps to accomplish my goal:
>
> 1) Create a NT User
> 2) Create a Mailbox
> 3) Associate this NT User with his Mailbox and set
> the Security
>
> The first two steps were very easy to be done. I've
> just cheked out the ADSI
> ASP PROGRAMMER'S REFERENCE book (Steven Hahn) and
> picked up some code
> samples at the Microsoft site.
>
> But the 3rd step has seemed a bit confused. I've
> been using a DLL that I
> found in a book called DEPLOYING EXCHANGE SERVER
> 5.5. Its name is
> ExAdmin.DLL. Here´s the code sample used to
> Associate the NT User with his
> Mailbox and set the Security:
>
> Set objExAdmin = CreateObject("ExAdmin.Lookup")
> objExAdmin.SetSecurity CStr(strDomain),
> CStr(strAlias), CStr(strServer),
> CStr(strOrg), CStr(strSite), CStr(strContainer)
>
> where strDomain, strAlias, strServer, etc are
> variables / constants.
>
>
> Well, this DLL seemed to be working well... I am
> creating my accounts
> normally, and I am able to log into the OWA. But
> it's been happenning a
> problem when I delete some mailbox / NT account.
> When I try to recriate this
> account (I mean to create a new NT / Exchange
> account with the same name of
> the one that was deleted) I can't log into OWA
> anymore. An error occurs and
> the OWA application redirects to the ERRINBOX page.
> There´s an account I
> delete a week ago. I tried to create a new one with
> the same name of that
> one, and the error occurred (despite the NT and
> Exchange account were
> created in my server. This is whay I think something
> is going wrong with
> this ExAdmin.DLL).
>
> Anyone knows what is happening?????? Is it some
> Exchange Server bug?
>
>
>
__________________________________________________________
> Eduardo Corrêa Gonçalves - Analista de Sistemas
>
>
> :
> (0xx21) 559-6009
>
>
>
>
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com
|
|
 |