How to use windows authentication to MSSQL2008 from oim running in Linux

Hi All,
We have developed the code (in eclipse) in local windows machine to call sample stored procedures in MSSQL.The code works fine from client and are able to create, update users in MSSQL from windows.
We have OIM 11g R2 installed in Linux 6 on local VM. The question is while building the jar from the code and placing it in Java task directory of OIM, calling thr Code we need sql.dll file to implement the windows authentication(no user name & pwd) to connect to MSSQL, but this is not possible in Linux since the jar don't support.
Can any one please give suggestions on this to implement windows authentication from Linux through OIM server.
Edited by: 970422 on Nov 8, 2012 11:39 PM

I have no idea, but you might find it helpful to read Redhat's documentation concerning this subject:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/ch-ldap.html

Similar Messages

  • Impersonate user when accessing Microsoft SQL Server from powershell using Windows Authentication

    Hi All,
    Below is the powershell script to connect a SQL DB using windows authentication by impersonating a user. The user should have login access to the server. Script can be highly useful when service id is used to access DB using powershell.
    [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
    $ds=$null
    $conn = New-Object -typeName Microsoft.SqlServer.Management.Smo.Server -argumentList "Servername"
    $db = New-Object Microsoft.SqlServer.Management.Smo.Database
    $conn.ConnectionContext.ConnectAsUser = $true 
    $conn.ConnectionContext.LoginSecure=$true
    $conn.ConnectionContext.ConnectAsUserName = "username"
    $conn.ConnectionContext.ConnectAsUserPassword ="password
    $conn.Loginmode
    $db = $conn.Databases.Item("dbname")
    $ds = $db.ExecuteWithResults("select top 10 Name from Tablename")
    Foreach ($t in $ds.Tables)
       Foreach ($r in $t.Rows)
          Foreach ($c in $t.Columns)
              Write-Host $c.ColumnName "=" $r.Item($c)

    That is OK when you want to manage the instance biut it wojn't work if the tools are not installed.
    This works from anywhere all of the time and is simpler:
    $datasource='MyServerInstance'
    $database='NorthWind'
    $connStr='Data Source={0}; Database={1}; Trusted_Connection=True;' -f '$datasource,$database
    $conn=New-Object System.Data.SQlClient.SQlConnection($connStr)
    $conn.Open()
    $cmd=$conn.CreateCommand()
    $cmd.CommandText='select * from products'
    $rdr=$cmd.ExecuteReader()
    0..($rdr.FieldCount-1) | %{$rdr.GetName($_)}
    $conn.Close()
    If you want credentials just add them.
    $connStr='Data Source={0}; Database={1}; Trusted_Connection=True;UID={2};PWD={3};' -f  $datasource,$database,uid,$pwd
    ¯\_(ツ)_/¯

  • How to use an authenticated user for a proxy call

    Dear all,
    I am currently working on a JEE application where the user needs to authenticate (for this I have configured the web.xml).
    Now inside this application I need to do a proxy call to a PI webservice.
    I would like to use the user credentials of the already logged in user in order to call the proxy.
    What I don't want to do is to use a service user for the proxy call.
    The code I am trying to call looks something like this:
         private IntegratedConfigurationIn getPort() throws Exception{
              IntegratedConfigurationIn port = null;
              try {
                   IntegratedConfigurationInService service = null;
                   service = new IntegratedConfigurationInService();
                   port = (IntegratedConfigurationIn) service.getIntegratedConfigurationIn_Port();
                  BindingProvider bp = (BindingProvider)port;
                  bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, user);
                  bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
                  if (url.length() != 0)
                       bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
              catch (Exception ex){
                   ex.printStackTrace();
              return port;
    The examples I found to retrieve the userdata pointed to codes similar to this one:
    public HttpServletRequest getHttpRequest() throws Exception {
              // Get runtime context
              Properties props = new Properties();
              props.put("domain", "true");
              Context initialContext = new InitialContext(props);
              ApplicationWebServiceContext wsContext = (ApplicationWebServiceContext) initialContext
                        .lookup(" /wsContext/ApplicationWebServiceContext");
              HttpServletRequest req = wsContext.getHttpServletRequest();
              return req;
    com.sap.security.api.IUser sapUser = com.sap.security.api.UMFactory.getAuthenticator().getLoggedInUser(getHttpRequest(), null);
              IUser ep5User = com.sapportals.wcm.util.usermanagement.WPUMFactory.getUserFactory().getEP5User(sapUser);
    Now I don't know how to bring it togehter and how to use an authenticated user for the BindingProvider.
    I would appreciate any hints or ideas.

    Peter,
    from the first screenshot, what I understood is that, you are calling an inbound PI web service that is intended to create an integrated configuration object (this is used for whole lot of other reason completely) but not actually calling a development web service.
    For this, you would have to generate your client classes from the WSDL provided by the PI developer for that particular service. Once you get those client classes generated, you could used the method provided in the other screenshot to extract the user and password and call the intended web service.
    Vijay Konam

  • Deploying the Cloud service using Windows Authentication

    Hi,
    I have a VPN Connectivity established to other VM Server where the DB is also installed. Now I a have created an application with DB connectivity
    I am able to connect the DB server using SQL authentication but how can I connect using Windows Authentication?
    What configuration changes I have to do in web.config or I have to modify any more changes else where?
    Thanks & Regards,
    Suresh Sahu

    Hi,
    Based on your description, you have connected to DB server using SQL authentication, I suggest your read the following link, and do some change in SQL that installed in the VM, hope it helps. If I misunderstand, please feel free to let me know.
    #http://msdn.microsoft.com/en-us/library/dd787978.aspx
    Best Regards

  • Claims Authentication Error connecting to BCS - but we're using Windows Authentication

    We currently have an External List with a SQL Server SProc as a source in a SharePoint 2010 site. It has been working great for months now. I need to make a change to the External Content Type - and I have made changes in the past - but now strange things
    are happening.
    I can't view the external content type (or any) in SPD.  I can create a new Secure Store Service Target Application in SPCentralAdmin and everything seems fine, but I can't consume the application in SPD.  I get an error that BCS has rejected the
    request.  This is new and curious; I'm a Farm Administrator.
    Looking at the logs, I find I get a Claims Authentication error that my ID can't be found (the error is below).  This is also new and is very, very curious as we're not using Claims authentication for any of our sites.  They all use Windows authentication. 
    I am also getting recent reports from users who are repeatedly challenged for credentials and wonder if this is related.
    In my research, I've found suggestions from starting the CWTS Service (I was dubious, I can start the service, and it doesn't resolve the problem) to setting Metadata Store Permissions in SPCentralAdmin (I was again dubious as I'm a farm administrator -
    and I get the same error when I try to make this assignment!)  So I'm at a loss.
    Here is the error (the X'd out information was correct in the trace):
    SPSecurityContext.WindowsIdentity: Could not retrieve a valid windows identity for NTName='XXXXX\XXXXXX', UPN='[email protected]'. UPN is required when Kerberos constrained delegation is used. Exception: System.ServiceModel.EndpointNotFoundException:
    There was no endpoint listening at net.pipe://localhost/s4u/022694f3-9fbd-422b-b4b2-312e25dae2a2 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.IO.PipeException:
    The pipe endpoint 'net.pipe://localhost/s4u/022694f3-9fbd-422b-b4b2-312e25dae2a2' could not be found on your local machine.      --- End of inner exception stack trace ---    Server stack trace:     
    at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeNam...
    We're not using Kerberos at all. We're using good, old-fashioned Windows Authentication.  The only changes made to the platform recently have been updates.  The error could, of course, be erroneous and I may be charging down the wrong path. 
    But although I find many links when I Bing the error, all the links pertain to sites using Claims authentication - even the Error Category in my log is "Claims Authentication" - but we're not using Claims Authentication...
    Again, any help at all will be appreciated.  Thanks!

    Hi Kevin,
    From the error message, we might be missing user permissions to the BCS Metadata Store. Please perform the steps below and test the issue again:
    1. Open the SharePoint Central Administration website with either a Farm administrator account or an account that has been delegated permissions to administer the Business Data Connectivity Service Applications.
    2. On the Quick Launch, click Application Management.
    3. On the Application Management page, under Service Applications, click Manage service applications.
    4. In the list of services, select the row of the Business Data Connectivity Service Application that you created in Create the Business Data Connectivity service application and then click Manage and then Set Metadata Store Permissions.
    5. Enter the Farm Administrator account and any other delegate administrators if you have them and then click Add.
    6. For each account or group that you added that is an administrator of the Business Data Connectivity Service Application, select the Edit, Execute, Selectable In Clients, and Set Permissions checkboxes.
    7. Select the Propagate permissions to all BDC Models, External Systems and External Content Types in the BDC Metadata Store. Doing so will overwrite existing permissions checkbox.
    8. Click OK.
    Also, make sure your account is added as local administrator.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to Use Windows XP theme in Java

    How to Use Windows XP theme in Java.
    I am an developing application which L&F should be like Windows XP.
    Because I am going use this application in different OS.
    Which LookAndFeel I have to use it

    try this in main:
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (Exception exc) {System.err.println("Eroare la incarcarea look & feel" + exc);}

  • How to use the DLLs which created from c++ in Java?

    And How to use the DLLs which created from JNI in C++?

    Huh?
    Are you asking how to do JNI - you should read the tutorial.
    Are you asking how to load it - then use System.loadLibrary()
    Are you asking what to do with the output from javah - put it in a C file and write some code, compile it into a dll.

  • Database access using windows authentication

    We are updating our Applications to use single sign on and are running into a problem with database access. We are using CF11 Enterprise and SQL Server 2008 on IIS 7.5.
    We have set up the ColdFusion Application Service to run under an AD service account and have created the data sources in CFAdmin leaving the username and password blank. The data sources verify and all seems good. The problem comes when running a query. The credential passed to the database is the service account and not the windows authenticated user. As such the query fails. What are we missing to get CF to pass the Windows Authenticated user credential instead of the service account?
    Thanks
    Tim

    ColdFusion does not pass user's credentials to the database connections by default, and cannot pass Windows Authentication credentials that way.  It only sends the service account's credentials (if you leave username/password blank as you have done).  The only way to pass user credentials is to put them into the individual query calls themselves, and even then you can't pass Windows Authentication credentials.  You would have to use SQL Server Logins, and create accounts for each user.
    I think most people are using either a dedicated SQL Server login for ColdFusion and run all queries under that account, or they do as you have already done and use Windows Authentication along with the ColdFusion service account.  If you need an audit trail, then pass usernames into the insert/update queries and store them manually along with the other data you are inserting/updating.
    -Carl V.

  • How to download itunes and how to use windows in my iPad?

    How to download itunes and how to use windows in my iPad?

    The iTunes  app comes pre installed on your iPad.
    Use Windows? The iPad is an iOS device. Not possible to run Windows on an iPad.

  • How To use window.print() into Button Attributes

    hi,
    I want to print a report using an print button.so i am using window.print() function into Button Attributes .But Print pop up screen not pop up . How To use window.print() into Button Attributes      .
    Thanks
    Manoj

    dear hari
    "Set button target as URL and put following js as URL Target
    javascript:window.print();"
    Will this be useful to my another thread raised as follows.
    In case, if i am able to generate report as txt (ascii) file instead of doc / pdf and is it possible to send the txt file using host command. I am uable to try since i do not know where to place host command on click &print.
    yours
    dr.s.raghunathan

  • How to install windows 7 in bootcamp from flash drive os x 10.9.1

    How to install windows 7 in bootcamp from flash drive os x 10.9.1

    oooHideooo wrote:
    It DOESN'T WORK!!
    I tried tonnes of method already, and the apple guide method absolutely doesn't work for MacBook Air, 10.9.1
    Did you even tried it yourself????!! with Maverick 10.9.1 you will NOT be able to get pass the bootcamp first page:"install window 7". It will give an error msg saying "The installer disc could not be found"
    My usb confirmed bootable! I created it with bootcamp, and tested it on a different macbook and it works. But doesn't work on MacBook Air. (Even startup disk doesn't detect it as bootable in Air)
    anyone else has a real solution to this problem?
    Thousands have successfully tried it themselves and installed Windows on a Macbook Air. Perhaps if you provided some details about what you did and what errors you observed we could help you. The Boot Camp instaructions, if followed, will produce a successful install.

  • How can I disable the Photos app from automatically running when I plug in my iPhone?

    How can I disable the Photos app from automatically running when I plug in my iPhone?
    I have no intention of ever using Photos, in fact, having to abandon Aperture takes me one step close to moving back to Windows, but I digress.
    I just want to NOT have to kill the Photos app every time I plug in my phone.
    Thanks.

    I am still seeing the option Image Capture, like shown in the screenshot that Rysz posted.   But it is another example of the hide-and-seek Apple likes to play with us.
    The option has to be set for each device individually. With the device connected to USB, you have to click the tiny disclosure triangle in the lower left corner of the sidebar to reveal the option.
    I was perfectly happy with the program I paid for (Aperture), and now to maintain the functionality I have to pay for another application (LightRoom) to get the functionality that I paid for in Aperture.
    Aperture 3.6 is working well with Yosemite. I will use it, as long as I have a Mac, that will run Yosemite or a compatible system.
    Have you looked at Capture One?  It looks much more similar to Aperture than Lightroom.

  • How to call an external web service from OIM?

    Hi,
    I have a question on how to call an external web service from OIM within e.g. creating user process? How should it be done; through adapter and task in the process?
    Any recomendations?
    Thanks in advance!

    it is not clear to me if you are having problems with calling java code from OIM or if the problem is the web service API.
    Lets do some divide and conquer:
    Can you create a simple java class that just writes a couple of lines to the log? Please attach this code to the OIM task and make sure it runs.
    Once this works we can start looking at the web service call.
    Best regards
    /Martin

  • Requesting Windows Experience Index scores from anyone running WIN 7 on either current-model 13" MBPs... Thanks!

    Requesting Windows Experience Index scores from anyone running WIN 7 on either current-model 13" MBPs... Thanks!

    Hi mchainmchainmch,
    I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can do this at http://h30499.www3.hp.com/t5/Business-PCs-Compaq-Elite-Pro/bd-p/bsc-271
    I hope this helps!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • How can I connect to oracel-10 using windows authentication?

    Hi,
    in Oracle 9 I could do this:
    Put the windows user in the group ORA_DBA, then:
    set ORACLE_SID=MySID
    sqlplus /nolog
    connect / as sysdba
    With oracle 10 it always seems to ask for username and Password.
    Is there a way around this?
    Can I log in thru windows authentification somehow like this
    set ORACLE_SID=MySID
    sqlplus /nolog
    connect as sysdba
    without now being asked for username and password now?
    How can I accomplish this?
    I would not want to specify the password in an sql file; this would be much worse than being able to connect thru windows authentication.
    Thank you for letting me know.
    Sincerely
    Andreas

    Hi,
    thank you all for answering first of all.
    I thought that connecting with the slash as sysdba:
    connect / as sysdba
    was an old syntax of oracle9.
    But you are right, obviously it is not.
    However, oracle10 gives me now the message:
    SQL> connect / as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    How come you don't get this message?
    Are you using Oracle-9 or oracle-10?
    I was logged on as user oracle; and this user is member of the administrators group and also the group ORA_DBA.
    How come then that it still throws the insufficient privileges message?
    Could you please let me know, what you do differently or what I forgot?
    Regards
    Andreas

Maybe you are looking for