Client-Library applications can also establish connections using network-based user authentication that is provided by a network-based security mechanism such as DCE, SSL or LDAP. In this case, the Client-Library application performs the following tasks instead of calling ct_con_props to set the user name and password:
(Optional) Specifies a security mechanism for the connection by setting the CS_SEC_MECHANISM connection property. Most applications will use the default, which is defined by the Sybase security driver configuration.
Sets the connection’s CS_USERNAME property to match the user’s network name.
Sets the CS_SEC_NETWORKAUTH connection property to allow network-based authentication.
Network-based authentication requires a Sybase security driver for the network security mechanism. Not all servers support network-based authentication. For more detailed information, see the “Security Features” topics page in the Open Client Client-Library/C Reference Manual.