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 2003 Service Pack 1 is C:\Program Files\Microsoft Identity Integration Server\bin\assemblies\.
To create a connected data source extension, complete the following steps:
To create a new C# class library project using Visual Studio .NET
The Microsoft Visual Studio .NET 2003 development environment appears.
The name of the new project 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.
For the import interface, implement the IMAExtensibleFileImport interface. For the export interface for a call-based data source, implement the IMAExtensibleCallExport interface. For the export interface for a file-based data source, import the IMAExtensibleFileExport interface.
To implement the interfaces
using Microsoft.MetadirectoryServices;
to the
declarations section above the namespace in the source code.:
IMAExtensibleFile Import,
. For example, if the class name is
SampleMAFileExport then the class declaration would be public
class SampleMAFileExport : IMAExtensibleFileImport,
.public class SampleMAFileExport :
IMAExtensibleFileImport, IMAExtensibleFileExport
.public void GenerateImportFile( string filename, string connectTo, string user, string password, ConfigParameterCollection configParameters, bool fullImport, TypeDescriptionCollection types, ref string customData ) { }
public void DeliverExportFile( string fileName, string connectTo, string user, string password, ConfigParameterCollection configParameters ) { }
If you are implementing the IMAExtensibleCallExport interface to export data to a call-based data source, then change the code as appropriate.
To build the class library
If you see the following message, the extension was successfully built:
------ Build started: Project: Connected Data Source Extension, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... Building satellite assemblies... ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped
The connected data source extension file, which has a .dll extension, is in the bin\Debug folder of the project folder.
Before using the extension, install it in the MIIS rules extensions folder. The default folder for extensions is C:\Program Files\Microsoft Identity Integration Server\Extensions.
This procedure is optional. You can set Visual Studio .NET 2003 to install the connected data source extension automatically in the extensions folder as part of the build process.
To install the connected data source extension in the extensions folder
There are two folders in the Property Pages dialog box: Common Properties and Configuration Properties.
The default folder for rules extensions is C:\Program Files\Microsoft Identity Integration Server\Extensions.
Example: Connected Data Source Extension for Call-Based Data Sources, Example: Connected Data Source Extension for File-Based Data Sources