Microsoft Identity Integration Server 2003 Developer Reference |
To create a password extension project, copy the Microsoft.MetadirectoryServices assembly to your development system and manually create a reference to the assembly. You can find the assembly in the bin\assemblies folder of the MIIS program folder. The default folder for Microsoft Identity Integration Server is C:\Program Files\Microsoft Identity Integration Server\bin\assemblies\.
To create a password extension using Visual Studio .NET, you must complete the following steps:
To create a new Visual Basic .NET class library project using Visual Studio .NET 2003
The Microsoft Visual Studio .NET 2003 development environment appears.
The new project name now appears in Solution Explorer.
To add a reference to the Microsoft.MetadirectoryServices assembly
Verify that Microsoft.MetadirectoryServices.dll appears in the Selected Components list of the Add Reference dialog box.
In Solution Explorer, Microsoft.MetadirectoryServices now appears as one of the references.
To implement the interfaces
Class1
to the name of your class.Public Sub BeginConnectionToServer(ByVal connectTo As String, ByVal user As String, ByVal password As String) Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.BeginConnectionToServer End Sub Public Sub ChangePassword(ByVal csentry As Microsoft.MetadirectoryServices.CSEntry, ByVal OldPassword As String, ByVal NewPassword As String) Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.ChangePassword End Sub Public Sub EndConnectionToServer() Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.EndConnectionToServer End Sub Public Function GetConnectionSecurityLevel() As Microsoft.MetadirectoryServices.ConnectionSecurityLevel Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.GetConnectionSecurityLevel End Function Public Sub RequireChangePasswordOnNextLogin(ByVal csentry As Microsoft.MetadirectoryServices.CSEntry, ByVal fRequireChangePasswordOnNextLogin As Boolean) Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.RequireChangePasswordOnNextLogin End Sub Public Sub SetPassword(ByVal csentry As Microsoft.MetadirectoryServices.CSEntry, ByVal NewPassword As String) Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.SetPassword End Sub
To build the class library
If you see the following message, the password extension was successfully built:
------ Build started: Project: Password Extension, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... Building satellite assemblies... ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped
The password extension file, which has a .dll extension, is in the bin\Debug folder of your project folder.
Before using the password extension, install the file in the extensions folder. The default extensions folder is C:\Program Files\Microsoft Identity Integration Server\Extensions.
This procedure is optional. Alternatively, you can set Visual Studio .NET 2003 to install the password extension automatically in the extensions folder as part of the build process.
To install the password extension in the extensions folder
There are two folders in the Property Pages dialog box: Common Properties and Configuration Properties.
The default folder for extensions is C:\Program Files\Microsoft Identity Integration Server\Extensions.