Getting the NT UserName

I have various posting on NT authentication, I am looking for getting the client's username from NT who is accessing my server through HTTP. Is this possible, if so what class i should use in java.security package.
I will do the authentication by comparing this username with my list of users in DB.

The answer is simple: You cant.
You can enforce your clients sending their user name in the HTTP session by using servlets or JSP, but this requires that the client browser/application sends the user name in the HTTP header or servlet call.
In short terms:
There is no direct connection between the NT user name and the HTTP request on your web server.
Oliver

Similar Messages

  • How to get the Portal Username to SAP Transaction IView ( ABAP cust repor )

    Hi Experts,
    We have an ABAP program that will be exposed in portal as SAP transaction IVIEW.  However the username that is being displayed in the report is the username that is defined in SICF > SAP > BC > GUI > ITS > WEBGUI.  I tried to remove the username and password defined, changed the procedure to Alternative Logon Procedure and deleted some logon procedure list retained Basic and SSO Authentication but we are getting DDIC username.  We have successfully implemented SSO, and it works in Personal Information of Standard ESS.  The following are configure in our portal:
    1.  We have set SSO ticket
    2.  We are using User Mapping for portal and ABAP System
    3.  Retain Basic and SSO authentication
    what could be the cause why the program (iview) is still getting the user instead of Portal Username? How can we get the portal username for our abap customized report exposed in iview

    Hi,
    Make sure that the System you are using to connect to R3 has Log On Method and Authentication Ticket Type properties has SAP LOGON TKT as the value selected.
    Path: System Administration --> System Configuration ---> Systems....
    Regards,
    SrinivaS

  • How to get the windows username in jsx

    Hello,
    I have a JSX script in "My Documents\Adobe Scripts" to make it trusted script. I have another text file I need to read from JSX. Since the location depends on logged in user, I need to find the windows username. If anyone know how to get the windows username from jsx please reply.
    Thank you very much.
    Regards
    Nima.

    Hey,
    You can get username like this:
    var myUsername = $.getenv('username');
    You could also get My Documents folder like this:
    var myDocFolder = Folder.myDocuments;
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com/

  • Getting the NT username of the viewer of the JSP page..

    Hi.
              I was wondering if it is possible to get hold of the client's NT username
              from within a JSP or servlet. All I want is the current logged in username
              of the viewer of the page. Is there any way to do this in Java at all?
              It is possible in ASP + IIS and I guess I could forward the username for an
              ASP-page, but I don't think that is a very clean way of doing it.
              If I use '<%=java.lang.System.getProperty("user.name")%>' in a JSP-page I
              will only get the user of the server where the JSP is running:
              Any suggestions?
              - Oystein Saebo -
              

    I was wondering if it is possible to get hold of the client's NT          username
              > from within a JSP or servlet. All I want is the current logged in
              username
              > of the viewer of the page. Is there any way to do this in Java at all?
              If you use IIS as http proxy to WLS you can call the getRemoteUser()
              method. On WLS6.0SP1 you get the NT domain\user back.
              Regards,
              Merg
              

  • How to get the admin username & password for JMX connection

    Hi All,
    I need to retrieve the username & password and pass it to the JNDI to get the JMX connection for MBean Server. I will be doing this locally.
    Is there an API that I can use to retrieve this information ?
    thanks
    -sheshi

    Forgot to mention, I am using WebLogic 9.1

  • How to get the current username (Adf Security) in a VO query?

    Hi all,
    I want to filter a VO query using the current username in the where clause. What is the correct object in the security context to do that?
    Thanks.
    JDEV 11.1.1.7

    Hi,
    Do not directly put the username in your query, you query should be something similar to:
    select abc, bcd, user_code FROM TABLE
    WHERE (USER_CODE = :LoggedInUser)
    then create a bind variable "LoggedInUser" of type String with value type as expression and value as (adf.context.securityContext.userName)
    - Lalit

  • Getting the Authenticated Username

    I've been looking for the answer to a very simple question all afternoon.
    When a client calls an EJB method, is there any way to find out what/who the original username/principle was?
    Something like ...
    @Stateless
    public class Hello implements HelloInterface {
    @RolesAllowed("hello")
    public String sayHello() {
    String username = /* INSERT CODE HERE */
    return "Hello " + username;
    I understand that I pass these credentials when I lookup the Remote Bean ... are they held anywhere for the duration of the request?
    Thanks in advance.

    Hi,
    you are not on the latest JDeveloper 11g release but the fisrt production build I assume. Here the EL builder only shows username. In the current production buld, all other EL options are displayed as well. However, typing the EL by hand should work at runtime
    Frank

  • Get the WinNT username without login in F6i client

    Hi,
    I must read the WinNT username without login (P-F-Trigger)
    in Forms 6i client.
    This is usefully to create a login.
    Thanks,
    Friedhold

    If your database is 8i and above, you can use sys_context built-in.
    For example:
    select sys_context('userenv','os_user') from dual;
    It will give you OS login user name.
    However you can not directly use sys_context in Form 6i(Believe or not, Form 6i is built on Oracle 8 not 8i). You have to create a function to return the user name and call the function in Form.

  • How do i get the login username?

    Normally a portlet could use <portletrequest>.getRemoteUser(), but ops returns a malformed user name (uppercased and with a number, so 'user' gets returned as 'USER[1]'.
    Is there any way to obtain/restore the original user name that the user used to login?

    Let me get this straight:
    I am running a jsr168 compliant portlet within oracle and at no time do i have an object from the oracle.portal.provider.v2-package tree.
    The objects i see in my debugger come from the oracle.webdb.wsrp.server package tree and somehow oracle mixes all up.
    So the question is:
    How do i get the correct remote user name if my base reference is a oracle.webdb.wsrp.server.RenderRequestImpl or a oracle.webdb.wsrp.server.RenderResponseImpl?

  • When I add users as managers or to send as in shared mailboxes I get the test username applied

    I have two users [email protected] [email protected], Both users were added to the test group with onmicrosftonline.com as [email protected] and [email protected] The .temp was removed when we went to our own domain now
    when I add jane.doe to a shared mailbox I see the jane.doe.temp for the send as but full access displays her name correctly. When I add John.Smith as a manger he is displayed as John.Smith.Temp. 
    Thank you.  

    Hi,
    Please check the name in OWA.
    To solve this issue, you can try to clear up nickname cache.                
    Here are some related information for you.
    How to reset the nickname and the automatic completion caches in Outlook:
    http://support.microsoft.com/kb/287623
    How to reset nickname cache for all outlook 2010 users:
    http://social.technet.microsoft.com/Forums/en/exchange2010/thread/f419cc62-d4fe-4ac4-aed5-cab6b2c02faf
    Thanks.

  • Use ADF Managed Bean to get the username in BPM Workspace

    Hi all,
    I used JSF and ADF to build the UI of human task. And I want to get the username of the user who is manipulate on BPM Workspace. For example, an ADF form can display the username of current user in BPM Workspace. I also try this approach: use Manage Bean, and bind this bean to a output text in ADF form. The code fragment I use to get the current username is:
    ADFContext.getCurrent().getSecurityContext().getUserPrincipal().getName();
    But it does not work. The value I get is Anonymous.
    So, plz help me solve this problem

    Hi, please try this function as below:
    public String getUserLogin() throws WorkflowException,
    BPMIdentityException,
    BPMUnsupportedAttributeException {
    String userId = "";
    IWorkflowServiceClient wfSvcClient;
    ITaskQueryService queryService;
    IWorkflowContext wfContext;
    // Get username of User Login
    String contextStr = ADFWorklistBeanUtil.getWorklistContextId();
    wfSvcClient = WorkflowService.getWorkflowServiceClient();
    queryService = wfSvcClient.getTaskQueryService();
    wfContext = queryService.getWorkflowContext(contextStr);
    userId = wfContext.getUser();
    return userId;
    Regards.

  • Can we get the name of fmx file at runtime

    Hi all,
    can we get the name of fmx file which is doing some DML operation on a specific table Can we back track which fmx module has done DML on a specific table. The reason I need this because I've 7 different fmx files which are doing some DML operation on a specific table and these fmx files were used by different users. Not necessarily 1:1 For eg. one user can do DML through 3 different fmx files. So in such case if I want to want to know from which fmx file this DML has take place .How can I achieve that. I know I can get the oracle username through v$session but it will not suffice my needs. I need the name of fmx file also.
    I'm using:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Any help?
    Warm Regards
    Percy

    Percy,
    For that you can set the Module Field in the V$session in each form by,
    DBMS_APPLICATION_INFO.SET_MODULE(MODULE_NAME => :SYSTEM.CURRENT_FORM, ACTION_NAME => USER);Write this in each form, and then you will get the form name in the V$SESSION's module field with form name.
    Hope this helps.
    Regards,
    Manu.

  • How to get the current user name in Provider hosted app using appOnlyAccessToken

    Hi, 
    Please help me, how to get the HostWeb UserName in Provider Hosted App
    i have Provider hosted App, and Anonymous Authentication is enabled on AppWeb, using appOnlyAccessToken
    Below code does not return current user who Log in in hostweb, it is returning
    SharePoint App (app@sharepoint)
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;
    Below code gives a blank name when Anonymous Authentication is enabled, if Anonymous Authentication is disabled
    app prompts for credentials 
    HttpContext.Current.User.Identity.Name
    Thanks
    Ram

    Hi,
    Since you are using a provider Hosted app if you want to get the current logged in name than do not use AppOnlyAccessToken else use AccessToken which is App + user Context AccessToken.
    then 
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;will return proper user Name.
    HttpContext.Current.User.Identity.Name will never return the user as this object is related to IIS server of your App Server not sharepoint.you should set this as Anonymous in case of provider hosted app.you can download the below sample which uses the AccessToken which has user name in it.https://code.msdn.microsoft.com/Working-provider-hosted-8fdf2d95
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Getting the error during RCU installation

    Hi,
    I am facing the below error during the installation of RCU.I has given the sys user and the pwd which is working fine from DOSPROMPT.the same when i give in the the configuration during the installation of RCU ,i am getting the below error .Can any one help me in sorting out this issue .
    Thanks in Advance..
    2012-10-02 22:52:58.645 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::connect: Connecting to database: user:sys, role:SYSDBA, connectString:(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(service_name=ORCL)(server=dedicated)))
    2012-10-02 22:52:58.730 ERROR rcu: oracle.sysman.assistants.rcu.backend.validation.StepValidator::isConnectionStepValidated: Failed to connect database: Invalid username/password.
    Please enter valid username/password
    2012-10-02 22:52:58.730 ERROR rcu: oracle.sysman.assistants.rcu.backend.validation.StepValidator::isConnectionStepValidated: SQLFatalErrorException:
    oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: Invalid username/password.
    Please enter valid username/password
         at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.connect(JDBCEngine.java:585)
         at oracle.sysman.assistants.rcu.backend.validation.StepValidator.connectDatabase(StepValidator.java:358)
         at oracle.sysman.assistants.rcu.backend.validation.StepValidator.connectDatabase(StepValidator.java:253)
         at oracle.sysman.assistants.rcu.backend.validation.StepValidator.isConnectionStepValidated(StepValidator.java:1352)
         at oracle.sysman.assistants.rcu.ui.pages.DBConnectionPage.updateModel(DBConnectionPage.java:552)
         at oracle.sysman.assistants.common.wizard.WizardPageExt.wizardValidatePage(WizardPageExt.java:166)
         at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(WizardPage.java:710)
         at oracle.bali.ewt.wizard.WizardPage.validatePage(WizardPage.java:680)
         at oracle.bali.ewt.wizard.BaseWizard.validateSelectedPage(BaseWizard.java:2367)
         at oracle.bali.ewt.wizard.BaseWizard._validatePage(BaseWizard.java:3072)
         at oracle.bali.ewt.wizard.BaseWizard.doNext(BaseWizard.java:2152)
         at oracle.bali.ewt.wizard.dWizard.DWizard.doNext(DWizard.java:405)
         at oracle.sysman.assistants.common.wizard.WizardExt.doNext(WizardExt.java:261)
         at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3944)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
         at java.awt.EventQueue.access$000(EventQueue.java:84)
         at java.awt.EventQueue$1.run(EventQueue.java:602)
         at java.awt.EventQueue$1.run(EventQueue.java:600)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
         at oracle.sysman.assistants.common.util.EventPopUp.dispatchEvent(EventPopUp.java:94)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Thanks veeravalli for your reply,
    I tried manually created a user and provided the sysdba priveiledge to that user and gave that user name and pwd in the database connection steps of RCU installation and gave next .this time i dint get the invalid username /pwd error.But instead i got the below error.
    RCU-6002:The specified database does not meet the minimum requirement to load metadata repository.
    RCU-6080:Global prerequisite check failed - Check requirement for specified database
    The database you are connecting is with non-AL32UTF8 character set. Oracle strongly recommends using AL32UTF8 as the database character set.
    Can anyone suggest an idea to resolve this issue .

  • I have Iphone 4s, and the phone will activate itself again. How do I get changed Apple ID on my phone so that I get using the new username and password that is verified? I would like an answer as soon as possible ... Thank you very much.

    I have Iphone 4s, and the phone will activate itself again. This I have verified, but when I shall put this onto my phone, so the phone will not approve the newusername and password. How do I get changed Apple ID on my phone so that I get using the new username and password that is verified? Silly to buy a new phone just for this .... The phone is almost three years old. How long can weexpect this to last? I would like an answer as soon as possible ... Thank you very much.

    It sounds like your device might be in Activation Lock.  Is it asking your to enter in an Apple ID & password, but only showing you the first letter of the email address and then some dots? Example: j•••••@icloud.com?
    If so, do you recognize that email?  Do you have an Apple ID that fits the same format?  If so, then go to www.cloud.com, log in with that Apple ID & password, and see if under Find My iPhone it shows this device.  If so, turn off the device, then remove the device from the list.

Maybe you are looking for

  • Add XML Publisher Administrator responsibility with EBS 11.5.9

    Hi all ! I'm exploring the possibility to use XML Publisher inside Oracle E Business Suite 11.5.9. because...unfortunately it's not possible to upgrade EBS to the 11.5.10 version I found a note on the forum which says: "Starting from 11.5.9 the XMLP

  • Forms to Java conversion

    Hello Gurus, i have Oracle / Developer 2000 Forms in binary(fmb) and executable(fmx) format , i need them to convert them into Java, is there any tool or conversion method so that i can use as a java program. Please help me in this regard Thanks Qavi

  • Activating new iPhone & downloading software

    Anyone else having issues activing new iphone because of iTunes software and Apple password? I keep downloading the new software on computer, but phone saying not loaded. And when I try to connect using Apple log-in & password, Apple is telling me I

  • Select current line through push button in module pool

    Hi, I have created one module pool program with table control. There I have inserted on push button where some logic is deployed. Logic :- If I push button on current line or any line, that line should be selected in the program. So that I can move t

  • MySql with UTF-8

    Hi All. I'm stuck with this so much time... I can't store and retrive UTF-8 strings in the right way. (I get "????" instead of the original string). I sow in the forums here that for mySql to work with UTF-8 I only need to set the connection string l