Get Windows domain name and user through jsp

I have a jsp page that will be viewed through ie on windows platform, that is a member of domain.
I need to get the domain name and logged in windows user name to use it in my page.
I've looked through similar topics. Found no answer.
1.
System.parameter("user.name") is not ok. it returns user that runs jvm.
2.
import com.sun.security.auth.module.NTSystem;
NTSystem system = new NTSystem();
system.getDomain()
system.getName()that didn't work through jsp, though the answer is correct.
3. I found some api at http://www.sinotar.com/download/swin/doc/index.html
it did the right thing, but it's not free.
Could anyone advice me smth?
I've looked

well, it won't work in your jsp because jsps run server-side
could try putting an applet on your page that does it, but I wouldn't be surprised if the security manager put the kibosh on that, too
a third - but clunky - way would be to write a quick java app that does it, and launch it through WebStart. bit ugly, and needs extra user input they might not want to do

Similar Messages

  • Get windows domain name

    Hi
    How can i get windows domain name after user has been authenticated using ServletAuthentication.login method?
    JDev 11.1.2.3
    Thanks

    The ADF Security Context doesn't provide this kind of information (neither through EL nor through java), so I guess you have to a bit more there.
    A couple of blogs that might help:
    http://one-size-doesnt-fit-all.blogspot.com/2009/01/configuring-jdev-11g-adf-security-app.html
    http://adfhowto.blogspot.com/2011/07/how-to-configure-active-directory.html
    Timo

  • Getting all service names and users

    Hi all,
    Can i ger all service names in database and users related to that service names .
    Thanks in advance.

    Hi,
    I don't think that's possible in one query given the fact that you can connect to only one instance/database at a time...
    You could post this question also at the [Database-General|http://forums.oracle.com/forums/forum.jspa?forumID=61&start=0] forum, though...

  • Lync 2013 /w Edge not working properly (internal/external same domain name and all "external" users"

    Hi,
    I've got some issues with a Lync 2013 setup.
    The config consists of 2 lync servers. One FE and one Edge. All seems to work except audio in meetings and Sip.
    The setup is like this (fake ip's used):
    Front End:
    Internal IP: 172.16.0.10
    External IP: x.x.185.10
    All ports open in Cisco ASA
    internal AD DNS: dialin/lync/meet/lyncdiscover to Front end internal ip. edge/lsedge/sip points to edge internal ip
    EDGE:
    Interal IP: 172.16.0.11 (no gateway configured)
    External IPS: x.x.185.11, x.x.185.12, x.x.185.13
    All external IP's are direct internet facing, no NAT (a firewall is in place).
    All external interfaces are using a wildcard certificate.
    All server are running in a remote data center, so basically no internal users. We all connect to the external interfaces. The Windows domain name (AD) is the same as our External DNS (companyname.com).
    Autodiscover works, we can logon, chat but there is no audio. The audio test failes. Also SIP is not working with a sip trunk.
    External DNS: sip/webconf/av are pointing to their external ip's. sipexternal is a cname to sip. lyncdiscover/lync/dialin/meet all point to the Frond end External ip.
    _sip._tls/_sipfederationtls.tcp/_xmpp-server.tcp all point to the sip.companyname.com ip.
    I just can't figure out what is wrong.

    @PSingh123 I'll try the logs in a minute and get back with the results.
    @PaulB_NZ Thanks for the input. In my opinion the FE does need an external IP. How else will you be able to connect if you are a remote worker?
    The Edge is (asfar as i know) needed for Enterprise voice and Federation with other (external) sip domains. It's not needed for basic (chat/video/whiteboard etc) Lync functionality for both internal and external (remote) users.
    The Edge is to communicate with services/users outside the origanisation.
    I do still think that the basic topology (FE with internal IP and Nat'ed external ip working with an Edge with internal IP and 1 external IP nat'ed to 3 DMZ ip's) is correct in this case.
    I can be wrong and in that case would like to be pointed to the correct configuration.
    75           
    Points
    Top 15
    PSingh123        
    Partner        
    Joined  Jun 2007        
    9
    PSingh123's threads
    Show activity

  • Get the pc name with domain name and add it to my properties file using commands

    i want to get the pc name with domain name and add it to my properties file using powershell  .
    sid

    function Get-Environment{
    [environment]|Get-Member -Static -MemberType Properties |
    ForEach-Object{
    if($_.Name -ne 'StackTrace'){
    $v=[scriptblock]::Create("[environment]::$($_.Name)").Invoke()
    New-Object PsCustomObject -Property ([ordered]@{Name=$_.Name;Value=$v[0]})
    Get-Environment
    Get-Environment | Out-String | Out-File environment.txt
    ¯\_(ツ)_/¯

  • Can i recover my all active directory domain computers and users from IFM and in-cooperate them in new forest ??

    My only Active Directory Server on win server 2008 R2 with one domain controller crashed today. The only backup that i had was IFM media.
    So what i have done till now to recover it is a follow
    I reintalled window server but this time it is winserver 2012. I added AD DS role to it. Promoted it to Domain Controller. (functionality level is 2008 R2)
    On second server i installed win 2008 R2 and trying to add additional domain controller from IFM to recover all of my domain users,computers and GPO's. but i am getting this error
    Could not replicate the directory partition CN=schema, CN= configuration, DC=XXX, DC=com from the remote domain
    the naming context specified for this replication operation is invalid
    i dont know weather my approach is correct or not
    but my simple questions is
    Can i recover my all domain computers and users from IFM and in-cooperate them in new forest ?? if yes how can i do that?? urgent help required.

    yup exactly i created a new domain(in new forest) with same previous name in window server 2012 on SERVER-1. As ifm file that i had was generated from 2008 r2 so on second server i installed window 2008 r2 and tried to add role of additional domain controller
    from ifm file on SERVER-2 using dcpromo /adv . every step went ok but in last step when it starts replicating domain controllers it poup following error
    Could not replicate the directory partition CN=schema, CN= configuration, DC=XYZ, DC=com. .  .
    and roll backs every thing.

  • Ktpass: failed getting target domain for specified user

    Hi all,
    I am trying to generate keytab file by following document 
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15740/wna.htm#REGADWNA
    relevant section 7.3.2.
    Environment we are using as follows:
    Microsoft windows server 2008
    Command executed :
    ktpass /princ [email protected] /mapuser [email protected] /pass Micro123 /out c:\poc.keytab
    Here NTDS (AD windows service name)
    MSCAD.AE (AD domain name)
    [email protected] (AD user)
    Micro123 (Password)
    c:\poc.keytab (file location)
    while executing display error as response:
    C:\>ktpass /princ [email protected] /mapuser [email protected] /pass Micro123 /out c:\poc.keytab
    Cannot bind to default domain: 0x54b
    ktpass:failed getting target domain for specified user.
    Your assistance in this regard would be highly desirable.
    Regards,
    Syed Waqar

    I don't think you have your principal name defined correctly. 
    It should be in the following format:
    host/[email protected]
    http://technet.microsoft.com/en-us/library/cc753771.aspx
    Paul Bergson
    MVP - Directory Services
    MCITP: Enterprise Administrator
    MCTS, MCT, MCSE, MCSA, Security, BS CSci
    2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
    Twitter @pbbergs http://blogs.dirteam.com/blogs/paulbergson
    Please no e-mails, any questions should be posted in the NewsGroup.
    This posting is provided AS IS with no warranties, and confers no rights.

  • Domain name and  session

    Hi ,
    We have deployed our application on tomcat server built on struts framework.
    We have also set the domain name and are redirecting the domain name to Static Ip
    where our application is deployed with URL Masking option enabled.
    Everything is working fine in Firefox.But in IE6 and IE7 we are facing issues related to sessions.
    Example:
    it works when we access directly
    http://156.78.78.89:8000/myapp/login.do?method=display
         when i redirect this with a domain name(with URL masking enabled) like
         http://www.mydomain.com It does not work.
         I am not able to login into application(using sessions of this) or use shopping cart(using cookies)
    Cookies are getting disabled and there is no session maintainance.
    Is it problem with struts config or tomcat server?
    I am unable to take my application live because of this issue.
    Please help me to solve. Thank you for your time and consideration
    email:[email protected]

    Hi BKBK,
    I'm using CF10 and aplicaction.cfc
    <!--- Define the application settings. --->
    <cfset THIS.name= "GuarderiasGMX2"/>
    <cfset THIS.applicationTimeout = createTimeSpan( 0, 1, 0, 0 ) />
    <cfset THIS.sessionManagement = true />
    <cfset THIS.sessionTimeout = createTimeSpan( 0, 1, 0, 0 ) />
    I don't use cookies to set the session. I only use cfcookie for kill the session on the application.cfc when the user sign out.
    <cffunction
    name="onRequestStart"
    access="public"
    returntype="boolean"
    output="false"
    hint="I initialize the page request.">
    <!--- Define the local scope.--->
    <cfset var local = {} />
    <!--- --------------------------------------------- --->
    <!--- --------------------------------------------- --->
    <!---
    Check to see if we killed the session timeout in the
    psuedo constructor. If we did, we can / should now
    kill the cookies for the current session and then
    redirect such that the user can get their new session.
    --->
    <cfif structKeyExists( url, "killSession" )>
    <!---
    Clear all of the session cookies. This will
    expire them on the user's computer when the
    CFLocation executes.
    --->
    <cfloop
    index="local.cookieName"
    list="cfid,cftoken,cfmagic">
    <!--- Expire this session cookie. --->
    <cfcookie
    name="#local.cookieName#"
    value=""
    expires="now"
    />
    </cfloop>
    <!---
    Redirect back to the primary page (so that we dont
    have the killSession URL parameter visible).
    --->
    <cflocation
    url="index.cfm"
    addtoken="false"
    />
    </cfif>
    Regards

  • Windows Login Name and Password

    Hi,
    I am developing an application, which requires the windows login name for greeting and password for validating and granting privileges.
    Could someone please give me the pseudo code for getting the windows login name and password.
    Thanks,
    Mitra.

    I'll try to validate some other parameter instead of
    password. The password will be stored but it will be
    encrypted.Bad Thing (TM). Never store passwords.
    When we are able to get the UserName using
    JavaScript, why can't we get it using Java.I told you how to get it. And what does Javascript have to do with anything? Just because you can drive through a very narrow alley with your bicycle, you should be able to do the same with a truck? Javascript and Java are not related in any way.

  • Resolving local domain name and nameserver address

    Hi,
    Is there any way to get the local domain name (on Windows it would be NT domain name and on Unix based platform it is DNS server's domain name) and local DNS server address ?
    Thanks,
    Rohit

    import java.net.*;
    try
       InetAddress ip = InetAddress.getLocalHost();
       String fqdn = InetAddress.getCanonicalHostName();
       int firstDot = fqdn.indexOf(".");
       String domain = fqdn.substring(firstDot+1);
       System.out.println("domain: "+domain);
    catch(Exception ex)
       ex.printStackTrace();
    }

  • Domain name and search engines

    Hi
    There have been a few helpful postings about the importance
    of having text on your frontpage for crawlers etc to improve your
    search ranking. My question: how important is the domain name for
    search engines? Is it worth investing a dime or 2 on a good generic
    domain? If you needed to have 2 words (e.g. www.top-lawyer.com) is
    it better to have them combined (e.g. www.toplawyer.com).
    PS This is just an example...I am not a lawyer!

    "Airborne Bob" <[email protected]> wrote in
    message
    news:[email protected]...
    > Gareth:
    >
    > In my case, I have created my website at Domain Name
    > www.LBIBeachRentals.NET.
    > The .COM version was not available at the time I
    obtained it.
    >
    > But I just purchased the .COM version this past Friday
    because it became
    > available and it's the more commonly accepted URL (and
    as a preventative
    > measure against someone else getting my rental people).
    >
    > Network Solutions tells me it's no problem.... they'll
    just direct (or
    > "point")the .COM to my .NET website. Is this okay in
    terms of search?
    > Are you
    > saying I will somewhat diminish ranking by doing this?
    >
    > TIA for any advice on what I'm doing.
    I think that your both confusing "domain names" and
    "domain/web space
    hosting" here.
    Typically you register with a hosting company and receive an
    amount of disk
    space. bandwith etc and a domain name, say
    www.thru-the-net.com
    You create your web site and upload it to the serve and
    people can access
    your web site at www.thru-the-net.com
    Now you realise that many people outside the US are entering
    www.through-the-net.com so you get your provider to register
    www.through-the-net.com for you as well and they POINT this
    address to
    www.thru-the-net.com. That is to say when people enter
    www.through-net.com
    the actually end up at www.thru-the net.com i.e. the same
    place.
    This is o.k. you can have as many variations as you want -
    www.thru-the-net.com
    www.through-the-net.com
    www.thruthenet.com
    www.throughthenet.com
    www.thru-the-net.net
    www.through-the-net.net
    etc. all pointing to the same www.thru-the-net.com server.
    This is o.k. and
    the search engines don't mind this.
    BUT
    If you have SEPARATE web space for each of these domain name
    variants and
    just copy your entire site into each of these spaces, now the
    domains are
    not being forwarded. They are entirely stand alone domains
    that are all the
    same.
    Search engines DON'T like these and see them as an attempt at
    improving
    ranking and therefore penalise all of them.
    Sorry for being so long winded, but hopefully this makes
    sense.
    Regards
    Phill

  • Changing Domain Name and IP address of a server

    We have an Oracle 10G server (running on Windows) that needs to have its domain name and IP address changed. I did a search on this forum and found similar threads to this one (e.g. Rename server name & change domain Just wondering if anyone has any other comments to make that haven't been mentioned previously.
    Looks like on the server side, we just have to change the listener and tnsnames.ora file. Anything else we have to worry about? (Unfortunately this is something I've never done before.)

    TomF:
    Yeah I know the listner SHOULD be the only thing that needs to know the server's network information. However, databases are big, complex pieces of software, and I'm just a bit paranoid that there's some system variable that needs to also get changed that I might be overlooking.
    You suggested I might need to change the global_name... Upon further research, I've found references to other variables that may need to change... local_listener, remote_listner, and dispatcher. (Note: I don't have the Oracle documentation handy so I can't verify how valid those are.)

  • Domain name and hosting provider

    Can anyone recommend a good domain name and hosting provider (preferably based in Australia if possible) that I can use to set up my customers' websites? I'm with Domain Central and ready to hang myself. I've been with them for 3 years and decided to stay because it was just too hard to leave, but if I could find something better I'd be out of there. The interface is the most confusing, erronious, complex, slow, antiquated and difficult piece of software I've ever known and the help documentation in way relates to what is actually there.
    I have a reseller account with them, which means I buy the domain name and hosting space at about half the price that it would normally be, make a small profit on it, and still pass on a good rate to my customers.  Domain Central is cheap, but after this latest fiasco, I've wasted so much time on Help desk it's not worth it. I want a provider that has an easy to use, straightforward website, so I can sign up for some sort of reseller account, buy the domain name and hosting at a discounted rate, do the name servers and all that stuff myself and even set up email accounts without too much grief and suffering.
    Any advice would be so appreciated. What do other web designers do? I've come to the point of having a hollow feeling of dread when I log in to Domain Central : (

    I'd recommend heading over to www.webhostingtalk.com .  You'll get a better and faster response.  But you will need to be more specific for them with your needs.  The registrar part is simple, but the hosting you should add in what type of plan you think you are looking for (reseller, VPS, dedicated), how much space/bandwidth you require, environment (Unix vs Windows), database/scripting information, etc., etc.

  • The publishing settings page does not open when I click on the domain name and the iWeb application will not stay on the dock.

    Hello,
    I have been trying to help a friend who is having problems publishing her website. (She has done so previously using Mobile me)
    There seem to be a couple of things wrong with the application,
    1     if I drag the application icon onto the dock, it won't stay there
    2     I wanted to change where her site is published to (she has bought a domain name and has a hosting service now) but when I click on the domain name I do not get the "site publishing settings page" so we can't enter the new details.  All that comes up is the main page of her website.
    I would suggest uninstalling and re-installing Iweb, to see if that clears the problem, but as Iweb came pre-installed with her Imac, I am not sure that we can do this.
    Any ideas please?
    she's using and imac 24 in (approx 4 years old) and running osx 10.5.8

    NO - not correct.  Even if you are still using iWeb 08, you can still publish to another host and not MobileMe.  You do this by selecting the option 'Publish to a local folder" and this will publish the site to your desktop and you can then use an ftp programme such as Cyberduck to upload your site to your host.
    MobileMe will not be here after the end of June, so you will have to find alternative hosting.  They are not taking any new subscriptions.
    On new Macs, iLife 11 is pre-installed, but only iPhoto, iMovie and GarageBand are included, not iWeb and iDVD. The Apple Online store is not selling the boxed version of iLife 11 any longer, so if you want to upgrade to iLife, then you'll have to look online at Amazon.com or Amazon.co.uk for a boxed set of either iLife 09 or iLife 11.  Both contains iWeb 09, which is what you would want.

  • How to get all property names and values of an bean instance at runtime?

    How can I get all property names and values of an bean instance at runtime?
    (The class of the bean instance is dynamic and I can not know before I write the code .)

    Look at Class. It has a way to get at all public methods and attributes.
    If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out.

Maybe you are looking for

  • XML file for illustrator

    Hi All, I want to create a XML file to import into illustrator. From my customers I get excel files with 1000+ names and membercodes. In illustrator I ceated a template for 24 members. How can I create a XML file which is compatible with Illustrator.

  • How to highlight text in a screen grab?

    I did a screen grab from imdb (Internet Movie DataBase) off the Internet.  It's currently in .png format. I want to highlight part of the text in the text in this picture as if I were using a yellow highlighter marker.  I've tried everything I can th

  • Sender File Adapter - File Content Conversion

    Hello, i do have a problem with the file content conversion at the sender file adapter. I have configured the file content conversion with key field defined keyfield: key recordsetstructure is set as head,1,item,* head.fieldSeparator  |  head.beginSe

  • How to find out XPath-Errors, that are only logged on the console

    Hi, I'm using the Java-API of XMLP Standalone Version 5.6.2. If my layout contains a german umlaut, like: <?for-each:Behälter_zeile?> <?BEFMTB_BEZEICHNUNG?> <?end for-each?> I get the following output in my application console when I call RTFProcesso

  • Send a SCSI command to the device in attach ( )

    I want to send an Inquiry Page and Read Buffer SCSI command to the device in attach( ). Can I do that? How to do that? Thanks.