Hi,
Just for clarification.
Original error:
CT-LIBRARY error:
ct_connect(): directory service layer: internal directory control layer
error: Requested server name not found.
Reason for error:
This is caused when isql doesn't know where to go or what box to connect to.
Resolution:
Make sure there is an entry in the sql.ini.
This file is found in:
%SYBASE%\ini
Example entry:
[indigo6]
master=TCP,indigo6,4747
query=TCP,indigo6,4747
Test connection:
isql -U<username> -P<password> -Sindigo6
You can also bypass the sql.ini file by using -S<host>:<port>
Example:
isql -U<username> -P<password> -Sindigo6:4747
Password encryption error:
isql -Usa -Psybase -Sindigo6
Msg 1640, Level 16, State 2:
Server 'indigo6':
Adaptive Server requires encryption of the login password on the network.
Msg 4002, Level 14, State 1:
Server 'redhead':
Login failed.
CT-LIBRARY error:
ct_connect(): protocol specific layer: external error: The attempt to co
nnect to the server failed.
Reason for error:
sp_configure "net password", 1
Requires all clients to use password encryption.
Resolution:
add the -X option to isql and make sure all other clients have password encryption enabled.
Example:
isql -Usa -Psybase -Sindigo6 -X
Login Failed error:
isql -Usa -S SBP
Password:
Msg 4002, Level 14, State 1:
Server 'SBP':
Login failed.
CT-LIBRARY error:
ct_connect(): protocol specific layer: external error: The attempt to co
nnect to the server failed.
Reson for error:
You have established a connection to ASE.
ASE is rejecting the login information (username, password).
This could be caused by:
- fat fingers
- case sensitive
- locked account
- not enough user connections available
- specific security requirements might be enabled for this account (only can connect through ldap, ssl, kerberos)
Resolution:
- verify login information
- check ASE log for any messages
- Run sp_displaylogin <username> to gain more information
1> sp_displaylogin sa
2> go
Suid: 1
Loginame: sa
Fullname:
Default Database: master
Default Language:
Auto Login Script:
Configured Authorization:
sa_role (default ON)
sso_role (default ON)
oper_role (default ON)
sybase_ts_role (default ON)
dtm_tm_role (default ON)
mon_role (default ON)
sa_serverprivs_role (default ON)
Locked: NO
Date of Last Password Change: Nov 22 2013 10:29AM
Password expiration interval: 0
Password expired: NO
Minimum password length: 6
Maximum failed logins: 0
Current failed login attempts:
Authenticate with: AUTH_DEFAULT
Login Password Encryption: SHA-256
Last login date: Mar 3 2014 8:29AM
Exempt inactive lock: 0
(return status = 0)