Oscar was posted at 99-6-15 09:44:00 in Joy ASP:
Automate the creation of a virtual directory using ADSI, ASP, and a pair of magic tricks, Part II
Tom Moran and Jeff sandquist
February 22, 1999
We're back. The second part of this article, which is eagerly awaited, is now here. And I think you will spend the whole evening watching your cat clean yourself.
This month, Jeff sandquist and I completed our Dynamic Directory Service interface (Active directo
Step 1: Creating a Linked Server.
EXEC sp_addmediaserver 'adsi', 'active Directory Services 100', 'adsdsoobject', 'adsdatasource'
Step 2: Creating a SQL Server Authenticated Login
EXEC sp_add1_srvlogin @ rmtsrvname = N 'adsi', @ locallogin = NULL, @ useself = N 'false', @ rmtuser = N 'domain \ account', @ rmtpassword = N 'Password'
For SQL Server authorized logon, you can use sp_addjavassrvlogin system stor
Step 1:creating a linked Server.
EXEC sp_addlinkedserver ' ADSI ', ' Active Directory Services 2.5 ', ' adsdsoobject ', ' Adsdatasource '
Step 2:creating A SQL Server authenticated Login
EXEC sp_addlinkedsrvlogin @rmtsrvname = n ' ADSI ', @locallogin = NULL, @useself = N ' False ', @rmtuser = N ' domain\account ', @ Rmtpassword = N ' Password '
For SQL Server authorized logins, you can use the sp_addlinkeds
Last time I spoke about how to use ADSI to manage web servers. This time I discussed how ADSI manages NT.To use ADSI to manage IIS, OP4 is required.NTLM is required for nt adsi management.NTLM provides the following objects: Domain, Group, and User.You can add groups and users through the domain object.Warning:In the f
What I said last time is how to use ADSI to manage Web server this time to discuss how ADSI manages NT
Using ADSI to manage IIS requires OP4
For an NT to be ADSI managed, you need NTLM
NTLM provides the following objects: Domain, Group, and User.
You can add groups and users through domain objects.
Warning:
The followi
How
ADSI
Query user attributes in?
Dim X On Error resume next'Set x = GetObject ("winnt: // kenfilszwin2k/Allen ")Strldap = "LDAP: // kenfilszwin2k/CN = Allen he, ou = kenfilsz, Dc = kenfilsz, Dc = com" Set x = GetObject (strldap)Response. Write "Object Name:" X. Name "Response. Write "object class:" X. Class " Set CLS = GetObject (X. schema)For each op in Cls. mandatoryproperties 'Returns the attributes that must be set for the
Child.name
Next Child
EndIf
With this enumeration operation, we can access all package container objects and directory objects in the directory subtree.
(3) Read the properties of the directory object.
The easiest way to read an object's properties is to pass directly through the object's Iads::get or Iads::getex interface member functions, such as:
Dim MyUser as IADs
Dim Mycommonname as String
Set myuser = GetObject ("Winnt://myserver/myname")
Mycommonname = Myuser.get ("Fullname")
Of course,
Use ASP settings to specify site CPU maximum usage
'=================================================
' Function Description: Set the maximum CPU usage for the specified site
' This function uses ADSI and requires Administrators group user rights
' Function name: Setcpulimitvar (Computer,sitenum,limitvar)
' Usage: Setcpulimitvar computer name, site number, maximum limit (100=1%,1000=10%)
' Example: Setcpulimitvar "LocalHost", "2", "2000"
'=====
Programming | control | data | Database very valuable code, the following code is compiled using ADSI's object database concept, so long as you understand what I said in the previous article, the following code is just ADSI his experiment as long as you have the following idea, no matter what database to deal with, Just don't know the structure of the database and don't be afraid.
'---Define DSN names in array
Database_list=array ("dsn_1", "dsn_2", "D
(obj. Schema)
Set sc = GetObject (CL. Parent)
Set PR = sc. GetObject ("Property", "Owner")
MsgBox "Attribute:" Pr. Name
MsgBox "Syntax:" Pr. Syntax
Set sy = GetObject (SC. AdsPath "/" PR. Syntax)
MsgBox "Syntax object:" Sy. Name "of Oleautodatatype:" Sy. Oleautodatatype
(6) Add or remove directory objects.
Using the IADsContainer interface method of the package container object (see table 4), we can easily add or delete directory objects, for example:
Dim Container as IADsContainer
Dim N
would be a heavy burden to not reconfigure 20 servers, but maybe it is not necessary. For those who interact with the web every day
People should remember this quote--change is timeless. So we only expect it to get better.
There are indeed two problems in previous versions of IIS. First, the lack of a clear, open Third-party management product interface and a customized
An automated programmable interface for general management tasks. Second, a mechanism for controlling directory services to en
Functions | control | Virtual Host | functions | Virtual host uses ASP to set the maximum usage of the site CPU
'=================================================
' Function Description: Set the maximum CPU usage for the specified site
' This function uses ADSI and requires Administrators group user rights
' Function name: Setcpulimitvar (Computer,sitenum,limitvar)
' Usage: Setcpulimitvar computer name, site number, maximum limit (100=1%,1000=10%)
' E
Use AUO (Active user Object) to maintain user information
If you don't understand some of these technical terms,
Please refer to the article I sent earlier about ADSI.
Now when the Web site programming, to save the user information is often used
Technology is:
1. Using the Session object to save user information is a common way to allow
You add a session variable to any location in your program, and it's not
Declared variables for type checking, its s
classdefinition = GetObject (Vroot.schema) '//Get class definition of virtual directoryAsmusthaves = Classdefinition.mandatorypropertiesAsmayhaves = Classdefinition.optionalpropertiesI=1%>On Error Resume Next
For each Thing in asmusthavesResponse.Write "Thing ""i = i + 1Next%>
I=1For each Thing in asmayhavesResponse.Write "Thing ""i = i + 1NextOn Error Goto 0
'//Create virtual directoryResponse.Write Svirdir ""Set VDir = vroot.create ("IIsWebVirtualDir", Svirdir)
'//Set the two properties of
iis| Create | control | Virtual Directory This is the site used to rush the stuff, the result is almost finished the police uncle to a website to record, friends do not do, I also shut down,
Turn it out and share it ~
It is said that control of IIS and other MS garbage (MS FTP, user management ...) You can use ADSI and WMI (Win2k3 is good),
Refer to the information of netizens, have copyright problem trouble email
The original is written according to
Summary
Windows Scripting host (wsh) is a language-independent Scripting host for 32-bit Windows platforms. Windows Scripting host will be integrated into the update program and new version of Microsoft Windows.
Introduction
Windows Scripting host (wsh) is a language-independent Sc
"In fact, we have used this method ourselves," he said. This is commonly referred to as Remote scripting (scripting), which many people think is just a patchwork. However, this does provide a mechanism to avoid page refreshes.
Remote Scripting Overview
Basically, a remote script is a type of remote procedure call. You can interact with the server like a normal
Now, many Java developers like to use scripting languages in the Java platform, but it is sometimes not feasible to use dynamic languages compiled into Java bytecode. In some cases, it is quicker and more efficient to write a script part of a Java application directly or to invoke a particular Java object in a script.
That's why Javax.script. The Java scripting API, introduced from Java 6, fills the gap be
Overview
With remote scripting, developers can now create seamless (seamless), interactive Web applications in which browsers can invoke scripts on the server without reloading the Web page.
Prior to remote scripting, in order to interact with the server, the developer had to require the user to reload the called page and often load it multiple times. This causes the server to use slow, inconsistent, user e
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.