Article ID: 230680 - Last Review: September 30, 2003 - Revision: 2.0 INFO: Working with RDS HandlersThis article was previously published under Q230680 SUMMARY
With the advent of Microsoft Data Access (MDAC) 2.0, Remote Data Service (RDS) implements a new security feature called Handlers. These handlers are located in your Operating System root directory (that is, C:\Winnt\) inside the file Msdfmap.ini. The file is divided into three different types of Handlers:
MORE INFORMATION
Each type of handler is designed to cover a different area of security. A Connect Handler allows the developer to alias a data source name (DSN). A developer can use the handler name in place of the actual DSN in their code. The Connect Handler also allows for basic access privileges/>
Here is an example of a Connect Handler:
Inside Msdfmap.ini:
SQL Handlers function much like Connect Handler, with the exception that they replace SQL code.Sample VBScript code using the handler: Here, whenever the connect string is CustomerDatabase, RDS automatically substitutes DSN=AdvWorks. This keeps sensitive information out of the client application where the source may be viewed or otherwise reverse engineered. Consider this SQL Handler example:
Inside Msdfmap.ini:
The final type of handler is the Userlist Handler. The Userlist handler only works with Windows NT Challenge/Response and allows the developer or administrator to set access levels similar to the Connect Handler, but based on the user connecting.Sample VBScript code using this handler with the preceding Connect Handler: Here is a code sample using the Userlist Handler:
Inside Msdfmap.ini:
If RDS cannot find a user-defined handler to perform a specific task, RDS will use the default handler. The default handler is specified by placing default after the type of handler desired.Some example default handlers:
REFERENCES
For more information, see the About RDS Customization Handlers topic under the Platform SDK in the MSDN Library.
(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Jonathan Johnson, Microsoft Corporation. APPLIES TO
| Article Translations
|

Back to the top
