Forcing authentication  Displaying mapping information

Chapter 16: External Authentication

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"




Copyright © 2005. Sybase Inc. All rights reserved. Displaying mapping information

View this book as PDF