Creating a WinPOP MailBox from an ASP Net Application

G

Guest

Hello,

I want to call a Command like

winpop add username@domainname /createuser: password

From a normal .Net Windows Application this is working without a problem.
The same code called from a ASP Net Application or a Windows Service
Application is not executed. Also if I do an impersonation to a local admin
account before executing the Code.
(It makes no difference if I use shell or Prozess.start to execute the
command.)

Any suggesstions?

Greetings from Germany
Markus
 
C

Chris Dickens

I am having this exact same problem Markus - have you located a solution
yet? Anyone from Microsoft help out here?

I have tried a number of things:

- I have tried COM interop with the P3Admin interface which works great for
retrieving information about anything in the system, but nothing works that
requires modification (ie: creating a domain, mailbox, or changing password)
Gives the same Access is Denied errors for both P3Admin via COM or
Process.Start on WINPOP.
- In a virtual machine, I added Everyone full control to C:\ drive and all
subfolders (with the reset child objects option)
- In the same virtual machine, I added Everyone full control to each
registry hive starting at the root.
- In the same exact web, I used the P3Admin interface with classic ASP (ala
how the Server Appliance administrator works - no problems here!)
- In the same web using ASP.NET, I used Process.Start on "net.exe help" and
was able to see the StandardOutput, so starting of processes itself is not
the problem.
- Amazingly enough, anything involving this WINPOP.EXE gets Access is
Denied - "winpop.exe list" got an Access is Denied.
- Like you, I've twiddled with identity impersonate="true" and it doesn't
seem to matter.

--Chris
 
G

Guest

Hello Chris,

Sorry but I didn't get a answer yet, and just wrote a Programm started by a
locked on user... This is working...

Markus
 
C

Chris Dickens

Unfortunately, for my application the web is the only way possible. I don't
want to write this app in Classic ASP for sure - someone please help! :(

--Chris
 
C

Chris Dickens

Alright - I'm convinced that this has something to do with Code Access
Security since I've pretty much wiped out all the other possibilities that I
am aware of. Does anyone know how I can grant my Interop DLL with rights to
make changes to the registry and folders outside of the web application's
path? I think this is where the exception is occurring.

--Chris
 
J

jmunsch

I have been able to successfully create domains and email accounts using
P3Admin in .net. No permission problems; I am running this admin
applicaiton in the under the context of an admin ID

When trying to invoke winpop.exe to manage email passwords it did run
into the Access Denied problem discussed in this thread.

You need to use credentials on your process' startInfo
objProcess.StartInfo.UserName = "userid"
objProcess.StartInfo.Password = pwd 'NOTE password is a
Security.SecureString

Now that I have gotten past the permissions problem another issue has
come up. The process starts but then hangs.

Rather than using winpop to change passwords I would rather use
ChangePassword method in P3Admin.

Does anyone have some sample code showing the usage of ChangePassword?
The problem I am having is determining what is expected for "vID"
oConfig.Authentication.Item(vID).ChangePassword(user.UserID,
user.Password, user.OldPassword)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top