Connecting to the server and using the security services

The isql and bcp utilities include the following command line options to enable network-based security services on the connection:

These options are described in the following paragraphs.

Security mechanism names are defined in the libtcl.cfg configuration file. If no security_mechanism name is supplied, the default mechanism is used. See the Open Client/Server Configuration Guide for your platform.

If you log in to the security mechanism and then log in to Adaptive Server, you do not need to specify the isql -U option because Adaptive Server gets the user name from the security mechanism. For example, consider the following session:

svrsole4% dce_login user2
Enter Password: 
svrsole4% $SYBASE/bin/isql_r -V
1> select suser_name()
2> go
------------------------------
user2

For this example, “user2” logs in to DCE with dce_login and then logs in to Adaptive Server without specifying the -U option. The -V option without parameters implicitly specifies one security service: unified login.

For more information about Adaptive Server utilities, see the Utility Guide.

If you are using Client-Library to connect to Adaptive Server, you can define security properties before connecting to the server. For example, to check message sequencing, set the CS_SEC_DETECTSEQ property. For information about using security services with Client-Library, see the Open Client Client-Library/C Reference Manual.