“authenticate with” option  sp_helpmaplogin

Chapter 7: Security Changes

Mapping logins using sp_maplogin

You can map logins using sp_maplogin using this syntax:

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

where:

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

sp_maplogin NULL, "jsmith", "guest"

The following example tells Adaptive Server to create a new login for all external users authenticated with PAM, in case a login does not already exist:

sp_maplogin PAM, NULL, "create login"




Copyright © 2004. Sybase Inc. All rights reserved. sp_helpmaplogin

View this book as PDF