Setting realm and kdc for kerberos authentication

Hi there,
I was wondering if it's possible to set the default realm and kdc from within the code or do they have to be specified when starting the program? I know that they can be specified in a configuration file, but then the config file must be specified every time the program is run. If I can't set the realm and kdc, can I at least set the config file in my code?
Thanks in advance

For example, to start up my code that uses JAAS to authenticate against kerberos, I have to type:
java -Djava.security.auth.login.config=sampleConfig.conf MyClass
I need to have a servlet do the authentication, so how can I tell my servlet to use the specified configuration file, since it won't be launched from the command line.

Similar Messages

  • How to setup a KDC for Kerberos Authentication

    Hi,
    I am new to Kerberos. I am trying to execute the sample codes on Sun site but i am not understanding how to setup a KDC.
    Please help me.
    Regards.

    Hi Alexander,
    create the proxyauth.txt file in the roor directory of you MI Client installation and add the following paramters to the text file:
    MobileEngine.Sync.Proxyuser= Username for Proxyserver
    MobileEngine.Sync.Proxypw=Password for Proxyserver
    Regards
    Tahran

  • Can i use a different ADS server as KDC for Kerberos authentication ?

    Hi all:
       For some security concerns, I cannot use my central ADS as KDC and run ktpss, setspn in central ADS.
       Can I use another ADS server as KDC server and run ktpass, setspn to configure the Kerberos ?

    My portal UME is configured to central ADS as Database+LDAP
    I donot want to make the central ADS as KDC server running. I just want to make another ADS server as KDC server, is it possible ?

  • 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

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • How to set up and test the Basic Authentication for HTTP protocol

    Hi,
    I tried configuring the password based Basic Authentication for sending xml document using ebMS - HTTP protocol. I set username and password while configuring the transport server for both trading partners. I want to know, is that sufficient for basic authenticaton. When I open the URI http://localhost:7778/b2b/transportServlet, it is not asking any authentication (username/password). Please note that I have not used SSL certificate. Anyone please help me out to configure Basic authentication.

    Hi Ramesh,
    Thanks for ur response. Could you please tell me where to set the Additional Transport header : authtype-basic#realm=myRealm(in which property file). In enqueue code, I could see the following attributes
    queue
    msgID
    replyToMsgID
    from
    to
    eventName
    doctypeName
    doctypeRevision
    msgType
    payload
    attachment
    subscriber
    Is it possible to set username/password in the enqueue attributes?
    Do i need to add username/password and Transport header in the input XML and defined that elements in xsd?

  • Detect if database is enabled for Kerberos authentication

    In our test and development environment, some of our databases are set up with authentication using Kerberos, while others are not.
    We have a script that traverses all our databases, collecting different kind of information (db size, db version, etc.) which we present on an internal web page.
    Is there a way to query the database itself if it is enabled for Kerberos or not? Is there a internal v$ or DBA-view that shows this information?
    We are on Oracle 11.2.0.3:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    Thanks in advance for your help.

    Hi,
    you need to develop logic around these below statements:
    From SQL you need to check:
    select STATUS from V$INSTANCE;
    FOR DOS:
    tnsping $ORACLE_SID
    From Unix :
    ps -ef|grep pmon

  • Any document explaining Risks involved in assigning "Delegation Permission" to a computer for Kerberos Authentication

    Need SSO on CRM 2013. As per documents assigning Delegation Permission in Kerberos Authentication is mandatory to achieve SSO in CRM 2013.
    Before doing that need to evaluate risks in doing so. Any help or document for the same is helpful.
    Devesh

    Hi Devesh,
    “The idea of delegation in Kerberos is that if a user makes a request to a final resource, and some
    intermediary accounts must process the request, then those intermediary accounts can be trusted to delegate on the user’s behalf. You can configure an account for delegation by using Active Directory Users and Computers as a domain administrator.
    Select Trust this user/computer for delegation to any service (Kerberos) under the Delegation tab of the user or computer account.”
    Quoted from this article below:
    Using Kerberos for SharePoint Authentication
    http://technet.microsoft.com/en-us/magazine/ee914605.aspx
    From my point of view, as long as the intermediary account can be trusted, then it is safe.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Windowns dll file for Kerberos Authentication

    Hi,
    I am implementing Kerberos Authentication with Windows x64. The SAP Post installation guide metions that gx64krb5.dll file needs to copied under <Drive>:\%windir%\system32. It also metions that the file need to be downloaded from SAP Note 352295,.But "An SAP note with the number requested could not be found". Any other place from where I can download the file.
    Regards
    Deb

    Okay, I found my PDF copy of [Note 352295|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=352295], and it contains the links to download the files from sapnet for both 64 and 32 bit.
    Here is the link for the 64 bit:
    https://service.sap.com/~sapidb/012003146900000310652008E/win64sso.zip
    And just in case anyone reading this thread needs to get to the 32 bit:
    https://service.sap.com/~sapidb/012003146900000310642008E/win32sso.zip

  • IPad set up and syncing for my mom--help!

    I just bought an iPad for my mom. I want to set it up for her (she's not too tech savvy). A couple of things to know about my situation:
    - she is a PC user
    So, I can set up her iPad at work where I have access to a PC. I have her iTunes log-in information to do so, however, when she goes to sync it on her very own PC at her house, will it be okay? ( ie: everything will be intact and accounted for?) I won't be able to hands on help her if it does not... She's in WI and I'm in CA.
    I'm thinking the initial activation at my work PC should be fine ( just as the Apple sales staff activates iPads or iPhones at their store and then we go home to sync).
    Please provide me with some guidance and answers to this.... I really want her to use this seamlessly
    -D

    If you purchase anything she'll have to transfer purchases via iTunes, but I've reformatted and then synched fine so all should go well.
    If all else fails you can always use a free trial of the likes of GoToMeeting or even easier for her GoToAssist to take control of her pc and fix things.
    Note: don't work for Citrix, just like their products and know they have 30 day trial accounts.

  • Reminder app not working correctly, issue started around Sept. 1,2014. Will not allow me to set date and time for a reminder.

    Today I noticed an issue with my Reminder app on my IPhone 5s. Using OS 7.1.2. I called Apple, and the tech didn't know what he was doing and just trying different things.The reminder app will not let me set a date and time for reminder. Finally he escalated the call to a senior advisor who was rude, arrogant and unprofessional. He insisted the Reminder App was updated with the new update of IOS September/October 2013. Not true, the issue just started about 5 days ago August 31,2014. Now there is an additional reminder line for reminder entries that I have to use and have to transfer all my reminders manually from the other part of the app. The feature does exist; if I try to set a date and time for the reminder it appears for 1-2 seconds and then disappears.
    Has anyone else noticed this issue?

    He insisted the Reminder App was updated with the new update of IOS September/October 2013. Not true
    Yes, it is true.
    iOS 7 was released 18 Sep 2013. At this time, the Reminders app was updated (with most everything else).
    the issue just started about 5 days ago August 31,2014.
    Your issue just started but the app was not updated 5 days ago.
    Now there is an additional reminder line for reminder entries that I have to use
    I don’t understand what this means...
    Open Reminders, type the reminder, tap the i at the end, turn on Remind me on a day and enter the date/time.

  • Set date and time for all macs in the network

    Hi,
    I need to set the time and date for all of our Macs in the network, I have tried to have a look at Workgroup manager but I can not see anything.
    Any ideas?
    Thanks in advance,

    Once the ntp setting is initially loaded, it should not need to be changed.  But you know that, of course.
    If you're looking to automate ntp configuration as part of system imaging (SIU, InstaDMG, etc) and client set-up, then that's certainly possible; that sort of discussion is regular fodder on the Mac Enterprise mailing list.  (Check the archives over there for some interesting discussions.)  Here are some related discussions that might interest you, too:
    http://www.afp548.com/forum/viewtopic.php?showtopic=21477
    http://www.afp548.com/forum/viewtopic.php?showtopic=20328
    Also see man systemsetup for some details.
    $ /usr/sbin/systemsetup -getnetworktimeserver
    Network Time Server: time.apple.com
    $
    And here's a slightly-dated intro to client management.

  • Can you set textRolloverColor and textSelectedColor for a DataGrid via styleFunction?

    Ok so I have a DataGrid with a default row text color set. I use the styleFunction to change the text color of a row if a certain condition is met by returning the new color. However, I would also like the textRolloverColor and textSelectedColor for said rows to change as well based on these same conditions. Is there any way to do this? Any help is much appreciated.

    I tried using setStyle but that didn't seem to work. However, I was able to add textSelectedColor to the object being returned to the row and that worked.
    return {color:0xFFAE00, textSelectedColor:0xa59999}; <-- This sucessfully sets the selected text color of the rows that meet the condition
    Unfortunatly many of the other data grid styles don't seem to work with this method, specifially one of the other ones I need, textRolloverColor. Basically I need the text to be set to the same color on those specific rows as they are when you select them.
    return {color:0xFFAE00, textSelectedColor:0xa59999, textRolloverColor:0xa59999:}; <-- The rollover text color is not set.
    Any ideas? Thanks.

  • Problem in setting path and classpath for java in RedHat linux 9

    Hi ,
    i am not able to set the PATH and CLASSPATH for j2sdk1.4.2_06
    I have tried with export PATH=$PATH:/usr/j2sdk1.4.2_06/bin
    and export CLASSPATH=$CLASSPATH:/usr/j2sdk1.4.2_06/lib
    in terminal
    but i want to configure it as permenant way for the jre and jdk
    and we should only type java or javac according to the requirement
    regards mihir...

    type those in .bashrc ... save and exit
    then at prompt, type 'source .bashrc'
    this is the permanent solution ...
    bhalo thakun

  • Where to set creationPolicy and borderThickness for s:Group?

    I'm porting a Flex 3.1 application to Flex4.5.
    Here is the Flex 3.1 code:
    <mx:Canvas creationPolicy="auto" borderThickness="0" ...>
         <mx:HBox >
              <mx:Image .... />
         </mx:HBox >
    </mx:Canvas >
    This is the Flex 4.5 code I got so far:
    <s:Group ...>
        <s:layout >         
             <s:HorizontalLayout ..... />
        </s:layout >    <mx:Image ...  />
    </s:Group>
     ~I could not find the place to set createPolicy and borderThickness with Flex 4's s:Group. Is Flex 3's mx:Canvas equivalen to s:Group in Flex4?
    I know s:Panel has the creationPolicy, but I do not want to use Panel. Any suggestions? Thanks.

    Group's aren't skinnable.  I think the intent is that they're job is  simply to manage layout, so if you want a border, you wrap your group in  another component like BorderContainer.
    As for  creationPolicy, I'm guessing that you're Canvas was being used in one of  the mx Navigator classes (TabNavigator, Accordion, etc.).  You can wrap  your BorderContainer in a NavigatorContent component to manage creation  policy.
    <s:TabNavigator>
        <s:NavigatorContent>
             <s:BorderContainer>
                 <s:Group>
                 <s:Group>
             </s:BorderContainer>
        <s:NavigatorContent>
    </s:TabNavigator>
    Message was edited by: -Hob

Maybe you are looking for

  • Why do I get this message that my farmville, cafeworld, and other games in facebook there is an error I cannot enter the games.

    The message I receive reads cannot enter Zynga.com it is wrote wrong this game site. Farm ville,Cafe World, and other games won't let me play. Some of my Facebook games let me play not all what's wrong the message says Firefox will not let me play ga

  • Can´t add birthdays in contacts (MS Exchange Server 2007)

    Hi, i have a problem with contacts since OSX 10.9.1 When i want to add a birthday in my contacts the birthday is shaded in grey. when i test it on my iPad/iPhone it works ! What is the problem ?!?

  • 2.0.2 Contacts almost unusable.

    I sync my contacts with my mobile me account. I've noticed that the lag is STILL prevalent in 2.0.2 And the application always seems to crash when pushing the home button when in the app.

  • SCM and Procurement Setup

    Hi, I have SCM installed in R12 and I need to set  up SCM and Procurement. Could someone advice me which document I need to follow. Expectgin help from experts. Thanks Seb

  • Javascript error in TLN=1

    Hi everybody, i'm working in EP SP13; i put TLN = 1 in the way the documentation says. Now (sometime) i get a strange javascript error during the navigation in the portal: it says "object required" on row 777. When i get this error i'm not able to na