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

Similar Messages

  • 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

  • Unable to get Windows User Name using Oracle Forms 6i, Jinitiator 1.3.1.17

    Hi,
    Requirement: Get Windows User Name using Oracle Web Forms 6i.
    Tools Using: Windows NT, Oracle web forms 6i, Oracle 10g DB.
    Description: I am using GetClientInfo JBean from otn.oracle.com, which gets windows user name, IP address and machine name. The demo I got from oracle web site uses Jinitiator version 1.1.7.18. While we are using the latest version Jinitiator 1.3.1.17. Due to this reason, I am unable to use Javakey which comes with older version but doesn't come with newer version, that's why I can't create the new JavaBean Java identity (PJC).
    Please advise what to do. All environment variables are set everything is done, this is the only thing bothering me.
    I went through the article 202768.1 from metalink, but on step 5, it gives an error keytool error: java.lang.Exception: Input not an X.509 Certificate.
    Also, please let me know if there is any other workaround for this requirement.
    Thanks & Best Regards,
    Mo

    Hi,
    Thanks for your kind reply. Actually there was a problem in creating a certificate, now it is okay with the same method. Certificate got imported on client and everything is ready.
    Now, the problem is when I try to set Bean Area Implementation Class property with oracle.forms.demos.GetClientInfo, it gives an error FRM-13008 Cannot find JavaBean with name 'oracle.forms.demos.GetClientInfo'.
    I went through the articles 1072329.6, 196824.1, and set ClassPath and Path variables with proper values. Also, I have copied jar file and signature file in forms60/java folder. I don't see any problems. Please let me know what I am doing wrong. My limitation is that I have to do all this in forms6i.
    I searched forums on metalink and found out that someone installed Patch 15, and everything went okay for him. Do you think I should install Patch 15? if YES, how will I do it, I mean should I first uninstall my forms and then install patch15 or install the patch on my forms?
    Thanks so much for your help.
    Thanks & Best Regards,
    Mo

  • Where should I get my domain name from

    where should I get my domain name from

    Any domain hosting company will do the job... but some are better than others
    I tend to keep all my domain purchases together from the one company (so I know that if another company sends me a domain renewal notice it's a scam without having to look up any records for the client).  Management tools and pricing policies differ greatly between companies - look for one that won't charge you extra to for access to modify your records yourself (some of the cheaper companies will sell you packages of email address and hosting and won't let you touch your own records).

  • How to get the domain name from the System

    I need to get the domain name from the system in JDK 1.1.8
    Any Ideas?

    InetAddress.getLocalHost().getHostName() will get you the name of the computer the code is executed on. If that isn't the "domain name" then perhaps you could give more detail about what "domain" you are trying to find the name of.

  • Get Users windows Domain name

    Hi,
    Is it possible to retrieve users windows Domain directly using Java or there is any other alternative to retrieve this.
    Regards,
    Manda

    warnerja wrote:
    And rightfully so. What do you suppose a platform-independent language like Java should report as the "Windows Domain" when the app is run on Linux or Mac, for example?
    You should not "need" to know the user's "Windows Domain". If you think you need to know this, you are highly likely developing something backwards, or are using the wrong tool for the job.I'm sorry, but this is a dumb answer to a real question. Real world applications almost ALWAYS need access to system level functionality. When it comes to security domain related applications or services, any application or service that doesn't need this information is not worth having. We write in Java for portability, but when we need to access system-level information, we use JNI calls to do so. Java bigots tend to think the only operating system is the JVM, but real world engineers know that the JVM is only a means to an end -- portability and clean code.
    This problem can be solved by using the JAAS com.sun.security.auth.module.NTSystem and com.sun.security.auth.module.UnixSystem classes. It should be noted that Sun recommends against using these classes directly, but in the same act, they don't expose the functionality they provide though the public JAAS interfaces either (which leads one to wonder why they even exist, because they're not used in lower-level JAAS code either, as far as I can tell).
    I can only guess that Sun provided them in JAAS because people have screamed for them, and JAAS seemed like the most appropriate place to provide them. At the same time, Sun (unrealistically) doesn't like to believe that anything beyond the JVM is needed in an application or service, so they don't provide any "use" documentation for them either in the class javadoc.
    Some caveats regarding these classes: Each of these classes is only available on the system for which they are intended by default. That is, you won't find a jaas_nt.dll on any Unix system JVM, and you won't find a jaas_unix.so native library on NT. Thus, to write portable code (at least to Windows and various Unix variants), you need to use reflection to access them. Fortunately, the methods of these classes are trivial, returning strings or longs.
    Good luck!

  • Getting the domain name of the Client PC using WebUtil

    Hi Guys,
    Is there a way I can find the domain name of the computer running the forms using webutil.
    I use WEBUTIL_CLIENTINFO.GET_HOST_NAME to get the client computer name. I would also need the domain name.
    Thanks!
    Anand

    Try this:
    message(CLIENT_WIN_API_ENVIRONMENT.GET_ENVIRONMENT_STRING('USERDOMAIN'));I believe if no domain is defined, it will return the host name. Also, this obviously will only work on Windows clients.

  • When you host a website with business catalyst do you get a domain name with it or do you have to buy one separately?

    When you host a website with business catalyst do you get your own domain name with it or do you have to buy one separately?

    Hi there,
    You need to get a domain yourself.

  • How to get the Domain Name of recipient Email ID when the recipient in the Address Book

    Hi All,
    I am new in Outlook Development and I have stuck in a situation, please find below the situation:
    I want to get the recipient domain address when someone is sending the email. Now, the thing is that I am facing the issues when the Email Id is in the address book. For an example "John Smith @live.com" is the email ID but when this email is in
    the address book it shows "John Smith ".  I’m trying to read out the email address from an Exchange connected Outlook in time of sending the email.
    So, my question is how I can get the domain in this situation?
    Thanks in Advance..

    Hi,
    Based on my research, there is no way to change the behavior on Outlook side. Email addresses are resolved to user names by Exchange server which is expected by design.
    I'd recommend you post a new question in the Exchange forum to see if we can achieve the goal on Exchange side. For your convenience:
    https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Is there a way to get a domain name if im using iweb?

    ok, i have beeen working really hard on this website i made on iweb, but i do not want it to have the "www.apple......." how can i buy my domain name to make it whatever name i want it to be ... " .com"
    is there a way to transfer an iweb site to a domain name?

    A website at dotMac is:
    http://web.mac.com/YourdotMacID/
    Using a domain of your own is [regularly discussed|http://discussions.apple.com/search.jspa?objID=c188&search=Go&q=domai n+webhost] in this forum.
    How you publish to such domain is explained in the iWeb Help:
    +*Using your own domain name*+
    +If you purchased your own domain name (for example, www.example.com) from a service provider, you can use that URL for websites you create with iWeb.+
    +These instructions are for sites published to .Mac. If you aren’t publishing to .Mac, see:+
    +Publishing to a server or hosting service other than .Mac ►+
    +To use your own domain name for a site published to .Mac:+
    +Choose File > Set Up Personal Domain.+
    +If you are connected to the Internet, the .Mac website opens in your web browser.+
    +On the .Mac website, follow the onscreen instructions.+
    +It may take a few hours or a few days for forwarding to take effect. If you open iWeb after forwarding has taken effect, your personal domain appears at the bottom of the iWeb window. After you publish your site, you can announce the new URL to your visitors with an announcement email.+
    +If iWeb is open when forwarding takes effect, you won’t see your personal domain at the bottom of the iWeb window until after you publish your site.+
    +Hit counters don’t reset; they count visitors to your site whether they use your personal domain URL or the .Mac URL.+
    OR
    +*Publishing to a server or hosting service other than .Mac*+
    +Instead of publishing your site to .Mac, you can publish your site to a folder on a local destination (your hard disk, for example) and then upload it to the server or hosting provider of your choice.+
    +To publish your site somewhere other than .Mac:+
    +Choose File > “Publish to a Folder.”+
    +If you have Subscribe buttons on your site, you must specify your site’s URL in the message that appears.+
    +Choose a location to store your site, and then click Choose.+
    +Use a File Transfer Protocol (FTP) client to upload the site folder and index file to the location of your choice.+
    +iWeb does not provide an FTP client, but they are easy to obtain. Some hosting services provide a web-based FTP upload service, or you can download an FTP client from the web. For more information, contact your server administrator.+
    +If you don’t publish your site to .Mac, these features are unavailable:+
    +◼Password protection+
    +◼Blog and photo comments+
    +◼Blog search+
    +◼Hit counter+
    +◼Enhanced slideshows+

  • Can't get paid domain name to work in mobile me website created by iweb.

    Bought my domain name from 1&1 and I've set everything up correctly I believe. One Question about Cname at 1&1, does it need a dot after the www.web.me.com
    the domain is www.skin2win.com and it takes me to the apple sight saying sorrybut we can't find the iWeb page you've requested. It's possible that: etc etc etc. Go there and see. I am trying mobile me for 2 months free but I don't think I'll buy cause i've had so many problems. Any suggestions?

    does it need a dot after the www.web.me.com
    Yes and no. (see the quote below) *I don't think you use the www in front of the web.me.com*. The following is taken from the first link below:
    " 2 - Point your personal domain to MobileMe by going to your domain name registrar’s domain name service (DNS) management area, creating a “www” CNAME record, and then pointing it to “web.me.com” or “web.me.com.” (including the period) in the address field."
    http://docs.info.apple.com/article.html?path=MobileMe/Account/en/acct17114.html
    http://discussions.apple.com/thread.jspa?threadID=1164519&tstart=0
    http://iwebfaq.org/site/iWeb_Domains.html
    OT
    Message was edited by: Old Toad

  • Getting windows domain login name into java application

    Hi,
    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

    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.
    Thanks

  • Where do I get a domain name for use with business catalyst?

    I can find no understandable basic starter info for business catalyst on the web.

    Hi,
    After you purchase your site via BC you'll need to also purchase your domain from a registrar (godaddy, etc). 
    Then you'll add your domain to your BC site and then update your DNS within your registrar to point hosting to us. 
    More details: http://helpx.adobe.com/business-catalyst/using/change-site-domain.html (follow the steps 1-3)
    If needing further guidance of needing us to confirm your set-up please reach out direct live support chat. 
    - http://helpx.adobe.com/contact.html (Select Business Catalyst and proceed) 
    Kind regards,
    -Sidney

  • Domain name when my windows machine (pc) is on VPN

    Hi!
    Last week I had issue to get doman name Solaris machines and with the help of folks here I could solve the issue. After a gap of 1 week I have to work on the same assignment and now I have issue to get domain name when my windows machine (pc) is on VPN. It may be possible, with VPN I may not be able to get the domain.
    h1. What is needed?
    I am looking for a java Api which can return me "myCompany.com", when my PC is on VPN.
    Following if the out put of ipconfig
    C:\Documents and Settings\sgupta>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Ethernet adapter Wireless Network Connection 2:
    Connection-specific DNS Suffix . : guest.myCompany.com
    IP Address. . . . . . . . . . . . : 10.202.0.76
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    Default Gateway . . . . . . . . . : 10.202.0.254
    PPP adapter MyCompanytronix US Aventail VPN:
    Connection-specific DNS Suffix . : myCompany.com
    IP Address. . . . . . . . . . . . : 128.181.213.220
    Subnet Mask . . . . . . . . . . . : 255.255.255.255
    Default Gateway . . . . . . . . . :
    h1. What is already tried?
    <ol><li>I have tried InetAddress API's but they return "global.myCompanytronix.com" from the local configuration.</li>
    <li>I also tried the following library to get the domain name and that fails to get the same.</li>
    <ol><li>[http://www.dnsjava.org/|http://www.dnsjava.org/]. </li>
    </ol>
    </ol>
    Kindly give me some clues if you have.

    Update-PROBLEM FIXED by verizon support. I called my local verizon wireless store, who quickly got me tech support after running through a few things. I didn't know you could disable power management for just one device, but verizon tech support did! So you go into device manager, expand universal serial bus controllers, right click the first "root hub", click the power tab, and see if your device shows up. If it doesn't, continue this process through all the root hubs until it does.
    When you find it, select it, and click the power management tab on the far right. Uncheck "allow the computer to turn off this device to save power". Restart the computer to save this setting. Then test it by putting the computer to sleep.
    It did take about 30 seconds until the pantech uml 290 was connected, but it connected successfully three times in a row. I'm very happy with both the verizon store and verizon tech support. They were both very helpful and pleasant to talk t, and efficiently resolved the problem. I still think you pay too much for mobile broadband, and am a little put off that the problem existed in the first place, but I'm very happy to have this problem resolved.
    One other piece of info. I got was that there is an upgrade, pantech 295 usb modem for only 30.00. So if I have any more problems I'll just try that.  (It's still a wired, not wireless device, which I prefer.)

  • Getting control of a domain name

    a prosepective client has approached me
    the problem is that there has been some sort of dispute with her old web designer.
    also it turns out that the host is a sole trader who knows the developer personally.
    so neiter of them will give me access to the hosting account or release the domain name
    how do I get the domain name released so that I can regester it with a different host.

    A few points
    > The hosts site was designed by the clients old designer (the host site has a designed by note at the bottom)
    > When i spoke to the host on the phone he seamed to know the old designer personally, and was familiar with his case with my client.
    > The name which the who is lookup returned sounds a lot like the name of the HOST (not the designer)
    > It seasm to be an individual running the host not a large company.
    Im guessing that i have no hope getting anywhere by dealing with this through the host of old designer so
    Assuming that the clinet can prove that it is her buisness which organisation do i need to contact in order to get the domain name released

Maybe you are looking for

  • Idvd doesn't open after update

    I just updated iDVD and it doesn't open. I'm running the current OSX. Has anyone out there had this problem? And, Solved it. Thanks

  • Update/Insert/Delete/Select Monitoring?

    Hello, is it possible to monitor user activity like upper mentioned statements and how can I realize that? The information about the user-activity should be shown for each tables within a database. Regards

  • Finder window details missing

    How do I get the finder windows to display the drive details that were at the bottom?

  • Linux-3.6.10-1 diff from 3.6.9-1

    Stupid question, but is there a way I can see the diff between these two? https://mailman.archlinux.org/pipermail - 24142.html

  • Deleting Layout.........

    Hi friends, I had created a layout in report selecting the required fields,now i want to delete that layout but there is no option to delete layout, So plese tell me how to do the same, thnks