So the Smalltalk code thats been in place, needs to be reworked to get an ODBC connection using Kerberos. What do I pass for the #password: in the current code? AbtDatabaseLogonSpec is expecting a password. Do I need to use other classes to get a connection? I have tried passing nil and '' to no avail. Any and all help or guidance is much appreciated. -Garet
- Code: Select all
| conSpec logonSpec connectResult |
conSpec := AbtDatabaseConnectionSpec
forDbmClass: self dbmClass
dataSourceName: aDsn.
logonSpec := AbtDatabaseLogonSpec
id: anUserId trimBlanks
password: aPassword trimBlanks
server: aSystem.
connectResult := (conSpec connectUsingAlias: ('Connection for: ', logonSpec id) logonSpec: logonSpec ifError: [:a | self logonError. ^false]).
connectResult isAbtError
ifTrue: [Transcript cr; show: 'The database connection was not completed. Results = ', connectResult printString. ^false].