How to set username and password for a tcode ?

Dear Gurus,
          Greets..................
Pls provide me solution for my scenario. My program is module pool program.It has been assigned by a Tcode.when the end user enter the tcode in command box,I should display a small screen with username and password(****).If username and password is correct,it should allow the end user to execute that particular tcode.If not i should display warning message that he is not eligible to access that program.
Thanks & Regards.
Raj

Hi Raj,
You can do this by creating a Login screen for the users and check the authentication of each user in PAI i.e. PROCESS AFTER INPUT.
Store the user information in a database table and check the username and password when the user enters it.
You can display password as *** also. For this double click on input box designed for password and goto Display tab. Select Invisible in the list and check it.
  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE PROGRAM.
    WHEN <fcode for submit>.
      SELECT SINGLE uname pwd
       FROM <DB table>
       INTO (user, pass)
       WHERE username = user AND
               password = passwd.
      IF sy-subrc = 0.
<Go to next screen for further processing>
      ELSE.
<Display Error message and exit>
      ENDIF.
  ENDCASE.
Regards,
Amit
Message was edited by:
        Amit Kumar

Similar Messages

  • How set  UserName and Password for HTTP Basic Authentication for a servlet

    Hi..
    How set UserName and Password for HTTP Basic Authentication for a servlet in JBoss server?
    Using Tomcat i can do it .(By setting roles in web.xml, and user credintails in tomcat-user.xml).
    But i dont know how do it in JBOSS..
    I am using Netbeans and Eclipse IDEs.. Can we do it by using them also!?
    Thank u

    Hi Raj,
    You can do this by creating a Login screen for the users and check the authentication of each user in PAI i.e. PROCESS AFTER INPUT.
    Store the user information in a database table and check the username and password when the user enters it.
    You can display password as *** also. For this double click on input box designed for password and goto Display tab. Select Invisible in the list and check it.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN <fcode for submit>.
          SELECT SINGLE uname pwd
           FROM <DB table>
           INTO (user, pass)
           WHERE username = user AND
                   password = passwd.
          IF sy-subrc = 0.
    <Go to next screen for further processing>
          ELSE.
    <Display Error message and exit>
          ENDIF.
      ENDCASE.
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

  • How to set username and password when using Proxy class for SOCKS5?

    Hi all,
    I use the proxy class for SOCKS5, so need to set username and password, I don't find where can I set the value. whether the API support it.
    Thanks in advance!

    System.getProperties().put("proxySet", "true");That does nothing. Remove.
    System.getProperties().put("proxyHost", getProxyHost());
    System.getProperties().put("proxyPort", getProxyPort());You should be setting socks.proxyHost and socks.proxyPort here.
    System.setProperty("java.net.socks.username", getSOCKSUsername());
    System.setProperty("java.net.socks.password", getSOCKSPassword());
    Authenticator.setDefault(new ProxyAuth(getSOCKSUsername(), getSOCKSPassword()));You either need the first two lines or the third, not both. See the last link posted above.
    1. After I set the value, I connect internet by proxy, how the proxy server knows the values?Because Java tells it during the SOCKS handshake.
    2. In my app, I just set the values in the system properties, then JVM does remaining work? Remaining work is not concerned?Should be OK unless you have to connect to a different SOCKS proxy from the same JVM, but that kind of thing is problematic anyway due to the curious Authenticator design which is set globally, not per connection as you might expect.

  • How to set username and password at line vty 0 4?

    hi guys,
    would like to know how i can set username and password so when i telnet to the router, i can login as username and password..?
    thks,
    ken

    Hi,
    for a simple telnet password with user name & password, find the steps below,
    aaa new-model
    username password
    line vty 0 4
    password
    login local
    if you wanted different types of users to login with different privilagez,do the following
    username privilege 15 password
    username privilege 5 password
    privilege exec level 15 conf t
    privilege exec level 5 show
    line vty 0 4
    password
    login local
    in the above statement "privilege exec level 15 "will have full access, "privilege exec level 5" will have the limited like "show" related
    hope this helps.
    rate this post if cleared.

  • How to set username and password before redirecting to a RESTful webservice

    I am a .Net developer who has developed a webservice used by my ColdFusion colleagues. They are using ColdFusion 9 but I'm not sure if they have incorporated any of the newer features of ColdFusion in their apps. Here is a snippet of how they have been invoking the webmethods:
    <cfscript>
                         ws = CreateObject("webservice", "#qTrim.webServiceName#");
                         ws.setUsername("#qTrim.trimAcct#");
                         ws.setPassword("#qTrim.trimpwd#");
                         wsString=ws.UploadFileCF("#qTrim.webserviceurl#","#objBinaryData#", "#qFiles.Filename#", "Document", "#MetaData#");
                </cfscript>
    As I understand things, the .setUsername and .setPassword correspond to the Windows credentials the CF Admin set when the URL of the .Net webservice was "registered" and given its "name" (for the CreateObject statement above). I have 4 webmethods that are all invoked in this manner and this SOAP protocol works adequately for us. Please note that this ColdFusion web app authenticates anonymous remote internet users by prompting for a username and password and compares them to an application database (i.e. Microsoft calls this "forms authentication"). Because only a few Windows domain accounts are authorized to call this .Net webservice, the above code always uses the same username/password constants and it all works.
    My question involves the newest webmethod added to the .Net webservice. It requires that callers must invoke it as a RESTful service which means it must be invoked by its URL. Here is a snippet of C# code that invokes it from an ASP.NET webclient:
                string r = txtRecordNumber.Text;
                string baseurl = "http://localhost/sdkTrimFileServiceASMX/FileService.asmx/DownloadFileCF?";
                StringBuilder url = new StringBuilder(baseurl);
                url.Append("trimURL="); url.Append(txtFakeURLParm.Text);
                url.Append("&");
                url.Append("TrimRecordNumber="); url.Append(txtRecordNumber.Text);
                Response.Redirect(url.ToString());
    I assume a ColdFusion script could easily build a full URL as above with appended querystring parameters and redirect. Is there some way for the CF code redirecting to a RESTful webservice (by way of its URL) to set the Username and Password to this Windows account mentioned above? When the DownloadFileCF webmethod is hit it must be with the credentials of this special Windows domain account. Can that be set by ColdFusion someway to mimic the result of the SOAP technique (the first snippet above).
    I hope my question is clear and someone can help me make suggestions to my ColdFusion colleagues. Thanks.

    Can you clarify what you mean by "establish a different Windows identity"?  Usually passing identity to a web site or service means adding something to the request's HTTP headers.  This could be a cookie in the case of .NET forms authentication or the "Authorization" header in the case of basic authentication.
    The SOAP web service invocation code you posted does use basic authentication, according to the CF docs "ColdFusion inserts the user name/password string in the authorization request header as a base64 binary encoded string, with a colon separating the user name and password. This method of passing the user name/password is compatible with the HTTP basic authentication mechanism used by web servers."
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec13a13 -7fe0.html
    If you need to mimic the SOAP techinque you should have basic authentication enabled for your REST service endpoints.
    If your authentication method is different then CF developers will need to add the appropriate HTTP headers to their service calls.  Note that calling a REST service from CF would probably be accomplished using the CFHTTP tag if the service is designed to be consumed by the CF server.

  • Logged in thru facebook now cant set username and password for PS3

    I signed up a year ago. Logged in thru facebook. Now i see a spotify app has been added to my PS3... Im trying to login but its asking for a username / password. I got to my account and am given a # of 126681961 as my user name and i attempt to activate a password, it says an email has been sent to the hotmail account associated with my facebook account but I have not recieved any email and have attempted mulitple times. How do I set my username and Password without all the frustration or by changing my FB info??? thank you

    I'm not sure about the status of that bug in 2.2.5, but it has been
    resolved in our internal 2.3 builds.
    I think that you can work around this problem by enumerating your
    persistent types in system.prefs instead of in the data store. See our
    documentation for more information on how to do this.
    Basically, if I recall correctly, the problem is when retrieving the
    list, but not when connecting to the data store for other purposes.
    -Fred
    Weidong <[email protected]> wrote:
    We are using KODO 2.2.5 right now and We have business requirement that we
    should not keep database user name and password in system.prefs. I
    followed the instructions that you wrote in Feb 12 2002 post. But it still
    has the error that exactly like Bug #76. When we leave the user name and
    password out of system.prefs, we get the error.
    Is this bug(#76) fixed for 2.2.5? And how can we work around it?--
    Fred Lucas
    SolarMetric Inc.
    202-595-2064 x1122
    http://www.solarmetric.com

  • How to supply username and password for consuming webservice in BizTalk Adaptor?

    While I hit the web service directly , I am able get response from that service, it asked for username and password, after that it processed the request and gave expected output. I am trying to consume the same web service (https) from BizTalk orchestration
    ,  it created message type , port type, binding for me , all fine, but while sending message to the webservice , it throws error like this 
    <SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wd="urn:com.abc/bsvc">
    <faultcode>SOAP-ENV:Client.authenticationError</faultcode>
    <faultstring>invalid username or password</faultstring>
    </SOAP-ENV:Fault>
    I have given username and passoword in port level. I tried basic binding, I also tried wcf_basic binding , but no luck. These bindings were generated by wizard only, I Imported those bindings , ports got created, I just added username and password in the
    port level.
    How should I supply username and password in BizTalk to get this working ? Any inputs would be greatly appriciated
    Regards
    Vivek

    Hi,
    the way to resolve this is to write a Wcf Custom Behavior.
    Several people have blogged about this and Microsoft have written some articles:
    http://social.technet.microsoft.com/wiki/contents/articles/627.using-custom-behaviors-with-the-biztalk-wcf-adapters-part-2.aspx
    http://msdn.microsoft.com/en-us/library/cc952299(v=bts.10).aspx
    The articles are old so you need to verify they still apply.
    mark

  • How to set Username and Password to a URLConnection?

    My applet is supposed to access a servlet that is only accessible when username and password are correct.
    I've made a URLConnection object to connect to the servlet, but the problem is that I don't know how to add the username and password details to this connection.
    Can anyone please help?
    Terry

    Does any one know how to do it?
    Please, it's quite urgent...
    And there's 10 DD as award if someone points me in the right direction, please help.

  • How to get username and password for oracle database

    i downloaded oracle database on the assumption it is free software. however when i go to the oracle homepage it says i need a user name and password. how do i get one? is it free

    >
    i downloaded oracle database ...Which version???
    >
    .. is it free...XE 10 is free all other are not
    Edited by: Damir Vadas on Nov 17, 2009 3:34 PM

  • How to change username and password for already running mappings

    Hi Gurus,
    We have created so many mappings(more than 200) in owb 11g and deployed them into production and all are running without any issues.
    Now we are in big problem and the reason is our internal team is asking us to use the new user and password.
    Please let me know what are the best possible ways to change and in which places we need to make changes.
    Thanks in advance... Please help.

    Hi,
    Here are the steps you need to foloow:
    1)Unregister the location that is currently associated with the module that has the mappings
    2)Edit the location information in the designcenter and change it to reflect the new values
    3)Register the location again with the control center and redeploy the maps
    Regards,
    Pnreddy

  • Load username and password for external application?

    How to load username and password for external application?
    For each user, we should take its Portal username and password for one specific external application. How to do that ?
    Regards.

    ABSOLUTLY YES !!!!
    We already know the external application login information for each user and we want to by pass this user task. (Specially because the user itself doesn't know its username/password for the external appli). In fact we are trying to integrate IStore product to Portal by using this mechanism.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kamalendu Biswas ([email protected]):
    If you define an external application then SSO users can populate user information by themselves.
    Are you syaing that you want to populate user information automatically (bulk lodad)?<HR></BLOCKQUOTE>
    null

  • How do I clear stored usernames and passwords for my podcasts?

    We currently operate a password-protected RSS feed for the subscription portion of our website. For the most part it works flawlessly; people can subscribe to the feed and receive daily updates to their iTunes. If their account is canceled or goes on hold for non-payment then our database deactivates their username, which halts access to the feed.
    That all works well. The problem is that if they re-subscribe to the subscription portion of our website they receive a new username and password. Then, when they go to re-subscribe to our password-protected podcast they are not prompted in iTunes for their new username or password. iTunes simply uses the old username/password combo from their canceled account, which makes the podcast fail to update.
    So essentially, I'm asking how we can manually clear iTunes' stored usernames and passwords for podcasts. Thanks!

    Figured it out. Just gotta delete keychain.plist, which is found in one of the following two spots:
    C:\Users\YOURUSERNAME\AppData\Roaming\Apple Computer\Preferences\keychain.plist
    C:\Documents and Settings\YOURUSERNAME\AppData\Apple Computer\Preferences\keychain.plist

  • I accidentally clicked on the remember username and password for a site and I want to undo it. How can I do this?

    I accidentally clicked on the remember username and password for a site and I want to undo it. How can I do this?

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    You can remove a saved password here:
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *http://kb.mozillazine.org/Password_Manager

  • How to get to see the usernames and passwords for wifi logins on iPad

    How to get to see the usernames and passwords for wifi logins on iPad. 

    You can't access that on an iPad. The iPad does not have a Keychain Access type app like the Mac has. Maybe an application like iExplorer on your Mac will let you see them, but you can't see them on the iPad itself.

  • How to give Username and password when calling HTTP page?

    I have this code when i run this I get credentials error. How to give credentials .The authentication is set to windows in the https page. Means pop up will appear to get the credentials
    declare
    req UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    value varchar2(1024);
    p_url varchar2(4000);
    OPT varchar2(1000);
    BEGIN
    dbms_output.put_line('');
    p_url:='http://www.xyz.com/';
    dbms_output.put_line(p_url);
    req := UTL_HTTP.begin_REQUEST(p_url);
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    resp := utl_http.get_response(req);
    loop
    utl_http.read_line(resp, value, true);
    dbms_output.put_line(value);
    end loop;
    exception
    when utl_http.end_of_body then
    utl_http.end_response(resp);
    END;
    When i run this i get
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
    <style type="text/css">

    Basic authentication is set using the UTL_HTTP.Set_Authentication() call.
    If you are using a proxy and need procy authentication, you can set the username and password for proxy access, as part of the proxy URL. E.g.
    utl_http.set_proxy( 'http://proxyuser:[email protected]', null );NTLM (Windows NT LAN Manager) authentication is proprietary and not part of the HTTP specifications. If that is needed, try and use the username and password as part of the URL - or do some research on how to manually perform NTLM authentication.
    If you are using HTTPS, you need an Oracle Wallet with that server's certificate (making it a trusted certificate), and then set/use the wallet using the UTL_HTTP.Set_Wallet() call. See sample code in {message:id=10820182}.

Maybe you are looking for

  • How to Add a parameter of currency exchange rate in the selection screen

    Dear Friends, How to Add a parameter of currency exchange rate in the selection screen with format (9999.99999). wich field i need to take. Thanks, Sridhar

  • How can I add a UserGroup input in an APEX Login Page

    Hi, I am willing to add a UserGroup input (dropdown) in APEX Login page, but I see the default Login page supports only two parameter, i.e. Username and PWD. I see the authentication function wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME,

  • Pricing Procedure Requirment

    Dear guru's,                 my client requirment is as follows.                we have Two materials one is Service and other is Trading Material.Here service material is not collected any VAT Tax. Where as Trading Material needs to calculate VAT Ta

  • Why are my pictures not showing up in Photo Stream?

    Ok, I have set up upgraded everything to the correct versions.  I have set up and enabled Photo Stream on my iMac and on my iPhone.  I have enabled Photo Stream on the iPhone.  I have set up my iCloud services.  I can drag pictures to the Photo Strea

  • ITunes 12 sorting artists and albums wrong/out of order

    Hi, So I'm using iTunes 12, though this problem occurred with 11 too... As you can see in the image, I'm using Mac DeMarco as an example, it happens with selected other artists too. I have two albums of his, yet they don't appear together and there a