KeePass is a program to store passwords safe on the computer. This Addon is able to retreive (and set) data from a KeePass Database so that IT-Tool can use the usernames and passwords,stored in one place.

To use this Addon, download the KeePass program from https://keepass.info and make a reference to the KeePass executable via script.



Variables


KPAUTOOPENDATABASE

Enables auto opening of a KeePass database, default TRUE

RW

KPCLOSEDATABASESAFTERSCRIPT

Closes all databases automatically when a script is finished, default TRUE

RW

KPEXEPATH

Complete path to the KeePass executable. This needs to be set once before the functions will work.

W



Functions


KPAddDB(name As String, dbFile As String, 

                 Optional masterPSW As String = "") As Boolean

KPRemoveDB(name As String) As Boolean

KPClearDBs() As Boolean

KPCloseDBs() As Boolean


KPOpenDB(name As String, Optional Ask4MasterPSW As Boolean = False) As String

KPCloseDB(name As String) As Boolean

KPSaveDB(name As String) As String

KPIsDBOpen(name As String) As Boolean


KPFilter(name As String, field As String, value As String,

              Optional exact As Boolean = False) As Boolean

KPGetValue(name As String, field As String) As String

KPSetValue(name As String, field As String, value As String,

                     Optional EnableProtection As Boolean = False) As Boolean

KPGetLength(name As String) As Integer

KPSetIndex(name As String, index As Integer) As String

field can be of the following types: Group, UUID, Title, UserName, URL, Notes

If field is 'Group' the use of the character '\' in the filterfunction is used for finding a path.


Group can contain a path like e.g. 'GreatGrandFatherName\GrandFatherName\ParentGroupName'

KPGetPassword(name As String, Title As String,

                             Optional Group As String = "") As String

KPGetUserName(name As String, Title As String,

                              Optional Group As String = "") As String

KPGetURL(name As String, Title As String,

                    Optional Group As String = "") As String

KPGetNotes(name As String, Title As String,

                     Optional Group As String = "") As String


KPExport2Dictionary(Name As String) As Dictionary

This function will export all entries from a Keepass database file to a dictionary. The key is a combination of the Title and Group path.


Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?