CS_USERNAME defines the user login name that the connection will use to log in to a server.
If the application has not requested network-based user authentication, then the application must set the value of CS_PASSWORD connection property to match the user’s password. See “Password”.
If the application has requested network-based authentication with the CS_SEC_NETWORKAUTH property, then the user must already be logged into the connection’s network security mechanism under the same name as CS_USERNAME. In this case, the CS_PASSWORD property is ignored.
Applications request network-based authentication by setting the CS_SEC_NETWORKAUTH property. See “Requesting login authentication services”.