Capture a user's window 2000 login name

How can I capture a Windows 2000 login name from within a JSP or an applet or, better still, from some other code running on the application server from which they're downloaded?

Similar Messages

  • Capture a user's Windows 2000 login name

    How can I capture a Windows 2000 login name from within a JSP or an applet or, better still, from some other code running on the application server from which they're downloaded?

    mgulesian, you might want to query the system properties.
    System.getProperty("")Please note that this property is subject of security constraints (and there're good reasons for this, read the Java Tutorial, Trail: Essential Java Classes, Lesson: Accessing System Resources for details). For example, web applications running inside Tomcat are not allowed to query this property by default. Think twice before doing this, you have been warned!
    HTH, Markus

  • LDAP Windows 2000 Login name

    Hi !
    I use the following code to authenticate users against a Windows 2000 Active Directory.
    My problem is that I have to pass the user name "John Doe" instead of the login name "johndoe" as a parameter.
    How can I achive this ? I know, I have to use a fully qualified name like "[email protected]" but ... ???
    Thankx in advance, Gurus !
    import java.util.*;
    import javax.naming.*;
    public class LDAPTest
         public void authenticate(String server,String domain,String name,String pwd) throws Exception
              Hashtable env = new Hashtable();
              env.put(Context.PROVIDER_URL, "ldap://" + server + ":389/dc=" + domain);
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PRINCIPAL, "cn=" + name + ",cn=users,dc=" + domain);
              env.put(Context.SECURITY_CREDENTIALS, pwd);
              DirContext ctx = new InitialDirContext(env);
         public static void main(String[] args)
              LDAPTest p = new LDAPTest();
                   // I have to do this ..
                   p.authenticate("pdc","intranet","John Doe","mypassword");
                   // ... but I want to do this
                   p.authenticate("pdc","intranet","[email protected]","mypassword");
              catch(Exception ex)

    have located the solution on my own.
    simply pass the login name plus the domain name as the SECURITY_PRINCIPAL, for example :
    env.put(Context.SECURITY_PRINCIPAL,userName + "@" + domain);
    Not everything is complicated in a heterogeneus world :-))

  • How to get windows XP login name in SAP.

    I want get windows XP login name in SAP,  which funcion module can  and How method can, thanks.

    GUI_GET_DESKTOP_INFO – Returns information about the end-users desktop
    TH_USER_INFO – Returns information about user
    Try this FM, not sure if it return windown user name....give it a try.
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 27, 2008 4:16 PM

  • NImax & Resman errors at Windows 2000 login

    We have a system with a NI VXIpc 872B controller installed in a Tektronix Intelliframe VXI chassis. The controller is running Windows 2000. Via NIMax, we have set things up such that Resman is executed one time at system boot. When booting after a power-up, if the user logs in too quickly when presented with the Windows login prompt we get Resman, MXS, or nimax errors. When this occurs, the only way to recover is to reboot the controller. If the user waits 10 to 20 seconds before logging in (I assume that Resman/NIMax is executing during this time), no errors occur. Does anyone have any ideas about what may be causing this problem and what we can do to resolve it? We would like to make it such that the user can log in immediately without any problems.

    This is the error that we usually see:
    In a pop-up window:
    "VXI Resource Manager failed due to the following"
    "MXS: ERROR"
    and resman.exe hangs - does not complete execution and terminate as it normally does.
    After this error, any application calls (LabWindows/CVI 6.0 application) to the nivxi library function "InitVXIlibrary()" fail with an error return of 0xffffffff (-1). The only cure is to reboot the system.
    Additionally, the two red LEDs at the top of the VXIpc-872B controller ("Failed" and "SYSF") are illuminated.
    The version of the NI-VXI driver software that we are currently running with is 3.2.1.
    The "Resource Manager Delay" field under the "Settings" tab of the "VXI System 0 Properties" window of the MAX Explorer app was originally set to "5". We changed the value to "0" and this seemed to help quite a bit, however we still see occasional failures.

  • JMF codefor capturing an imageworking in windows 2000 but not in windows XP

    I have done a coding for capturing an image using a web cam.
    I made that code in windows 2000 but now i have installed windows XP in my computer and installed the same JMF 2.1.1e . My code was running very nicely in W2K but why is it not running inXP.
    Can sombody plz help me related to this? when I m running my code it is displaying web cam not detected
    Also my problem is in W2K , in JMF registry it was displaying the camera name but now it is not showing?
    Is JMF 2.1.1e do not work in XP?
    What I should do?
    plz help

    Also in JMF studio when I m selecting the "capture" option from "File" menu , on pressing ok button the error file is generated in bin folder
    following is the content of error file#
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x038d1013, pid=3064, tid=3460
    # JRE version: 6.0_16-b01
    # Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode, sharing windows-x86 )
    # Problematic frame:
    # C  [jmdaud.dll+0x1013]
    # If you would like to submit a bug report, please visit:
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    ---------------  T H R E A D  ---------------
    Current thread (0x02e2d400):  JavaThread "JMF thread: SendEventQueue:" [_thread_in_native, id=3460, stack(0x03790000,0x037e0000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000010
    EAX=0x033aa880, EBX=0x26b28bc8, ECX=0x00000000, EDX=0x039c0668
    ESP=0x037df6f0, EBP=0x037df76c, ESI=0x039c0650, EDI=0x039c066c
    EIP=0x038d1013, EFLAGS=0x00010206
    Top of Stack: (sp=0x037df6f0)
    0x037df6f0:   033aa880 039c066c 039c0668 02e2d400
    0x037df700:   039c0650 038d1699 039c0650 02e2d400
    0x037df710:   26b28bc8 26b28bc8 038d1716 02e2d510
    0x037df720:   037df780 039c0650 00000000 00a19e37
    0x037df730:   02e2d510 037df780 039c0650 6d95a512
    0x037df740:   0000015d 02ae5844 037df864 037df74c
    0x037df750:   00000000 037df780 26b2ed08 00000000
    0x037df760:   26b28bc8 00000000 037df77c 037df7a4
    Instructions: (pc=0x038d1013)
    0x038d1003:   24 08 57 8b 06 8d 56 18 8d 7e 1c 52 8b 08 57 50
    0x038d1013:   ff 51 10 8b 0f 8b 56 14 3b ca 76 07 2b ca 5f 8b
    Stack: [0x03790000,0x037e0000],  sp=0x037df6f0,  free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [jmdaud.dll+0x1013]
    v  ~StubRoutines::call_stub
    V  [jvm.dll+0xecf9c]
    V  [jvm.dll+0x1741e1]
    V  [jvm.dll+0xed167]
    V  [jvm.dll+0xed1dd]
    V  [jvm.dll+0x116290]
    V  [jvm.dll+0x1d0424]
    V  [jvm.dll+0x173e5c]
    C  [msvcr71.dll+0x9565]
    C  [kernel32.dll+0xb50b]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v  ~StubRoutines::call_stub
    VM Arguments:
    java_command: JMStudio
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\JMF2.1.1e\bin\..\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Sun\SDK\bin
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 3, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 3 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 1030888k(515304k free), swap 2484052k(2111276k free)
    vm_info: Java HotSpot(TM) Client VM (14.2-b01) for windows-x86 JRE (1.6.0_16-b01), built on Jul 31 2009 11:26:58 by "java_re" with MS VC++ 7.1
    time: Tue Nov 17 11:42:51 2009
    elapsed time: 16 secondsplz tell me why m I getting this error?

  • Illustrator CS2 Doesn't Start For User on Windows 2000

    I've recently installed Adobe Illustrator CS2 on a Windows 2000 system. When I start the product when logged in as the Administrator, it starts fine. However, when I start the product logged in as a user, it goes thru the startup process, displays all of the various tool windows, and then before it gets to the first time window, it just closes. No error messages, nothing in the Windows system or application log, it just closes the same windows it just opened and then exits.
    I've tried setting the permissions on the folders listed in the Windows Rights KB entry, with no effect. I've tried installing a postscript printer, setting full rights on it, and using it as the default for the user.
    Does anyone know what file right, user priviledge, or other feature might be causing the problem? Thanks.

    I wasn't aware that it required Power User rights. This is somewhat of a high security environment, and that can be difficult.
    Do you, by chance, know what features of Power User rights are needed? I can perhaps grant those to this user, and make it work.
    Do you think it is having a problem accessing portions of the registry, or files in certain folders, or something else?
    Thanks for your help.

  • How to search a user just with his login name ?

    I want to read some properties of a user n i have only the 'Login name' of that user(the Login name available with me is of the different user and not of the logged in user)
    Help me out :_|

    It sound like you want to do a basic user search?
    Here is how we do it in .NET for our custom user search portlet:
    private IPortletContext     portletContext;
    protected DataGrid dgResults;
    private DataTable resultsTable = null;
    protected System.Web.UI.WebControls.Label lblMessage;
    protected System.Web.UI.HtmlControls.HtmlTableCell resultsCell;
    private void Page_Load(object sender, System.EventArgs e)
    portletContext     = PortletContextFactory.CreatePortletContext(Request,Response);
    string searchString;
    searchString = Request.QueryString["TextName"];
    // build up a search request for the matching users
    IRemoteSession prcSession          = portletContext.GetRemotePortalSession();
    ISearchFactory searchFactory          = prcSession.GetSearchFactory();
    IPortalSearchRequest searchRequest     = searchFactory.CreatePortalSearchRequest();
    IUserManager userManager = prcSession.GetUserManager();
    ObjectClass[] objectTypes = {ObjectClass.User};
    if( !searchString.Equals("")){
    IFilterClause generalClause          = searchFactory.CreateAndFilterClause();
                        generalClause.AddStatement(PlumtreeField.NAME, Operator.Contains, searchString);
    Field[] fieldsToReturn = {
    (Field) PortalField.ForID(156), // 156 = Company
    (Field) PortalField.ForID(157), // 157 = Address
    (Field) PortalField.ForID(163), // 163 = Address2
    (Field) PortalField.ForID(162), // 162 = City
    (Field) PortalField.ForID(159), // 159 = State
    (Field) PortalField.ForID(158), // 158 = Zip Code
    (Field) PortalField.ForID(222), // 222 = Location
                        searchRequest.SetQuery("*", generalClause);
    ISearchResponse searchResponse = searchRequest.Execute();
    ISearchResultSet resultSet = searchResponse.GetResultSet();
                        System.Collections.IEnumerator results = resultSet.GetResults();
    // build up our data table, we will bind this to the data grid once populated
    resultsTable = new DataTable("ResultsTable");
    System.Data.DataColumn key = new DataColumn("name", System.Type.GetType("System.String"));
                        resultsTable.Columns.Add("title", System.Type.GetType("System.String"));
                        resultsTable.Columns.Add("phonenumber", System.Type.GetType("System.String"));
                        resultsTable.Columns.Add("address", System.Type.GetType("System.String"));
    System.Data.DataColumn[] keycolumn = { key };
    resultsTable.PrimaryKey = keycolumn;
    while (results.MoveNext())
                             IPortalSearchResult result = (IPortalSearchResult) results.Current;
    //string viewProfileLink = "<pt:standard.openerlink pt:objectid='" + result.GetObjectID() + "' " +
                             //     "pt:classid='1' pt:mode='2' target='userProfileResult'>" + result.GetName() + "</pt:standard.openerlink>";
    string address = result.GetFieldAsString((Field) PortalField.ForID(157));
    string address2 = result.GetFieldAsString((Field) PortalField.ForID(163));
    string city = result.GetFieldAsString((Field) PortalField.ForID(162));
    string state = result.GetFieldAsString((Field) PortalField.ForID(159));
    string zip = result.GetFieldAsString((Field) PortalField.ForID(158));
    string location =result.GetFieldAsString((Field) PortalField.ForID(222));
    string fullAddress = "";
    //added in location
    if(location !="" &&location!=null) fullAddress+= location+"<br/>";
    if(address != "" && address != null) fullAddress += address + "<br/>";
    if(address2 != "" && address2 != null) fullAddress += address2 + "<br/>";
    fullAddress += city + " " + state + " " + zip;
    string name = "<a href='mailto:" result.GetFieldAsString((Field) PortalField.ForID(258))"'>"+result.GetName()+"</a>";
    // add all of the users to our results table
    object[] newUserRow = {     //result.GetName(), 
                                            result.GetFieldAsString((Field) PortalField.ForID(153)), // Title
                                            result.GetFieldAsString((Field) PortalField.ForID(152)), // Phone
    // bind the table to the grid
                        resultsTable.DefaultView.Sort = "name";
    dgResults.DataSource = resultsTable.DefaultView;
    if(resultsTable.Rows.Count < 1)
    dgResults.Visible = false;
    Label lblNoResults = new Label();
    lblNoResults.Text = "The current search '" + Request.QueryString["TextName"] + "' returned 0 results.";
    resultsCell.Width = "100%";
    resultsCell.Align = "center";
    Edited by geoffgarcia at 08/02/2007 12:59 PM

  • Getting windows domain login name into java application

    I am looking how can i get user name of windows logged in user. I want to display the user name in the welcome message of the application. The user will be logging into the domain. Please note that I need windows logged in client user name.
    Please give suggestions or any direction on this.

    Thanks a lot for your prompt response.
    I tried the example. It works really great from the command prompt.
    How do I integrate with application.
    My application runs on OC4J server. I hope I need to change the java security.policy file or something to point to my application sepecific policy file (i.e. in the example, the file that we give thru command line).
    Not sure.
    If possible can you give me some idea on how to change these policy files.
    I know I am asking too much, but please help me in this.

  • FAQ:  Giving non-administrative users of Windows 2000 and XP access to ATM Deluxe

    In order for a restricted user to launch the ATM control panel and add or remove fonts, they will need to have access to the following registry keys:
    HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Type Manager
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Type 1 Installer\Type 1 Fonts
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Fonts
    Adapted from material originally posted by Lance K

    Unfortunately, I wasn't able to do this... I had to use advanced permissions on the %SYSTEMROOT% folder so that the specific group of users I have are the only ones allowed to write to it. It uses a temp file, and writes it to c:\winnt while it is working with it (which is only when ATM is writing changes to the atmreg.atm file at application close time)... so your user(s) will have to have only the "Create Files/Write Data" permissions to the whole of the winnt folder (and modify permissions on the atmreg.atm file) to use atm. I had to use a utility that traces thread, file & Registry access to determine how to make this work. This is the ONLY way, ATM is hard-coded to use atmreg.atm in the system root folder (as well as to use the temp file in the system root folder), and it needs create files/write data permissions on the system root folder to use the temp file. I hope this makes sense to you... if not, e-mail me [email protected] and I will send you my document for fixing the problem.
    Good Luck

  • Different Pre-Windows 2000 domain and FQDC.

    I have a SBS 2003 box that was originally migrated from SBS2000. i just finished install new 2012 standard server and installed AD service on it, but when i trying promote to DC, it won't do it until functional level raise to least 2003 level.
    My question is following:
    when user login, user uses pre-windows 2000 login name.  
    For example, DC11\user but FQDC is DC1.local.  we have no DC11 exist. 
    When user trying login as DC1\user, it won't able to login. even Administrator has to login as DC11\administrator not DC1\administrator. 
     When i look user properties account login name user @dc1.local and pre-Windows 2000 name DC11\ user are listed. 
    if i raised to Windows 2003 function level, did user can't login? or any effect? 

    DC11 is the NetBIOS name of your domain and it can be changed using Active Directory Domain rename tools - - if you don't want to use DC11 in your environment. However, this could have impact other applications like Exchange,
    as Exchange doesn't support domain rename.
    Another option for you would be to deploy a new Forest or domain with the names that you desire and migrate stuff - Users/Workstations/Servers/Application and get rid of old domain.
    UPNs ([email protected]) is easy to change but changing NetBIOS is a complex process and needs to be done with extreme care.
    - Sarvesh Goel - Enterprise Messaging Administrator

  • ACS External Windows Authentication: Pre-Windows 2000 name only works

    Hello. I have attempted to map ACS to Windows AD 2003 as an External Database. That works, but only if I authenticate using the Pre-Windows 2000 name (sometimes called the "down-level" name).
    If I use the Windows 2003 login name, I get a 529 error in the event viewer, stating the username/password is incorrect. This error appears on the Windows 2003 SP1 server running ACS.
    Curiously, if I authenticate using the down-level name, the successful event shows the same authentication package (MICROSOFT_AUTHENTICATION_PACKAGE_V1_0) and "Workstation" and "Login Process" name (CISCO).
    I cannot determine if this is an ACS or Windows problem. Any one have a clue?

    Win2003 logon name: [email protected]
    A Pre-Windows2000 name: [email protected]
    Interestingly, the down-level name will authenticate, but the "up-level" name will not.
    Here are excerpts from AUTH.log:
    Failed up-level name:
    AUTH 01/19/2006 07:52:04 I 4817 3604 Attempting authentication for Unknown User '[email protected]'
    AUTH 01/19/2006 07:52:04 I 0365 3604 External DB [NTAuthenDLL.dll]: Starting authentication for user [[email protected]]
    AUTH 01/19/2006 07:52:04 I 0365 3604 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user bob.smith
    AUTH 01/19/2006 07:52:04 E 0365 3604 External DB [NTAuthenDLL.dll]: Windows authentication FAILED (error 1326L)
    AUTH 01/19/2006 07:52:04 I 0365 3604 External DB [NTAuthenDLL.dll]: Reattempting authentication at domain COMPANY
    AUTH 01/19/2006 07:52:04 I 0365 3604 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user bob.smith
    AUTH 01/19/2006 07:52:04 E 0365 3604 External DB [NTAuthenDLL.dll]: Windows authentication FAILED (error 1326L)
    AUTH 01/19/2006 07:52:04 I 2124 3604 Unknown User '[email protected]' was not authenticated
    Passed down-level name:
    AUTH 01/19/2006 07:52:23 I 0365 3604 External DB [NTAuthenDLL.dll]: Starting authentication for user [[email protected]]
    AUTH 01/19/2006 07:52:23 I 0365 3604 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user bsmith
    AUTH 01/19/2006 07:52:23 I 0365 3604 External DB [NTAuthenDLL.dll]: Windows authentication SUCCESSFUL (by WINDC02)
    AUTH 01/19/2006 07:52:23 I 0365 3604 External DB [NTAuthenDLL.dll]: Obtaining RAS information for user bsmith from WINDC02

  • "Google translate" somehow personalised a translation with my windows login name

    I am at a loss as to how this occurred and see it as a security threat. I pasted "cogito ergo" into the google translate website. It didn't translate it into English until I selected Latin as the language, at which point it translated it as "Xxxxxx, thinks therefore", where Xxxxxx is my windows 7 login name. Worried, I created a new login and tried to replicate it. It didn't happen again and so far I have been unable to replicate it again.
    I am not aware of a way for a website to ascertain the users login id but now I have to assume that it can be done. How I don't know, which is why I'm bringing it up here.
    Is this possible and how can I stop it happening again.
    I run Firefox 15 with adblock, better privacy, Ghostery and Noscript, I am also running Comdo firewall, not sure what else I can add.

    Ideato thank you for your reply.
    Whilst it doesn't address the issue directly and I still find it difficult to put it down to coincidence, I will give DNT+ a whirl.
    I remain convinced that google are far more intrusive than they let on and if I could find a search engine that came even close, I'd dump google in a heartbeat.

  • Query users by login name

    is it posssible, with the EDK 5.1, to search a user just with his login name ?

    hi Daniel,
    and some sample codes
    Where-used list of an attribute (either display or navigational)
    Query-InfoObject - Tables
    Table name/FM that give query definition details
    Link technical name and query name
    hope this helps.

  • ACS and Windows 2000 user database communication port

    Could my Windows 2000 SP4 + ACS v3.23 can install any new Windows 2000 service pack ?
    I'm affraid to infect ACS Service.
    So, I want to install firewall on this server to block malicious traffic.
    However, my ACS used external user database Windows 2000 for authentication.
    Who can tell me What protocols or port list they are communication?
    I have to avoid these traffic on my firewall.

    Hi cheng
    I think you can install any servie pack without problem and the SP4 is the latest one for WIN2000 and you server already has this SP
    For your second question you need to specify many protocols according to your active directory config in this link you can find a list of this protocols and the best way is to make debug or logging or use a siniffer to know the exactly protocols flow between your ACS and AD server
    Best Regards

Maybe you are looking for

  • Oracle.jbo.NoDefException: JBO-25058 during Personalization of Flex Item

    Hi, Service Request # 7082522.993 Customer : Hitatchi Data Systems Release : 12.0.5 Machine Name: Login Name: operations / welcome Responsibility : Manager, Self-Service Click on "My Employee Information" hyperlink

  • How do I fix the itunes library.itl file is locked/

    How do i fix " the itunes library.itl is locked?

  • Issue with iTera HA software and SP19

    We are looking to install an enhancement package in a few months along with the latest support packages.  As part of this we will be implementing Basis SP19 which IBM and SAP state I must follow the instructions in OSS note 1366799.  Basically this n

  • Date format in Oracle reports

    Hello everyone, I need my report ro show dates with HH:MM:SS. But the report only shows dates as DD-MON-RR. I think I chose all the correct format masks in the report builder (DD-MON-RR HH24:MI:SS), and in the rtf tags. Another point is that all the

  • Connect one JAVA ADS instance to multiple clients from the same ABAP system

    Hi, Does anyone know whether it is possible to connect multplie clients from the same ABAP system to a JAVA instance running ADS? If so how do you setup the java destinations in Visual Admin and SM59 RFC connections? Any help is appreciated, Sander