I am getting a DC offset on my input signals using NI 4472 with ICP accelerometers

I am getting a DC offset on my input signals from my ICP accelerometers. I tried to remove this by selecting AC coupling on the NI-MAX channel setup.

When you set up a accelerometer virtual channel in MAX with the built-in excitation for the 4472 you will also need to set the DSA Excitation in LabVIEW. The MAX setting for the built-in excitation does not get imported. All the other settings should though, including the coupling. If you are using the built-in excitation you should be using AC coupling.
Hope this helps.
Mike Taylor

Similar Messages

  • I can't get my MacBook Air 13in that I bought used, to register with Apple. How can I do it?

    A guy was selling this Mac used so I got it. The only thing was after he had cleaned the hardrive he had put it in his name again, and sold it like that. I later figured this out and reset the hardrive and, what I thought, put it back to factory setting. The only problem is that i tried to get iLife from the app store and it said that these apps are associated with a different Apple ID and then it was trying to charge me $15 dollars for each. So i went to the Apple website to register this one with Apple. When I typed in the seriel number though, it said this product is associated with a different Apple ID. iTunes also, when I looked at my puchased movies through the cloud it asked if I wanted to tranfer these purchases and if so it would lock my account for 90 days. Can someone please help me fingure out what I have to do to fix this? I have been using this computer for some time now so it would be nice if I didn't have to set it back to factory setting, but if I must I don't mind doing it.

    The person that sold you the MBA has to delete the serial number from his profile on the Apple web site before you will be able to register it.  He also needs to delete it as one of the 5 computers on his iTunes account.  Since you reloaded it the only way he can do that is to do a total delete of all computers on his account.
    All progerams and apps that he purchased are not available to you.
    You have to purchase your own copies.
    The support profile can be found here:
    https://supportprofile.apple.com/MySupportProfile.do

  • How can I get a video signal using IMAC 27 with only mini display port. I like to send the signal wireless to a TV using a TV/audio transmit system.

    I have an IMAC 27 with a mini display port ( only this). I also have all the adapters ( mini display port to VGA, HDMI...).
    Since I moved to UAE I like to transmit the signal frm my IMAC ( where I also look German TV on) to my TV. I will do so by using a wireless Transmit receive system with theree cinch inputs ( transmit system ( video, 2x voice).
    The distance to the TV IS ABOUT 10m and one wall. I don`t want to use a cable.
    Is there any solution for example mini display to VGA + VGA adapter to cinch so I can use the transmit system?
    HDMI would also be an optiekn, bat then I have to by another Transmit receive system.
    If somebody made already the experience I would appreciate to share the information
    Is there may be any store in UAE where to get support. It is very diificult to get good advice here. They sell everything bat can not reaaly explain and have very often  no technical knowledge. With this problem nobody until now can help me.
    Hans
    <Email Edited by Host>

    I don't know what AppleTV can handle as far as bit rate is concerned, but increase the bit rate as high as it will let you. You are taking DV which is 25Mb/s and compressing it. If you're making an H.264, you should get great results needing no more than 6Mb/s. Bear in mind, the higher the bit rate, the larger the file size.

  • I have mac OS X version 10.4.11 and just downloaded Firefox 4 and when I open it I get and error window stating that I cant use this application with this version of Firefox.

    i used the old one fine for years. How do i make the new one open or how do I get the old one back

    Firefox 4 requires at least OS X 10.5. You can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • Does anyone's arm/shoulder/wrist get sore or tired from the angle of using or playing with their Apple Watch?m

    HI. My arm seems to be fatigued already from the angle at which I have to look at or use my apple watch. Just wondering if anyone else is experiencing this?

    mine gets sore/tired after only like 10 seconds.  that's why they came up with this whole glances thing lol.  if you're going got be doing anything intensive then rest your arm on something or hold something with your watch hand

  • Change Offset value of input node in APO order

    Dear experts,
    in order to accomodate overlapping scenario in APO I calculate and update offset value of input nodes of apo planned orders. To do so I use BADI /SAPAPO/RRP_SRC_EXIT method RRP_USEX_PLORD_CREATE. I activate the BADI using heuristic SAP_PP_021. it works fine for APO planned orders. However It is not possible to change production order nodes.
    I have tried using a heuristic (copy of SAP_PP_012) that uses Function Module /SAPAPO/RRP_LC_ORDER_MODIFY. However I can not change orders as I got a livecash error.
    I also tried /SAPAPO/RRP_LC_ORDER_CHANGE. In this case I did not have LC error but I still order offset value was not changed.
    do you have any idea on how to proceed? What I really want is a method to change input nodes of production orders in APO.
    Thank You,

    Hi Anup,
    In customer exit variable you will have to populate your 0FISCPER characterstics,
    You can populate it based on system date, use the FM DATE_TO_PERIOD_CONVERT and you will get current period based on your system date and Fiscal Year variant.
    After that you can just modify these values. and populate your 0FISCPER characteristics.
    If you have to do this calculations based on user input date then follow the same procedure but instead of system date you will have to pass the date entered by customer to this FM.
    Refer the following sample code snippet,
    IF i_step = 2.
          DATA:l_vy7(4) TYPE c,
               l_vm7(3) TYPE c.
          CLEAR: l_s_range,loc_var_range.
          LOOP AT  i_t_var_range    INTO  loc_var_range   WHERE  vnam = 'input var'.
            call the FM convert to period here and give user input date.
            l_vy7 = l_vy7 - 1.
            l_vm7 =  loc_var_range-low+4(3).
            CONCATENATE l_vy7 l_vm7 INTO loc_var_range-low.
            l_s_range-low      = loc_var_range-low.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'EQ'.
            APPEND l_s_range   TO   e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Regards,
    Durgesh.

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • Unable to get SQL Server Agent to run after installing SQL 2012 Standard with SP1

    I am unable to get SQL Server Agent to run after installing SQL 2012 Standard with SP1. Log message is as follows:
    Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
    Failed to verify Authenticode signature on DLL 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\xplog70.dll'.
    Error: 17750, Severity: 16, State: 0.
    Could not load the DLL xplog70.dll, or one of the DLLs it references. Reason: (null).

    Hi JFriedley,
    According to your error message, there might three reasons for this issue.
    xplog70.dll is corrupt, you need to check if you have any SQL Server running on same file version and same production
     edition. If xplog70.dll is corrupt, you can copy it from the new server where agent is running fine to your problematic server.
    Native client not installed properly. If you try applying any latest Service Pack or Cumulative Update then check if the SQL Server Agent can start, if that also doesn’t solve issue then try to reinstalling SQL Server Native client from SQL Server setup
    files.
    There is a similar issue about error 17750, you can review the following article.
    http://blogs.lostincreativity.com/sqldba/sqlserver-error-17750-could-not-load-the-dll-xpstar90-dll/
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Getting parameters from text and file input tag. .  canyou help me ?

    Hello!
    Is there anyway of getting parameters from an
    text field input in a form like :
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >Actually I would like to insert the parameters and make the upload of an file
    on the same form. It is something likethis :
    Form.jsp
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >   
    <input type="text" id="name" name="signinName" />
    <input name="signinFile" id="fileUp" type="file" />   
    <input type="submit" id="submit_btn" name="signinSubmit"/>uploadingFile.jsp
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
    .//upload the file
    String email = request.getParameter("signinName").trim(); //this line is bringing me an NullPointerException
    %>Thanks in advance for any suggestion!!
    All the best!

    You cannot use the HttpServletRequest object to retrieve parameters from a multipart form. You'll have to use a package that can parse such a form. I suggest Apache commons FileUpload.
    http://jakarta.apache.org/commons/fileupload/
    Using this package you can get both the file upload and any other parameters.

  • Tying to install itunes and I get error message "This file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel.  Help

    am tTying to install itunes and I get error message "This file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel. Can anyone help me?

    Hi,
    Here is a similar thread for your reference:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel
    http://social.technet.microsoft.com/Forums/en/w7itproappcompat/thread/036e3cf6-bff7-4ef2-bd0a-555cd2399ad4
    Hope this helps
    Vincent Wang
    TechNet Community Support

  • How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.

    How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.
    I've tried plugging the hdmi into the TV directly and the receiver.
    I get video every time.  HBO to Go , Xfinity, ABC, Youtube, etc...
    just no audio.  Any suggestions? 
    I've tried starting the apps then plugging in the hdmi cable.
    I never tried this before I upgraded to IOS 5.

    Claudiamil-
    I had not tried it with mine since upgrading to iOS 5, so I just did.  I'm using a small Vizio HDTV.  I did not try YouTube, but did try several videos and musical numbers.  In all cases there was sound, including stereo when the source had it.
    I assume you are getting sound from the iPad when the adapter is not connected, so the volume is not turned down.  Dah*veed's suggestion to reset may be what you need.
    Fred

  • I have a wireless network at home. I run my iphone and ipad on it with no problems. Just purchased a MacBook Pro, and now my wi-fi keeps disconnecting and i get an error message saying another device is using the same IP address. What does all this mean?

    I have a wireless network at home. I run my iphone and ipad on it with no problems. Just purchased a MacBook Pro, and now my wi-fi keeps disconnecting and i get an error message saying another device is using the same IP address. What does all this mean?

    Hello AKCamus
    To give you some ideas of what to do next, I have provided a few articles that will give some troubleshooting Wi-Fi connections and recommended Wi-Fi settings.
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    http://support.apple.com/kb/HT4628
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Trying to remove itunes and its component get this"the feature you are trying to use is on a network resource that is unavailable

    trying to remove itunes and its component get this"the feature you are trying to use is on a network resource that is unavailable" click ok to try again or enter an alternate path to a folder containing the installation package "itunes.msi'

    tiburon77 wrote:
    trying to remove itunes and its component get this"the feature you are trying to use is on a network resource that is unavailable" click ok to try again or enter an alternate path to a folder containing the installation package "itunes.msi'
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • Cannot get hardware limits to work when using Lintech switches with a ACR9000 motion controller

    This has been my conversation with Parker Automation.
    From: Susan Connors <[email protected]>
    Date: April 21, 2015 at 8:52:55 AM CDT
    To: Bowlerdusty <[email protected]>
    Subject: Re: ACR 9000
    Hi Dustin,
    Since the product was not purchased from us, or through the Parker website, but through National Instruments, you would need to contact them and they should be able to help.
    Regards,
    Susan
    Susan Connors
    Customer Service Representative
    Cross Company - Automation Group
    Employee Owned Since 1979
    Direct Dial: 704-755-1048 Fax: 704-523-6500
    Toll Free: 1-800-866-4568 ext 5352
    On Mon, Apr 20, 2015 at 4:16 PM, Bowlerdusty <[email protected]> wrote:
    Hi again. Since last speaking, we have gotten the motor to move. The only thing we are struggling on now is getting the hardware limits to work. We are using switches provided by Lintech. One pair of switches is mechanical and the other pair are non-contact reed switches. I found out earlier that the product was purchased from National Instruments Co. Anyway we could receive some help with this?
    Thanks,
    Dustin Brown
    -----Original Message-----
    From: Susan Connors <[email protected]>
    To: Bowlerdusty <[email protected]>
    Sent: Tue, Feb 3, 2015 12:52 pm
    Subject: Re: ACR 9000
    Dustin,
    I am checking with our manager and engineers on this and will let you know.
    Regards,
    Susan
    Susan Connors
    Customer Service Representative
    Cross Company Automation Group - Employee Owned Since 1979
    Direct Dial: 704-755-1048 Fax: 704-523-6500
    [email protected]
    www.cross-automation.com
    Cross Automation Line Card
    We welcome your feedback on our customer support team. Please email my manager: [email protected]
    On Mon, Feb 2, 2015 at 3:10 PM, Bowlerdusty <[email protected]> wrote:
    Could it possibly be under some other name? There are other divisions it could possible be under. This place is also under the U.S. Army Corps of Engineers, so it might be under that name. And if this wasn't purchased from this company, then where was it purchased from? This is the company I was sent to when I contacted the Parker Motion support.
    -----Original Message-----
    From: Susan Connors <[email protected]>
    To: bowlerdusty <[email protected]>
    Sent: Fri, Jan 30, 2015 4:13 pm
    Subject: Fwd: ACR 9000
    Hello,
    We have checked and show no record of your company or this part being purchased from us, so this is not something that we can offer support.
    I do not know of an integrator in your area but you should contact a local one that could possibly help you trouble-shoot any questions you have on this unit.
    Regards,
    Susan
    Susan Connors
    Customer Service Representative
    Cross Company Automation Group - Employee Owned Since 1979
    Direct Dial: 704-755-1048 Fax: 704-523-6500
    [email protected]
    www.cross-automation.com
    Cross Automation Line Card
    We welcome your feedback on our customer support team. Please email my manager: [email protected]
    ---------- Forwarded message ----------
    From: Bowlerdusty <[email protected]>
    Date: Fri, Jan 30, 2015 at 3:59 PM
    Subject: Re: ACR 9000
    To: [email protected]
    Any idea of when I'll get a response?
    -----Original Message-----
    From: AG Sales Fax <[email protected]>
    To: bowlerdusty <[email protected]>
    Sent: Fri, Jan 30, 2015 11:03 am
    Subject: Fwd: ACR 9000
    -- Can you please advise Company name and location so I can forward to appropriate contact?
    ---------- Forwarded message ----------
    From: 'Bowlerdusty' via [email protected] <[email protected]>
    Date: Fri, Jan 30, 2015 at 10:32 AM
    Subject: ACR 9000
    To: [email protected]
    I was told to contact you guys for help with this. Can you be of some assistance?
    -----Original Message-----
    From: jhoagland <[email protected]>
    To: Bowlerdusty <[email protected]>
    Sent: Thu, Jan 29, 2015 3:44 pm
    Subject: Re: ACR9000
    There are free training videos on our website:
    http://www.parkermotion.com/products/Controllers__​6934__30_32_80_567_29.html
    This unit was purchased through Cross Automation.
    They are your local Parker ATC distributor and can give you assistance though the unit is out of warranty.
    Their phone number is: 704-523-2222
    Let me know if there’s any questions. Have a nice day.
    Regards,
    Jonathan
    -----Original Message-----
    From: Bowlerdusty < [email protected]>
    To: emn_applications < [email protected]>
    Sent: Thu, Jan 29, 2015 2:57 pm
    Subject: Fwd: ACR9000
    Here is a pic of the serial number and model number.
    -----Original Message-----
    From: emn_applications < [email protected]>
    To: Bowlerdusty < [email protected]>
    Sent: Thu, Jan 29, 2015 11:36 am
    Subject: Re: ACR9000
    On the other side of the ACR9000 is a label with the model number, SO and
    serial number. Please provide.
    Regards,
    Jonathan
    Application Engineering Team
    [email protected]
    phone 800-358-9070 · international 1-707-584-7558
    www.parkermotion.com
    Parker Hannifin Corporation · Electromechanical Automation, NA
    5500 Business Park Drive · Rohnert Park · CA · 94928
    Bowlerdusty <[email protected]>
    To
    [email protected]
    01/29/2015 09:19 AM
    cc
    Subject
    Re: ACR9000
    I honeslty don't know this information. This stuff was bought at least a
    few years ago. A student who is now gone had put it together a while back.
    There were a lot of binders with it for instructions but none of it was
    very clear to me. I'm sending pictures with the parts I have
    (controller,drive,motor,etc.).
    -----Original Message-----
    From: emn_applications <[email protected]>
    To: Dustin Brown <[email protected]>
    Sent: Wed, Jan 28, 2015 10:17 am
    Subject: Re: ACR9000
    OK. So now you'd program it using the Configuration Wizard in ACR-View and
    the program editor.
    Which Parker ATC distributor did you purchase this through?
    Regards,
    Jonathan
    Application Engineering Team
    [email protected]
    phone 800-358-9070 · international 1-707-584-7558
    www.parkermotion.com
    Parker Hannifin Corporation · Electromechanical Automation, NA
    5500 Business Park Drive · Rohnert Park · CA · 94928
    Dustin Brown <[email protected]>
    To
    [email protected]"
    01/28/2015 07:58 AM <
    [email protected]>
    cc
    Subject
    Re: ACR9000
    Hi thanks for the reply. We got it connected via Ethernet now. We had to
    change the IP address of "local area connection" on the computer to
    192.168.10.1 for it to see the controller. So now that it is connecting to
    the controller, it keeps saying that the drives are all disabled. I have
    one drive connected to the controller in the Axis 0 port.
    Sent from my iPhone
    On Jan 27, 2015, at 3:56 PM, [email protected] wrote:
    > Did you change your PC's IP address?
    >
    > VIDEO: How to set your PC's Ethernet IP address
    >
    http://www.parkermotion.com/dmxreadyv2/faqsmanager​/faqsmanager.asp?category=116&knowledgebase=faqman​...
    >
    >
    > Default is 192.168.10.40
    >
    > Is this a new ACR9000?
    > If you don't know the IP address and the default doesn't work, you'll
    need
    > to connect via USB or serial to get the IP address or reset it.
    >
    > Regards,
    >
    > Jonathan
    >
    > __________________________________________________​______________________
    > Application Engineering Team
    > [email protected]
    > phone 800-358-9070 · international 1-707-584-7558
    > www.parkermotion.com
    > Parker Hannifin Corporation · Electromechanical Automation, NA
    > 5500 Business Park Drive · Rohnert Park · CA · 94928
    >
    >
    >
    >
    >
    >
    >
    > Bowlerdusty <[email protected]>
    To
    >
    [email protected]
    > 01/27/2015 01:48 PM
    cc
    >
    >
    Subject
    > ACR9000
    >
    >
    >
    >
    >
    > I am having a little trouble getting a connection between the ACR view
    > software and the ACR 9000. I am attempting to use an ethernet cable for
    > the connection. Every time I press the "connect" button it says "Failed
    > attempting to connect to controller". Do you have any advice?
    >
    > Thanks,
    > Dustin Brown
    >
    >
    >
    >
    (See attached file: IMG_0864.JPG)(See attached file: IMG_0865.JPG)(See
    attached file: IMG_0866.JPG)(See attached file: IMG_0867.JPG)(See attached
    file: IMG_0868.JPG)(See attached file: IMG_0869.JPG)
    1 Attached Images
    Solved!
    Go to Solution.
    Attachments:
    image.jpg ‏938 KB
    image.jpg ‏1570 KB
    image.jpg ‏767 KB

    Hi thanks for the reply.  Yes I have used the ACR view to specify which inputs to use before.  I used input 0 for the positive limit, input 1 for the negative limit, and input 2 for the home switch.  However, when using ACR view the switch kept displaying that the switch had been tripped when nothing was pressing against it.  I would also try pressing on the mechanical switch to see at least if the value would change but to no avail.
    Attachments:
    image1.JPG ‏1642 KB
    image3 (1).JPG ‏3768 KB
    image2 (1).JPG ‏3247 KB

  • I'm trying to use kerberos V5 with ActiveDirectory but get an error

    I'm trying to use kerberos V5 with ActiveDirectory im using simple code from previuos posts but
    when i try with correct username/password i get :
    Authentication attempt failedjavax.security.auth.login.LoginException: Message stream modified (41)
    when i try incorrect username/pass i get :
    Pre-authentication information was invalid (24)
    Debug info is :
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Kerberos username [naiden]: naiden
    Kerberos password for naiden:      naiden
              [Krb5LoginModule] user entered username: naiden
    Acquire TGT using AS Exchange
              [Krb5LoginModule] authentication failed
    Pre-authentication information was invalid (24)
    Authentication attempt failedjavax.security.auth.login.LoginException: Java code is :
    import javax.naming.*;
    import javax.naming.directory.*;
    import javax.security.auth.login.*;
    import javax.security.auth.Subject;
    import com.sun.security.auth.callback.TextCallbackHandler;
    import java.util.Hashtable;
    * Demonstrates how to create an initial context to an LDAP server
    * using "GSSAPI" SASL authentication (Kerberos v5).
    * Requires J2SE 1.4, or JNDI 1.2 with ldapbp.jar, JAAS, JCE, an RFC 2853
    * compliant implementation of J-GSS and a Kerberos v5 implementation.
    * Jaas.conf
    * racfldap.GssExample {com.sun.security.auth.module.Krb5LoginModule required client=TRUE useTicketCache=true doNotPrompt=true; };
    * 'qop' is a comma separated list of tokens, each of which is one of
    * auth, auth-int, or auth-conf. If none is supplied, the default is 'auth'.
    class KerberosExample {
    public static void main(String[] args) {
    java.util.Properties p = new java.util.Properties(System.getProperties());
    p.setProperty("java.security.krb5.realm", "ISY");
    p.setProperty("java.security.krb5.kdc", "192.168.0.101");
    p.setProperty("java.security.auth.login.config", "C:\\jaas.conf");
    System.setProperties(p);
    // 1. Log in (to Kerberos)
    LoginContext lc = null;
    try {
    lc = new LoginContext("ISY",
    new TextCallbackHandler());
    // Attempt authentication
    lc.login();
    } catch (LoginException le) {
    System.err.println("Authentication attempt failed" + le);
    System.exit(-1);
    // 2. Perform JNDI work as logged in subject
    Subject.doAs(lc.getSubject(), new LDAPAction(args));
    // 3. Perform LDAP Action
    * The application must supply a PrivilegedAction that is to be run
    * inside a Subject.doAs() or Subject.doAsPrivileged().
    class LDAPAction implements java.security.PrivilegedAction {
    private String[] args;
    private static String[] sAttrIDs;
    private static String sUserAccount = new String("Administrator");
    public LDAPAction(String[] origArgs) {
    this.args = (String[])origArgs.clone();
    public Object run() {
    performLDAPOperation(args);
    return null;
    private static void performLDAPOperation(String[] args) {
    // Set up environment for creating initial context
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    // Must use fully qualified hostname
    env.put(Context.PROVIDER_URL, "ldap://192.168.0.101:389/DC=isy,DC=local");
    // Request the use of the "GSSAPI" SASL mechanism
    // Authenticate by using already established Kerberos credentials
    env.put(Context.SECURITY_AUTHENTICATION, "GSSAPI");
    env.put("javax.security.sasl.server.authentication", "true");
    try {
    /* Create initial context */
    DirContext ctx = new InitialDirContext(env);
    /* Get the attributes requested */
    Attributes aAnswer =ctx.getAttributes( "CN="+ sUserAccount + ",CN=Users,DC=isy,DC=local");
    NamingEnumeration enumUserInfo = aAnswer.getAll();
    while(enumUserInfo.hasMoreElements()) {
    System.out.println(enumUserInfo.nextElement().toString());
    // Close the context when we're done
    ctx.close();
    } catch (NamingException e) {
    e.printStackTrace();
    }JAAS conf file is :
    ISY {
         com.sun.security.auth.module.Krb5LoginModule required
    debug=true;
    };krb5.ini file is :
    # Kerberos 5 Configuration File
    # All available options are specified in the Kerberos System Administrator's Guide.  Very
    # few are used here.
    # Determines which Kerberos realm a machine should be in, given its domain name.  This is
    # especially important when obtaining AFS tokens - in afsdcell.ini in the Windows directory
    # there should be an entry for your AFS cell name, followed by a list of IP addresses, and,
    # after a # symbol, the name of the server corresponding to each IP address.
    [libdefaults]
         default_realm = ISY
    [domain_realm]
         .isy.local = ISY
         isy.local = ISY
    # Specifies all the server information for each realm.
    #[realms]
         ISY=
              kdc = 192.168.0.101
              admin_server = 192.168.0.101
              default_domain = ISY
         }

    Now it works
    i will try to explain how i do this :
    step 1 )
    fallow this guide http://www.cit.cornell.edu/computer/system/win2000/kerberos/
    and configure AD to use kerberos and to heve Kerberos REALM
    step 2 ) try windows login to the new realm to be sure that it works ADD trusted realm if needed.
    step 3 ) create jaas.conf file for example in c:\
    it looks like this :
    ISY {
         com.sun.security.auth.module.Krb5LoginModule required
    debug=true;
    };step 4)
    ( dont forget to make mappings which are explained in step 1 ) go to Active Directory users make sure from View to check Advanced Features Right click on the user go to mappings in secound tab kerberos mapping add USERNAME@KERBEROSreaLm for example [email protected]
    step 5)
    copy+paste this code and HIT RUN :)
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.NamingEnumeration;
    import javax.naming.NamingException;
    import javax.naming.directory.Attributes;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.InitialDirContext;
    import javax.naming.directory.SearchControls;
    import javax.naming.directory.SearchResult;
    import javax.security.auth.Subject;
    import javax.security.auth.login.LoginContext;
    import javax.security.auth.login.LoginException;
    import com.sun.security.auth.callback.TextCallbackHandler;
    public class Main {
        public static void main(String[] args) {
        java.util.Properties p = new java.util.Properties(System.getProperties());
        p.setProperty("java.security.krb5.realm", "ISY.LOCAL");
        p.setProperty("java.security.krb5.kdc", "192.168.0.101");
        p.setProperty("java.security.auth.login.config", "C:\\jaas.conf");
        System.setProperties(p);
        // 1. Log in (to Kerberos)
        LoginContext lc = null;
        try {
                lc = new LoginContext("ISY", new TextCallbackHandler());
        // Attempt authentication
        lc.login();
        } catch (LoginException le) {
        System.err.println("Authentication attempt failed" + le);
        System.exit(-1);
        // 2. Perform JNDI work as logged in subject
        Subject.doAs(lc.getSubject(), new LDAPAction(args));
        // 3. Perform LDAP Action
        * The application must supply a PrivilegedAction that is to be run
        * inside a Subject.doAs() or Subject.doAsPrivileged().
        class LDAPAction implements java.security.PrivilegedAction {
        private String[] args;
        private static String[] sAttrIDs;
        private static String sUserAccount = new String("Administrator");
        public LDAPAction(String[] origArgs) {
        this.args = origArgs.clone();
        public Object run() {
        performLDAPOperation(args);
        return null;
        private static void performLDAPOperation(String[] args) {
        // Set up environment for creating initial context
        Hashtable env = new Hashtable(11);
        env.put(Context.INITIAL_CONTEXT_FACTORY,
        "com.sun.jndi.ldap.LdapCtxFactory");
        // Must use fully qualified hostname
        env.put(Context.PROVIDER_URL, "ldap://192.168.0.101:389");
        // Request the use of the "GSSAPI" SASL mechanism
        // Authenticate by using already established Kerberos credentials
        env.put(Context.SECURITY_AUTHENTICATION, "GSSAPI");
    //    env.put("javax.security.sasl.server.authentication", "true");
        try {
        /* Create initial context */
        DirContext ctx = new InitialDirContext(env);
        /* Get the attributes requested */
        //Create the search controls        
        SearchControls searchCtls = new SearchControls();
        //Specify the attributes to return
        String returnedAtts[]={"sn","givenName","mail"};
        searchCtls.setReturningAttributes(returnedAtts);
        //Specify the search scope
        searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
        //specify the LDAP search filter
        String searchFilter = "(&(objectClass=user)(mail=*))";
        //Specify the Base for the search
        String searchBase = "DC=isy,DC=local";
        //initialize counter to total the results
        int totalResults = 0;
        // Search for objects using the filter
        NamingEnumeration answer = ctx.search(searchBase, searchFilter, searchCtls);
        //Loop through the search results
        while (answer.hasMoreElements()) {
                SearchResult sr = (SearchResult)answer.next();
            totalResults++;
            System.out.println(">>>" + sr.getName());
            // Print out some of the attributes, catch the exception if the attributes have no values
            Attributes attrs = sr.getAttributes();
            if (attrs != null) {
                try {
                System.out.println("   surname: " + attrs.get("sn").get());
                System.out.println("   firstname: " + attrs.get("givenName").get());
                System.out.println("   mail: " + attrs.get("mail").get());
                catch (NullPointerException e)    {
                System.err.println("Error listing attributes: " + e);
        System.out.println("RABOTIII");
            System.out.println("Total results: " + totalResults);
        ctx.close();
        } catch (NamingException e) {
        e.printStackTrace();
    }It will ask for username and password
    type for example : [email protected] for username
    and password : TheSecretPassword
    where ISY.LOCAL is the name of kerberos realm.
    p.s. it is not good idea to use Administrator as login :)
    Edited by: JOKe on Sep 14, 2007 2:23 PM

Maybe you are looking for

  • Browser won't print website graphics - only text

    Does anyone know how to print up web pages so that the graphics on that page will show up and not just the text? I have tried printing with both Firefox and Safari and both refuse to print the graphics. I have a new Epson Color Printer. Any advice, s

  • Problem playing back HDV from FCP HD

    FCP 5.0.4 I am doing my first HD project and am experiencing a problem I cannot solve. Using both a Sony HDV HC1 and Sony HDR FX1 as playback devices, I cannot get the video to play back from FCP using HDV1080i60. Under Video playback, the options fo

  • Can I sync my Lotus Organizer 6 (XP PC) with the iPod touch?

    I wish to purchase the iPod touch and would like to use my Lotus Organizer 6.0 on my PC (Windows XP Pro) as my work calendar as I have been using it for many years.  Will the PC sync with the iPod so that calendar and address information can be excha

  • Re; page forwarding and retrieving pr

    Hi i am stuck i need to collect a persons name if they are a current member to then forward them to another page using page fowared and passing their name as a property or parameter. then on this page i need to then retrieve their name variable and u

  • Error BSOD when installing SATA drive on 1 & 2 (RAID 0 on 3/4 AOK)

    Hi, I have successfully installed Win XP Pro on 3 & 4, & wanted to install a Maxtor 120GB SATA drive on 1 or 2.  When I do this, & enable bios on 1 & 2, windows loads then prompts for a reboot due to the install of new hardware.  After posting & whil