Skip to Content

How to protect the login information

Hi,

I'd like to know if there are any means to protect the login information that I must specify when starting the connection to SAP using the .net connector.

Our scenario is that we are using a single SAP user with SAP_ALL, SAP_NEW authorization to login using the .net connector. As I want the connection to be established automatically, so I need to hardcode the password within the login page or in the vs.net project itself.

Now what I want is that when other people/developer tryinh to access directly the source code of either the login page or the project itself, they cannot 'see' the password for the SAP account.

Any ways to achieve this?

Thanks for any suggestions in advance.

Francis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 05, 2004 at 07:49 AM

    The best way to achieve this is to use one of the Single Sign On (SSO) feature available for the connector. I don't know what kind of application you are writing.

    If it is a web based application and the user is authenticated by a SAP portal, you can use this article:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/enabling single sign-on for asp.net applications in enterprise portal 6.article

    If it is a web application and the user is authenticated by a Windows logon, you can use this article:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to use windows nt logon for single sign-on in an sap web application.article

    If it is a Windows Form or Console application, you can use SNC directly, similary as used in SAPGUI. Information on this is in NCo documentation.

    Add comment
    10|10000 characters needed characters exceeded