Sometimes you need to store some
private data such as passwords for example. Windows NT has special tool to
store private data safely. This data is stored in registry in encrypted form
and only administrators and LocalSystem account have access to this storage.
This storage play a key role in DCOM configuring because it is here RunAs
passwords are stored. Lsa API is used to store and retrieve data from the
secret storage. This API is encapsulated by TsvSecretCenter component. The
usage of this component is as simple as possible. It has two main properties -
SecretName and SecretValue - and two key methods - Read and Write. Only one
additional property - Server - allows to specify computer which secret storage
should be explored.
This example includes two steps
- Creating of application to test SecretCenter
component
- Testing it.
|