Scripted JDBC: no password visible

Hi;
I have a basic scripted JDBC connector working to an Oracle database, but no password is coming across when I create users. Sending the password is the primary reason for implementing this adapter. Can anyone shed any light on this? I have specified password as a field in the resource schema.
thanks!
-Bill

I have fixed this, but I'm not too sure what was broken.
I took the above advice and renamed my fields in my resource. At first, that didn't seem to fix it. Then, I implemented an "update" beanshell and the create started working properly. Go figure...
I'll leave this as "unanswered" for a bit in case somebody can shed some light on this.
-Bill

Similar Messages

  • DB password on scripted JDBC adapter

    I am evaluating IDM 7.0 and tried to make a scripted JDBC Resource adapter
    based on the simple table example. I succeeded in testing the DB connection
    (Oracle 10.1 on Linux), but when I try to add the resource to an account, I get
    [codeThere was an error while attempting to check the dictionary for the new password. Failure : com.waveset.util.WavesetException: XPRESS <invoke> exception&#xA;==> com.waveset.util.WavesetException: Can't call method queryString on class com.waveset.util.JdbcUtil&#xA;==> com.waveset.util.WavesetException: &#xA;==> java.sql.SQLException: ORA-01017: invalid username/password; logon denied&#xA;]
    which implies that the db user name (or password) is not right. But it should
    be, since the connection test succeeded ?!

    Yes, you are right, there was problems with dictionary password. I had
    set the password dictionary , since it was dropped for some reason.
    Now the resource works; well actually not. I get error
    Account 'base' not found in Resource 'Oracle JDBC'.
    But, I am trying to add the resource to existing account. The Linux resource
    creates the account if it does not exist, so how can I do this on scripted JDBC?
    BTW where is the password dictionary documented? I had to trace
    Oracle to see what name the table is and then guess the attribute name
    and type. I found a file dictionary.txt which describes the DDL, but not for
    what it is (i.e. password list is not mentioned).

  • Can a Stored Procedure be called from a Rule (not using Scripted JDBC Adap)

    Hello smart people,
    Question: Can a stored procedure be called from a Rule without using the Scripted JDBC Resource Adapter?
    What's Desired: The project has very strong sql developers and average at best Java developers. We have been successful at implementing the scripted JDBC Resource Adapter which makes use of Java Bean shells. The custom Java Bean shell contains code that calls a stored procedure. We are cool with that process.
    However we would like to be able to set up a Rule that calls a Stored Procedure without jumping thru the Java Bean Shell layer. The Stored Procedures we will be developing will not access the tables in the Waveset database. Instead the Stored Procedures will be accessing custom tables in a custom database. The custom DBase will be housed on the same dBase server as the Waveset database.
    Environment: Identity Manager 7.1. Oracle 10i, and Unix OS.
    It seems to me that this task is possible, but the posts in this forum make it sound like perhaps it is not.
    Do any of you smart people agree that it should be possible or better yet has anyone implemented such an approach?
    Thanks.

    We did this by putting all of the JDBC calls into a Java class, then instantiated that class and called the methods from within a rule. An example of a rule we used is this:
    <Rule authType='UserMembersRule' name='List UserType'>
      <block>
        <defvar name='adapter'>
          <new class='com.waveset.adapter.ScriptedJdbcResourceAdapter'/>
        </defvar>
        <invoke name='setResource'>
          <ref>adapter</ref>
          <invoke name='getObject' class='com.waveset.ui.FormUtil'>
            <ref>context</ref>
            <s>Resource</s>
            <s>Banner</s>
          </invoke>
        </invoke>
        <defvar name='jdbcHelper'>
          <new class='edu.bates.JDBCHelper'>
            <invoke name='getConnection'>
              <ref>adapter</ref>
            </invoke>
          </new>
        </defvar>
        <defvar name='userList'>
          <new class='java.util.ArrayList'/>
        </defvar>
        <invoke name='addQueryToList'>
          <ref>jdbcHelper</ref>
          <s>SQL QUERY HERE</s>
          <ref>userList</ref>
        </invoke>
        <ref>userList</ref>
      </block>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
    </Rule>

  • Scripted JDBC and Oracle Stored Procedure with in/out Array

    The com.waveset.util.pooledconnection used by Scripted JDBC Adapter extends java.sql.connection.
    I need to pass an Varchar2 Array to the Stored Procedure. I tried using the oracle.sql.ARRAY and oracle.sql.ArrayDescriptor to pass the values, but get a casting exception,as the polledconnection implements only the java.sql.connection and not oracle.sql.connection.
    What are my options of using java.sql.Array with a PL/SQL procedure that takes a varchar2 array as in out parameter?
    Thanks
    Venki

    i ran my procedure which is very similar syndra posted
    create or replace procedure foo(p_dt in date, cv out sys_refcursor) as
    begin
    open cv for
    select e.*
    from table_xyz e
    where start_dt = p_dt;
    end;
    /Here is how is executed
    DECLARE
      P_DT DATE;
      CV SYS_REFCURSOR;
    BEGIN
      P_DT := '10-oct-2005';
      -- CV := NULL;  Modify the code to initialize this parameter
      scott.foo ( P_DT, CV );
      COMMIT;
    END;           
    -- i get PL/SQL procedure successfully complted , But i dont see the result set Or output
    - How do i see the output when i m using refcursor ?? i tried using print , but nothing didnt work
    - Any idea ??
    Thank you!!
    Edited by: user642297 on Jun 24, 2010 1:35 PM

  • Is apps password visible in any configuration files in Oracle Apps R12.0.6?

    Hi
    Is apps password visible in any configuration files in Oracle Apps R12.0.6? Is it hard-coded or soft-coded?
    Regards
    Ateeq

    Hi,
    See this thread.
    Apps password in R12
    Apps password in R12
    Regards,
    Hussein

  • Scripted JDBC Adapter For Non Standard Database Types

    I am looking to connect through JDBC to a UNIDATA database. I have place the jdbc driver in the WEB-INF/lib directory and rebooted the application server. When I try to create the resource and test the connection with the proper information (user, password, url, host, port, etc), I get a null pointer. I'm assuming the Database Type is causing an issue. Is there a way to get around this?

    I am able to do the recon now. I had to upload the getUser script also. Once i did that I was able to get users linked into IDM properly.

  • How to avoid password prompt in shell script for zip password protection

    Hi
    I am trying to set password protection to my oracle database export backup. Once the backup completed, it should compress with a password protection. Thats the plan. Initialy we were using the gzip for the compression. Then realized that there is no password protection for the gzip. Started using zip option. I tried using
    zip -P <password> filename
    But it was throwing below error.
    -bash-3.2$ zip -P expreports REPORTS_2013FEB14.dmp
    zip warning: missing end signature--probably not a zip file (did you
    zip warning: remember to use binary mode when you transferred it?)
    zip warning: (if you are trying to read a damaged archive try -F)
    zip error: Zip file structure invalid (REPORTS_2013FEB14.dmp)
    Not quite sure why.
    Then I used zip -e REPORTS_2013FEB14.dmp.zip REPORTS_2013FEB14.dmp
    But this prompting for the password. As I am trying to put the command in the script. It will be tough if it prompts for the password.
    I would like to know how to avoid the password prompting by saving somewhere or how the code should be written. Tried using expect feature of shell script. Below was the code I tried. It didnt work.
    [oracle@SF40V6636 test]$ cat repexp.sh
    zip -e REPORTS_imp.log.zip REPORTS_imp.log
    expect "Enter password:"
    send "imprep"
    expect "Verify password:"
    send "imprep"
    So please help in avoiding this password prompt or let me know how to change the code.
    Thanks
    SHIYAS M

    How about using gpg and adding a secret key to the requirement of a password? No one should be able to decrypt your file, not by knowing only the password.
    1. Generate a public and private key pair:
    $ gpg --gen-key
    When it shows "We need to generate a lot of random bytes…" open another terminal session and type "dd if=/dev/sda of=/dev/null" to create traffic. When the public and secret key created and signed you can Ctrl-C the dd command.
    To see what you have created:
    $ gpg --list-keys
    2. Encrypt and gzip your stuff:
    $ tar zcf stuff.tgz file_or_folder
    $ gpg recipient "Some Name" encrypt stuff.tgz
    $ rm -f stuff.tgz
    3. Decrypt and extract the archive:
    $ gpg batch yes --passphrase "password" -d stuff.tgz.gpg > stuff.tgz
    $ tar zxvf stuff.tgz
    Again, knowing the password alone will not let anybody decrypt your stuff.

  • WLST script for changing password for userid in Weblogic 9.2

    Hello Everyone,
    We want to change password for userid in weblogic 9.2. Is there a way we can do this by using WLST script? If so please provide me with steps for doing that using WLST. Thanks in advance.
    - - Weblogic Consultant

    Did you try going to the WLST documentation and searching for it? Go to [http://edocs.bea.com/wls/docs92/pdf/config_scripting.pdf] and search for "Changing a Password". The example there seems to be what you need.

  • Scripting to change passwords in a file

    Hi There 
    i am trying to change passwords of varies accounts mentioned in a configuration file; however there are more than 10 configuration files and i need to change there all user account password to Passw0rd.
    Is there any power shell script i could use for this to change?
    KB

    Hi,
    Is there any power shell script i could use for this to change?
    Pre-written? Probably not. You can check the repository though:
    http://gallery.technet.microsoft.com/scriptcenter
    You'll probably have to write something yourself. These might help get you started:
    http://ss64.com/ps/get-childitem.html
    http://ss64.com/ps/get-content.html
    http://ss64.com/ps/foreach-object.html
    http://ss64.com/ps/set-adaccountpassword.html
    Read this before doing anything with the last one:
    http://connect.microsoft.com/PowerShell/feedback/details/777142/bug-in-set-adaccountpassword-cmdlet
    I didn't know about that particular quirk until a few minutes ago.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • LaunchAgent script - Prompting for password

    Hello
    I have a LaunchAgent script that is running +mostly successfully+, however the script halts...requiring the Admin account and password details.
    Where and how in my script do I enter the Admin account and password details so that the script runs without user interaction..?
    +#!/usr/bin/env bash+
    +sudo serveradmin start smb+
    Thanks,
    Tim

    It seems that a capability such as SMB would be a launch daemon rather than a launch agent. There is already an smb launch daemon in /System/Library/LaunchDaemons. Does it not do what you want?
    The implication of being prompted for a password is that when sudo is executed the current account is not root. The only way to pass a password to sudo would be to attach a tty/pseudo tty. 'Expect' can do that but such techniques are often frowned upon.

  • Shell script adapter and passwords

    Does anyone know how to get a password into a shell script resource adapter?
    I've set up the "password" attribute in my resource adapter's schema, expecting at least to see the encrypted password in in $WSUSER_password, but it's always empty. Other attributes I add to the resource scheme show up in the scripts as shell variables just fine.
    Side question - the Solaris resource adapter, which looks a lot like the shell script adapter, doesn't even have a password in its schema map, yet it seems to set passwords just fine. What's up with that?
    The ShellScriptResourceObjects55.xml example doesn't seem to deal with passwords at all.

    Hi,
    Have you been able to resolve this issue?
    I am currently working on configuring a Shell Script Resource on my IDM system.
    I am still in the "*Create User"* stage of things (I haven't even begun working with the other Actions : Get User, Get All Users, Delete User, Update User)
    After a month-long period of trial-and-error, and a lot of headaches, I finally succeeded in Creating a new user on my Unix Machine, without any errors
    Except for one thing : for some reason, the user I create is not being given a password!
    A first, I configured the "Attribute Mapping" page to include a "Password" attribute. This did not work.
    Then I removed the password from there (I figured that when I input the user's basic information on the IDENTITY tab in IDM, then the password gets automatically passed to the Unix machine).
    Still, this did not work.
    The funniest thing is : I am not getting any errors. The user is created on my Unix machine. And, also, in my My-SQL database.
    The problem is : when I try to log into that same Unix machine as the user, it does not work, because......of course.....*.there is NO PASSWORD*.
    What could be the problem?

  • Shell script that required password

    Hi,
    I'm using an automator script to upload some files to a remote Linux server, and I'm using rsync in an automator shell script action.
    That command required a password to work, how can I enter the password in the shell script action?
    Thanks

    Thanks for your answer, but as I'm no expert in AS,
    I'm not sure to understand your answer.
    How do those parameters are sent to AS?
    You put it in the statement:
    do shell script "rsync /source /dest" password "xyzzy" user name "you"
    You can set up a keychain for the password and retrieve it when needed, to be secure in your code. Post back or head over to AS forum, we'll help you out. http://discussions.apple.com/forum.jspa?forumID=724
    I suppose it can be run within Automator using a run
    AS instead of a run shell script. As my automator do
    some other task too.
    Yes, Automator has Run AppleScript action.
    And yes, you're right, iWeb publishing that is! Good
    guest!
    I saw some of your posts in iWeb board.
    I'm mucking around with iWeb, it's a bloated monster. There are quite a few restrictions in iWeb, I had to hand code some of the stuffs, such as meta data keywords, tricky stuffs... I'm thinking of writing a script for post production.

  • Script that saves every visible layer as individual file in folder with same name

    Hello.
    In my PSD I have many folders with unique name (like "1234"), that contains layers named as digits (like "0", "1", "2" etc).
    I need to save each layer as JPG to folder with the same name and hierarchy that is in PSD file.
    How to do that using JavaScript .jsx scripts?
    Thank you for any response.

    What exactly is the problem – addressing the Layers, creating the Folder structure, …?

  • Stored Password Visible instead of Asterisks

    On my website when a single account/password is stored by FireFox, each time the page loads the password is displayed as plain text not asterisks.
    Is this a feature of the browser or are changes need in the elements of the form on the webpage?
    If 2 or more passwords are stored by Firefox the form fields are not populated by default.

    The DOMi shows that there are two input elements for the password field and if you set focus to the password field then the two get swapped via JavaScript code (one gets display:inline and the other display:none). Also a class ="focus" gets added to the real #password field.<br />
    Firefox will likely store data entered in the fake input field(s) as saved form data, but I don't think that anything should get entered in the fake fields, but I don't know how the Profile Manager code would respond to this swapping.
    There is this code in the main.js file
    *http://www.bigmate.com/js/main.js
    <pre><nowiki>
    if((inputs[i].type == "text" || inputs[i].type == "password") && inputs[i].className.indexOf(o.filterClass)) {
    inputs[i].valueHtml = inputs[i].value;
    inputs[i].onfocus = function () {
    if(this.valueHtml == this.value) this.value = "";
    if(this.fake) {
    inputsSwap(this, this.previousSibling);
    this.previousSibling.focus();
    if(o.addClassFocus && !this.fake) {
    this.className += " " + o.addClassFocus;
    this.parentNode.className += " parent-" + o.addClassFocus;
    inputs[i].onblur = function () {
    if(this.value == "") {
    this.value = this.valueHtml;
    if(o.passwordFieldText && this.type == "password") inputsSwap(this, this.nextSibling);
    if(o.addClassFocus) {
    this.className = this.className.replace(o.addClassFocus, "");
    this.parentNode.className = this.parentNode.className.replace("parent-"+o.addClassFocus, "");
    if(o.passwordFieldText && inputs[i].type == "password") {
    var fakeInput = document.createElement("input");
    fakeInput.type = "text";
    fakeInput.value = inputs[i].value;
    fakeInput.className = inputs[i].className;
    fakeInput.fake = true;
    inputs[i].parentNode.insertBefore(fakeInput, inputs[i].nextSibling);
    inputsSwap(inputs[i], null);
    }</nowiki></pre>

  • How do I make the password visible instead of ******

    I would like to be able to see the password being typed as I type it to see the mistakes that I am making

    within Firefox -- This extension shows the contents of password fields in cleartext (instead of the asterisks), to make that process a bit easier.
    * https://addons.mozilla.org/firefox/addon/unhide-passwords/
    You could type into another area, copy and paste that into the password.
    A main reason a password fails that you know would be caps lock, or num lock.
    If your passwords are remembered, you can double-click into the username, and then choose the correct username and if the password is remembered it will be filled in.

Maybe you are looking for