Mapping logins using sp_maplogin

Use sp_maplogin to map logins:

sp_maplogin (authentication_mech | null), 
(client_username | null), (action | login_name | null)

where:

This example maps external user “jsmith” to the Adaptive Server user “guest.” Once authenticated, “jsmith” has the privileges of “guest.” The audit login record shows both the client_username and the Adaptive Server user name:

sp_maplogin NULL, "jsmith", "guest"

This example tells Adaptive Server to create a new login for all external users authenticated with LDAP, if a login does not already exist:

sp_maplogin LDAP, NULL, "create login"