Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

Data Accessor Configuration File Examples

This following examples show sample LDAP and SQL data accessor configuration files. The script examples shown in LDAP Script Examples, Realm Selection Script Examples, and Attribute Filter Script Examples also refer to these data accessor configurations.

Example: LDAP Data Accessor Configuration File

[Bootstrap]
LibraryName=ldapaccessor.dll
Enable=0
 
;
;Define data accessor name, search name, and connection settings
;
[Settings]
MethodName=LdapAccessor
Timeout=20
ConnectTimeout=25
QueryTimeout=10
WaitReconnect=2
MaxWaitReconnect=360
UpperCaseName = 0
SSL = 0
Search = DoLdapSearch
 
;
;Define the server address and bind credentials
;
[Server]
s1=
 
[Server/s1]
Host=<LDAPServerNameOrIPAddress>
Port = 389
BindName=uid=admin, ou=sales, o=bigco.com
BindPassword=secret
 
;
;Map the input variables
;
[Request]
Input-Var = value1
 
;
;Map the output variables
;
[Response]
Output-Var = item2
 
;
;Specify attributes to be copied from search response
;
[Attributes/LdapAttrs]
item2
 
;
; Define the search filter
;
[Search/DoLdapSearch]
Base = o=bigco.com
Scope = 2
Filter = item1=<value1>
Attributes = LdapAttrs
Timeout = 20
%DN = dn
 
;
;Define the input and output variable types; default is string
;
[VariableTypes]
Input-Var = string
Output-Var = string

Example: SQL Data Accessor Configuration File

[Bootstrap]
LibraryName=sqlaccessor.so
Enable=0
 
;
;Define data accessor name, SQL query, and connection settings
;
[Settings]
MethodName=SQLAccessor
SQL=SELECT item1, item2 FROM tablename WHERE item3 = @Input-Var1
Connect=DSN=<dsn_name_here>;UID=<username_for_dB>;PWD=<password_for_dB>
ParameterMarker=?
MaxConcurrent=1
ConcurrentTimeout=30
ConnectTimeout=25
QueryTimeout=25
WaitReconnect=2
MaxWaitReconnect=360
 
;
;Map output variables to SQL query result string columns
;
[Results]
Output-Var1 = 1/32
Output-Var2 = 2/64
;
Define the input and output variable types; default is string
[VariableTypes]
Output-Var1 = string
Output-Var2 = string
Input-Var1 = integer

Modified: 2018-01-11