- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我最近对我为公司维护的现有应用做了一些修改,试图改进一些功能。然而,我遇到了一个问题,我无法通过我所有的谷歌搜索找到任何有用的东西。这是站台:
在Windows7(64位)上运行的VB6应用程序,使用ADODB连接,通过ODBC连接到PostgreSQL(9.1.1版)服务器。
问题是,出于某种原因,我使用的SSPI身份验证方法似乎无法从PostgreSQL数据库中的序列中检索值。其他(VB.NET)应用程序使用SSPI身份验证连接到同一个数据库服务器没有问题(使用Npgsql)。
下面是VB6应用程序中用于ODBC连接的基本连接字符串:
DRIVER={PostgreSQL ANSI};Server=<SERVERNAMEHERE>;Port=<####>;Database=<DATABASENAMEHERE>;Uid=<USERNAMEHERE>
CDT FATAL: SSPI authentication failed for user "<USERNAMEHERE>"
CDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
Private Function GetPGCertNumber() As Long
On Error GoTo PGSQLError
Dim PGDB As ADODB.Connection
Dim RS As ADODB.Recordset
Dim CertNum As Long
Dim SQLStr As String
Set PGDB = New ADODB.Connection
PGDB.ConnectionString = PGSQL_CONNECTION_STR
PGDB.CursorLocation = adUseServer
PGDB.Open
SQLStr = "SELECT nextval('certificatenumber_seq')"
Set RS = New ADODB.Recordset
RS.CursorLocation = adUseServer
RS.Open SQLStr, PGDB
If Not RS.EOF And Not RS.BOF Then
CertNum = RS!nextval
Else
CertNum = -1
End If
GetPGCertNumber = CertNum
RS.Close
Set RS = Nothing
PGDB.Close
Set PGDB = Nothing
Exit Function
PGSQLError:
Dim ErrorMsg As String
GetPGCertNumber = -1
ErrorMsg = "An error occurred retrieving the next certificate number to use." & vbCrLf & _
"Connection String: " & PGSQL_CONNECTION_STR & vbCrLf & _
"Command String: " & SQLStr & vbCrLf & _
"Database State: " & PGDB.State & vbCrLf & vbCrLf
MsgBox ErrorMsg, vbCritical + vbOKOnly, "POSTGRESQL DATABASE ERROR"
On Error Resume Next
If Not PGDB Is Nothing Then
If PGDB.State <> 0 Then
PGDB.Close
End If
Set PGDB = Nothing
End If
End Function
SQLStr
变量还没有填充,这告诉我它是在调用
Open
方法时发生的。
PGSQL_CONNECTION_STR
)中硬编码。据我目前所知,这似乎是正确的,这使我进一步相信,这个问题与在这个环境中使用SSPI和用于PostgreSQL的ODBC连接器有关。
[3336-0.000]calling getDSNdefaults
[3336-0.015]CC_connect: entering...
[3336-0.015]sslmode=disable
[3336-0.015]original_CC_connect: entering...
[3336-0.015]Driver Version='09.03.0300,201405140001' linking 1600 dynamic Multithread library
[3336-0.031]original_CC_connect: DSN = '', server = '<SERVERNAMEHERE>', port = '####', database = '<DATABASENAMEHERE>', username = '<USERNAMEHERE>', password=''
[3336-0.031]connecting to the server socket...
[3336-0.047](0)(null) ERRNO=0
[3336-0.047]connection to the server socket succeeded.
[3336-0.047]!!! usrname=<USERNAMEHERE> server=<SERVERNAMEHERE>
[3336-0.047]sizeof startup packet = 80
[3336-0.047]sent the authentication block successfully.
[3336-0.047]gonna do authentication
[3336-0.047]read -1, global_socket_buffersize=4096
[3336-0.047]Lasterror=10035
[3336-0.062]read 9, global_socket_buffersize=4096
[3336-0.062]auth got 'R'
[3336-0.062]areq = 9 salt=0000000000
[3336-0.062]in AUTH_REQ_SSPI
[3336-47.767][[SQLAllocHandle]][3336-47.767]PGAPI_AllocConnect: entering...
[3336-47.767]**** PGAPI_AllocConnect: henv = 02B413B8, conn = 02B481C0
[3336-47.767]EN_add_connection: self = 02B413B8, conn = 02B481C0
[3336-47.767] added at i=1, conn->henv = 02B413B8, conns[i]->henv = 02B413B8
[3336-47.767][SQLGetInfo(30)][3336-47.767]PGAPI_GetInfo: entering...fInfoType=77
[3336-47.767]PGAPI_GetInfo: p='03.50', len=0, value=0, cbMax=12
[3336-47.767][[SQLSetConnectAttr]] 103
[3336-47.767]PGAPI_SetConnectAttr for 02B481C0: 103 0000000F
[3336-47.767]PGAPI_SetConnectOption: entering fOption = 103 vParam = 15
[3336-47.767][SQLDriverConnect][3336-47.767]PGAPI_DriverConnect: entering...
[3336-47.767]**** PGAPI_DriverConnect: fDriverCompletion=0, connStrIn='DRIVER={PostgreSQL ANSI};UID=<USERNAMEHERE>;Server=<SERVERNAMEHERE>;Port=####;Database=<DATABASENAMEHERE>;debug=1;commlog=1;'
[3336-47.767]CC_conninfo_init opt=2
[3336-47.767]copy_globals driver=PostgreSQL ANSI socket_buffersize=4096
[3336-47.767]our_connect_string = 'DRIVER={PostgreSQL ANSI};UID=<USERNAMEHERE>;Server=<SERVERNAMEHERE>;Port=####;Database=<DATABASENAMEHERE>;debug=1;commlog=1;'
[3336-47.767]attribute = 'DRIVER', value = '{PostgreSQL ANSI}'
[3336-47.783]copyAttributes: DSN='',server='',dbase='',user='',passwd='',port='',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]attribute = 'UID', value = '<USERNAMEHERE>'
[3336-47.783]copyAttributes: DSN='',server='',dbase='',user='<USERNAMEHERE>',passwd='',port='',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]attribute = 'Server', value = '<SERVERNAMEHERE>'
[3336-47.783]copyAttributes: DSN='',server='<SERVERNAMEHERE>',dbase='',user='<USERNAMEHERE>',passwd='',port='',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]attribute = 'Port', value = '####'
[3336-47.783]copyAttributes: DSN='',server='<SERVERNAMEHERE>',dbase='',user='<USERNAMEHERE>',passwd='',port='####',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]attribute = 'Database', value = '<DATABASENAMEHERE>'
[3336-47.783]copyAttributes: DSN='',server='<SERVERNAMEHERE>',dbase='<DATABASENAMEHERE>',user='<USERNAMEHERE>',passwd='',port='####',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]attribute = 'debug', value = '1'
[3336-47.783]copyAttributes: DSN='',server='<SERVERNAMEHERE>',dbase='<DATABASENAMEHERE>',user='<USERNAMEHERE>',passwd='',port='####',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]attribute = 'commlog', value = '1'
[3336-47.783]copyAttributes: DSN='',server='<SERVERNAMEHERE>',dbase='<DATABASENAMEHERE>',user='<USERNAMEHERE>',passwd='',port='####',onlyread='',protocol='',conn_settings='(null)',disallow_premature=-1)
[3336-47.783]getDSNinfo: DSN= overwrite=0
[3336-47.799]our_connect_string = 'DRIVER={PostgreSQL ANSI};UID=<USERNAMEHERE>;Server=<SERVERNAMEHERE>;Port=####;Database=<DATABASENAMEHERE>;debug=1;commlog=1;'
[3336-47.799]attribute = 'DRIVER', value = '{PostgreSQL ANSI}'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]attribute = 'UID', value = '<USERNAMEHERE>'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]attribute = 'Server', value = '<SERVERNAMEHERE>'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]attribute = 'Port', value = '####'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]attribute = 'Database', value = '<DATABASENAMEHERE>'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]attribute = 'debug', value = '1'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=1;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]attribute = 'commlog', value = '1'
[3336-47.799]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=1;B3=1;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;[3336-47.799]calling getDSNdefaults
[3336-47.799]CC_connect: entering...
[3336-47.799]sslmode=disable
[3336-47.799]original_CC_connect: entering...
[3336-47.799]Driver Version='09.03.0300,201405140001' linking 1600 dynamic Multithread library
[3336-47.799]original_CC_connect: DSN = '', server = '<SERVERNAMEHERE>', port = '####', database = '<DATABASENAMEHERE>', username = '<USERNAMEHERE>', password=''
[3336-47.799]connecting to the server socket...
[3336-47.814](0)(null) ERRNO=0
[3336-47.814]connection to the server socket succeeded.
[3336-47.814]!!! usrname=<USERNAMEHERE> server=<SERVERNAMEHERE>
[3336-47.814]sizeof startup packet = 80
[3336-47.814]sent the authentication block successfully.
[3336-47.814]gonna do authentication
[3336-47.814]read -1, global_socket_buffersize=4096
[3336-47.814]Lasterror=10035
[3336-47.830]read 9, global_socket_buffersize=4096
[3336-47.830]auth got 'R'
[3336-47.830]areq = 9 salt=0000000000
[3336-47.830]in AUTH_REQ_SSPI
[0.015]Driver Version='09.03.0300,201405140001' linking 1600 dynamic Multithread library
[0.015]Global Options: fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=255, max_longvarchar_size=8190
[0.015] disable_optimizer=0, ksqo=1, unique_index=1, use_declarefetch=0
[0.015] text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64
[0.031] extra_systable_prefixes='dd_;', conn_settings='(null)' conn_encoding=''
[47.767]conn=02B481C0, PGAPI_DriverConnect( in)='DRIVER={PostgreSQL ANSI};UID=<USERNAMEHERE>;Server=<SERVERNAMEHERE>;Port=####;Database=<DATABASENAMEHERE>;debug=1;commlog=1;', fDriverCompletion=0
[47.799]Driver Version='09.03.0300,201405140001' linking 1600 dynamic Multithread library
[47.799]Global Options: fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=255, max_longvarchar_size=8190
[47.799] disable_optimizer=0, ksqo=1, unique_index=1, use_declarefetch=0
[47.799] text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64
[47.799] extra_systable_prefixes='dd_;', conn_settings='(null)' conn_encoding=''
2014-06-30 16:57:17 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 16:57:17 CDT LOG: unexpected EOF on client connection
2014-06-30 16:57:30 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 16:57:30 CDT LOG: unexpected EOF on client connection
2014-06-30 16:57:31 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 16:57:31 CDT LOG: unexpected EOF on client connection
2014-06-30 16:58:38 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 16:58:38 CDT LOG: unexpected EOF on client connection
2014-06-30 16:59:02 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 16:59:02 CDT LOG: unexpected EOF on client connection
2014-06-30 16:59:22 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 16:59:22 CDT LOG: unexpected EOF on client connection
2014-06-30 17:00:23 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:00:23 CDT LOG: unexpected EOF on client connection
2014-06-30 17:00:44 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:00:44 CDT LOG: unexpected EOF on client connection
2014-06-30 17:00:46 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:00:46 CDT LOG: unexpected EOF on client connection
2014-06-30 17:00:52 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:00:52 CDT LOG: unexpected EOF on client connection
2014-06-30 17:01:17 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:01:17 CDT LOG: unexpected EOF on client connection
2014-06-30 17:01:43 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:01:43 CDT FATAL: SSPI authentication failed for user "<USERNAMEHERE>"
2014-06-30 17:01:43 CDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2014-06-30 17:01:43 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:01:43 CDT FATAL: SSPI authentication failed for user "<USERNAMEHERE>"
2014-06-30 17:01:43 CDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2014-06-30 17:03:56 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:03:56 CDT LOG: unexpected EOF on client connection
2014-06-30 17:04:02 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:04:02 CDT LOG: unexpected EOF on client connection
2014-06-30 17:04:10 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:04:10 CDT LOG: unexpected EOF on client connection
2014-06-30 17:05:30 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:05:30 CDT LOG: unexpected EOF on client connection
2014-06-30 17:05:39 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:05:39 CDT LOG: unexpected EOF on client connection
2014-06-30 17:06:33 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:06:33 CDT LOG: unexpected EOF on client connection
2014-06-30 17:11:05 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:11:05 CDT LOG: unexpected EOF on client connection
2014-06-30 17:11:50 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-06-30 17:11:50 CDT LOG: unexpected EOF on client connection
2014-07-02 10:33:24 CDT DEBUG: autovacuum: processing database "<DATABASENAMEHERE>"
2014-07-02 10:33:25 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-07-02 10:33:25 CDT FATAL: SSPI authentication failed for user "<USERNAMEHERE>"
2014-07-02 10:33:25 CDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2014-07-02 10:33:29 CDT DEBUG: autovacuum: processing database "<DATABASENAMEHERE>"
2014-07-02 10:36:49 CDT DEBUG: StartTransaction
2014-07-02 10:36:49 CDT DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2014-07-02 10:36:49 CDT DEBUG: CommitTransaction
2014-07-02 10:36:49 CDT DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2014-07-02 10:36:49 CDT DEBUG: InitPostgres
2014-07-02 10:36:49 CDT DEBUG: my backend ID is 5
2014-07-02 10:36:49 CDT DEBUG: StartTransaction
2014-07-02 10:36:49 CDT DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2014-07-02 10:36:49 CDT DEBUG: CommitTransaction
2014-07-02 10:36:49 CDT DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2014-07-02 10:36:49 CDT DEBUG: autovacuum: processing database "<DATABASENAMEHERE>"
2014-07-02 10:36:49 CDT DEBUG: StartTransaction
2014-07-02 10:36:49 CDT DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2014-07-02 10:36:49 CDT DEBUG: pg_statistic: vac: 80 (threshold 124), anl: 560 (threshold 87)
2014-07-02 10:36:49 CDT DEBUG: pg_type: vac: 0 (threshold 112), anl: 0 (threshold 81)
2014-07-02 10:36:49 CDT DEBUG: pg_attribute: vac: 0 (threshold 651), anl: 0 (threshold 351)
2014-07-02 10:36:49 CDT DEBUG: pg_authid: vac: 19 (threshold 50), anl: 30 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_proc: vac: 0 (threshold 518), anl: 0 (threshold 284)
2014-07-02 10:36:49 CDT DEBUG: pg_class: vac: 0 (threshold 106), anl: 0 (threshold 78)
2014-07-02 10:36:49 CDT DEBUG: pg_database: vac: 3 (threshold 50), anl: 7 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_inherits: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_index: vac: 0 (threshold 72), anl: 0 (threshold 61)
2014-07-02 10:36:49 CDT DEBUG: pg_operator: vac: 0 (threshold 191), anl: 0 (threshold 121)
2014-07-02 10:36:49 CDT DEBUG: pg_opfamily: vac: 0 (threshold 64), anl: 0 (threshold 57)
2014-07-02 10:36:49 CDT DEBUG: pg_opclass: vac: 0 (threshold 73), anl: 0 (threshold 61)
2014-07-02 10:36:49 CDT DEBUG: pg_amop: vac: 0 (threshold 122), anl: 0 (threshold 86)
2014-07-02 10:36:49 CDT DEBUG: pg_amproc: vac: 0 (threshold 100), anl: 0 (threshold 75)
2014-07-02 10:36:49 CDT DEBUG: pg_language: vac: 0 (threshold 51), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_largeobject_metadata: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_rewrite: vac: 0 (threshold 70), anl: 0 (threshold 60)
2014-07-02 10:36:49 CDT DEBUG: pg_description: vac: 0 (threshold 705), anl: 0 (threshold 378)
2014-07-02 10:36:49 CDT DEBUG: pg_cast: vac: 0 (threshold 89), anl: 0 (threshold 70)
2014-07-02 10:36:49 CDT DEBUG: pg_namespace: vac: 0 (threshold 51), anl: 0 (threshold 51)
2014-07-02 10:36:49 CDT DEBUG: pg_conversion: vac: 0 (threshold 76), anl: 0 (threshold 63)
2014-07-02 10:36:49 CDT DEBUG: pg_depend: vac: 0 (threshold 1219), anl: 0 (threshold 635)
2014-07-02 10:36:49 CDT DEBUG: pg_tablespace: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_pltemplate: vac: 0 (threshold 52), anl: 0 (threshold 51)
2014-07-02 10:36:49 CDT DEBUG: pg_auth_members: vac: 9 (threshold 75), anl: 37 (threshold 62)
2014-07-02 10:36:49 CDT DEBUG: pg_shdepend: vac: 100 (threshold 943), anl: 394 (threshold 496)
2014-07-02 10:36:49 CDT DEBUG: pg_shdescription: vac: 36 (threshold 50), anl: 42 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_ts_config: vac: 0 (threshold 53), anl: 0 (threshold 52)
2014-07-02 10:36:49 CDT DEBUG: pg_ts_dict: vac: 0 (threshold 53), anl: 0 (threshold 52)
2014-07-02 10:36:49 CDT DEBUG: pg_ts_parser: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_ts_template: vac: 0 (threshold 51), anl: 0 (threshold 51)
2014-07-02 10:36:49 CDT DEBUG: pg_extension: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_foreign_data_wrapper: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_foreign_server: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_default_acl: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_seclabel: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_collation: vac: 0 (threshold 51), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_attrdef: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_am: vac: 0 (threshold 51), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: pg_db_role_setting: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 104), anl: 0 (threshold 77)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 96), anl: 0 (threshold 73)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 83), anl: 0 (threshold 67)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 104), anl: 0 (threshold 77)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 134), anl: 0 (threshold 92)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 82), anl: 0 (threshold 66)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 71), anl: 0 (threshold 61)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 80), anl: 0 (threshold 65)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 50), anl: 0 (threshold 50)
2014-07-02 10:36:49 CDT DEBUG: <TABLENAMEHERE>: vac: 0 (threshold 826), anl: 0 (threshold 438)
2014-07-02 10:36:49 CDT DEBUG: CommitTransaction
2014-07-02 10:36:49 CDT DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2014-07-02 10:36:49 CDT DEBUG: shmem_exit(0): 8 callbacks to make
2014-07-02 10:36:49 CDT DEBUG: proc_exit(0): 2 callbacks to make
2014-07-02 10:36:49 CDT DEBUG: exit(0)
2014-07-02 10:36:49 CDT DEBUG: shmem_exit(-1): 0 callbacks to make
2014-07-02 10:36:49 CDT DEBUG: proc_exit(-1): 0 callbacks to make
2014-07-02 10:36:49 CDT DEBUG: reaping dead processes
2014-07-02 10:36:49 CDT DEBUG: server process (PID 5692) exited with exit code 0
2014-07-02 10:36:51 CDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2014-07-02 10:36:51 CDT FATAL: SSPI authentication failed for user "<USERNAMEHERE>"
2014-07-02 10:36:51 CDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2014-07-02 10:36:51 CDT DEBUG: shmem_exit(1): 7 callbacks to make
2014-07-02 10:36:51 CDT DEBUG: proc_exit(1): 3 callbacks to make
2014-07-02 10:36:51 CDT DEBUG: exit(1)
2014-07-02 10:36:51 CDT DEBUG: shmem_exit(-1): 0 callbacks to make
2014-07-02 10:36:51 CDT DEBUG: proc_exit(-1): 0 callbacks to make
2014-07-02 10:36:51 CDT DEBUG: reaping dead processes
2014-07-02 10:36:51 CDT DEBUG: server process (PID 4300) exited with exit code 1
最佳答案
你检查过你的登录名“USERNAMEHERE”的情况吗?
windows和pgsql上的登录名必须相同。
我们甚至有一个问题,windows登录名是“usera”,pgsql登录名是“usera”,但通过odbc发送的登录名是“usera”。
windows似乎采用了以前登录时使用的用户名,而不是广告中定义的用户名。
我们必须手动修复这个连接字符串。
否则,不需要硬编码登录,可以在pg_hba.conf中使用映射(请参见http://www.postgresql.org/docs/9.4/static/auth-username-maps.html)
关于postgresql - PostgreSQL ODBC连接SSPI身份验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24453614/
我正在使用SQL Server 2008 R2,并且想创建一个触发器。 对于每个添加(仅添加),将像这样更新一列: ABC-CurrentYear-AutoIncrementCode 例子: ABC-
是否可以在显示最终一致性的数据存储中创建/存储用户帐户? 似乎不可能在没有一堆架构复杂性的情况下管理帐户创建,以避免可能发生具有相同 UID(例如电子邮件地址)的两个帐户的情况? 最终一致性存储的用户
您好, 我有一个带有 Identity 的 .NetCore MVC APP并使用 this指导我能够创建自定义用户验证器。 public class UserDomainValidator : IU
这与以下问题相同:HiLo or identity? 我们以本站的数据库为例。 假设该站点具有以下表格: 帖子。 投票。 注释。 使用它的最佳策略是什么: 身份 - 这是更常见的。 或者 HiLo -
我想将 Blazor Server 与 ASP.NET Identity 一起使用。但我需要使用 PostgreSQL 作为用户/角色存储,因为它在 AWS 中。 它不使用 EF,这是我需要的。 我创
我正在开发一个 .NET 应用程序,它可以使用 Graph API 代表用户发送电子邮件。 提示用户对应用程序进行授权;然后使用获取的访问 token 来调用 Graph API。刷新 token 用
我使用 ASP.NET 身份和 ClaimsIdentity 来验证我的用户。当用户通过身份验证时,属性 User.Identity 包含一个 ClaimsIdentity 实例。 但是,在登录请求期
所以我在两台机器上都安装了 CYGWIN。 如果我这样做,它会起作用: ssh -i desktop_rsa root@remoteserver 这需要我输入密码 ssh root@remoteser
我尝试在 mac osx 上的终端中通过 telnet 连接到 TOR 并请求新身份,但它不起作用,我总是收到此错误消息: Trying 127.0.0.1... telnet: connect to
我正在开发一个 .NET 应用程序,它可以使用 Graph API 代表用户发送电子邮件。 提示用户对应用程序进行授权;然后使用获取的访问 token 来调用 Graph API。刷新 token 用
我正在开发一项服务,客户可以在其中注册他们的 webhook URL,我将发送有关已注册 URL 的更新。为了安全起见,我想让客户端(接收方)识别是我(服务器)向他们发送请求。 Facebook和 G
在 Haskell 中,有没有办法测试两个 IORef 是否相同?我正在寻找这样的东西: IORef a -> IORef a -> IO Bool 例如,如果您想可视化由 IORef 组成的图形,这
我是 .NET、MVC 和身份框架的新手。我注意到身份框架允许通过注释保护单个 Controller 操作。 [Authorize] public ActionResult Edit(int? Id)
我有一列具有身份的列,其计数为19546542,我想在删除所有数据后将其重置。我需要类似ms sql中的'dbcc checkident'这样的内容,但在Oracle中 最佳答案 在Oracle 12
这是我用来创建 session 以发送电子邮件的代码: props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enabl
我想了解 [AllowAnonymous] 标签的工作原理。 我有以下方法 [HttpGet] public ActionResult Add() { return View(); } 当我没
在使用沙盒测试环境时,PayPal 身份 token 对某些人显示而不对其他人显示的原因是否有任何原因。 我在英国使用 API,终生无法生成或找到 token 。 我已经遵循协议(protocol)并
我对非常简单的事情有一些疑问:IDENTITY。我尝试在 phpMyAdmin 中创建表: CREATE TABLE IF NOT EXISTS typEventu ( typEventu
习语 #1 和 #5 是 FinnAPL Idiom Library两者具有相同的名称:“Progressive index of (without replacement)”: ((⍴X)⍴⍋⍋X⍳
当我第一次在 TFS 中设置时,我的公司拼错了我的用户名。此后他们将其更改为正确的拼写,但该更改显然未反射(reflect)在 TFS 中。当我尝试 checkin 更改时,出现此错误: 有没有一种方
我是一名优秀的程序员,十分优秀!