//////////////////////////////////////////////////////////////////////////////
[MDaemon] Create MDaemon users with ASP
Original Author: Jia Jun (Jaron)
Website: http://www.jiangdu.net;
Mail: jaron@jdinfo.net
First published in Jiangdu Information Network, 2003-01-12
//////////////////////////////////////////////////////////////////////////////
<%@ Language=vbscript%>
<!--METADATA type= "TypeLib" uuid= "{01e88d14-f479-4ca5-9ca8-ebd2eed74c83}"-->
<HTML>
<BODY>
<H1 align=center> Online Registration Demo </H1>
<%
Dim smessage
If Request.Form ("Cmdadduser") <> "" Then
Dim Omduser
Dim Omduserinfo
Dim Nresult
Dim Sfullname
Dim sUserName
Dim Spassword
Set Omduser = Server.CreateObject ("Mdusercom.mduser")
Set omduserinfo = Server.CreateObject ("Mdusercom.mduserinfo")
If omduser.loaduserdll () = True Then
Omduser.inituserinfo (Omduserinfo)
Omduserinfo.fullname = Sfullname
Omduserinfo.mailbox = sUserName
Omduserinfo.password = Spassword
Omduserinfo.domain = Sdomain
Omduser.filteruserinfo (Omduserinfo)
Nresult = Omduser.adduser (omduserinfo)
Select Case Nresult
Case Mddllerr_noerror
smessage = "User Registration successful!"
Case Mddllerr_userexists
smessage = "Username: '" & sUserName & "' already exists! Registration failed! "
Case Else
smessage = "Registered user failed!" Error code: "& Nresult
End Select
Omduser.freeuserdll
Else
smessage = "Error: DLL file cannot be loaded"
End If
Set Omduser = Nothing
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service