Pass login credentials into a test-path cmdlet

Here is the scenario. I'm creating a SQL Server Job that will use Powershell to test if a session could be made to a remote server before creating one. I was able to successfully create a cmdlet that will test a path that connects to a remote shared server
on the same domain. The remote server I'm trying to connect to is on a different domain so I need to pass along the login credentials. I'm stuck in finding the correct way to perform this. Is there a way to pass the login information without a prompt? Below
is my test-path command I want to use.
If(Test-Path -path \\IPADDRESS\Folder\subfolder)
    write-error "Remote connection test passed successfully"
else {Write-Error "Could not connect successfully to "\\IPADDRESS\Folder\subfolder" -EA Stop}
Also I was trying to use PSCredential to achieve this but was unsuccessful and received an error. Below is the powershell commands and error message.
$SecurePassword = Read-Host -Prompt "Enter password" -AsSecureString
$UserName = "DOMAIN\User"
$Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword
PS C:\Windows\system32>  If(Test-Path -path \\IPADDRESS\Folder\subfolder $Credentials)
>>   {
>>
>>     write-error "Remote connection test passed successfully"
>>
>>
>>   }
>> else {Write-Error "Could not connect successfully to "\\IPADDRESS\Folder\subfolder" -EA
Stop}
>>
Test-Path : A positional parameter cannot be found that accepts argument 'System.Management.Automation.PSCredential'.
At line:1 char:14
+  If(Test-Path <<<<  -path \\IPADDRESS\Folder\subfolder $Credentials)
    + CategoryInfo          : InvalidArgument: (:) [Test-Path], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.TestPathCommand
Thank you in advance

Hi DBA_attack,
Thanks for your posting.
If there also occurred error after add the parameter -Credential, please also note: This parameter -Credential in test-path is not supported by any providers installed with Windows PowerShell.
You can also try to use Invoke-Command with the credential who has the permission to access the tested file path.
I hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • How to pass login credentials dynamically to secured partnerlink in a BPEL

    Hi,
    I am trying to invoke a secured web service from a BPEL.And requirement is to dynamically pass the username and password . I have done the following steps to pass the login credentials to the partner link.
    Infact I have followed one of the oracle forums.BUT ITS NOT WORKING.
    ====================================================================================================
    1. Imported the xml schema "oasis-200401-wss-wssecurity-secext-1.0.xsd"
    2. Created a variable "SecurityContext"
    <variable name="SecurityContext" element="ns2:Security"/>
    3.Created a copy rule.
    <copy>
    <from>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:Username>myusername</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mypassword</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </from>
    <to variable="SecurityHeader"/>
    </copy>
    4. Added the following xml to the invoke operation.
    <invoke name="Invoke_1" partnerLink="UnitHealthService"
    portType="ns1:UnitHealth" operation="queryUnitHealthInfo"
    inputVariable="Invoke_1_queryUnitHealthInfo_InputVariable"
    outputVariable="Invoke_1_queryUnitHealthInfo_OutputVariable"
    bpelx:inputHeaderVariable="SecurityContext"/>
    5. Deployed the BPEL sucessfully.
    6. Output message given by BPEL console is
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is a28500bf6f4d1dc9:- 488f4503:1215f79430f:-7d71. Please check the process instance for detail.</faultstring>
    </Fault>
    7. In the VISUAL flow diagram , message generated by the Invoke activity is as below:
    <summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized</summary>
    So FINALLY ITS NOT CONNECTING.
    ====================================================================================================
    When I created the properties and hardcoded the username and password like below, its worked.
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">myusername</property>
    <property name="basicPassword">mypassword</property>
    Can anyone suggest HOW CAN I DYNAMICALLY PASS USERNAME AND PASSWORD to the secured web service via partner link??
    Thanks,
    Kumar

    I have tried it but itwas not working..
    I am not able to set exactly the copy rules given in that blog as that blog has wsse:password king of assignments where as when I try to assign , I have the asignment like /ns2:password .
    Am I mising something here?
    I have imported only oasis-200401-wss-wssecurity-secext-1.0.xsd.
    Thanks,
    Kumar
    Edited by: GenuineOracle on Jun 2, 2009 5:38 PM

  • Pass Command to Variable to Test-Path

    I'm passing a command to a vCenter in PowerCLI to backup VDS switches using a script I found on the internet. I want to do a test-path for the export location though to see if it backed up successfully. This would be okay if the portgroup name was static
    but it pulls it using a $_.name variable piped in from the get-vdswitch command. If I do a test-path for that variable outside of that line then it won't recognise it will it? Here's the code.
    foreach ($switch in $switches)
    # Backup each vNetwork Distributed Switch not including the port groups
    export-vdswitch $switch -Withoutportgroups -Description “Backup of $switch without port groups” -Destination “$full_path\$switch.without_portgroups.$date.zip“
    # Backup each vNetwork Distributed Switch including the port groups
    export-vdswitch $switch -Description “Backup of $switch with port groups” -Destination “$full_path\$switch.with_portgroups.$date.zip“
    # Backup each port group individually
    get-vdswitch $switch | Get-VDPortgroup | foreach { export-vdportgroup -vdportgroup $_ -Description “Backup of port group $($_.name)” -destination “$full_path\$($_.name).portgroup.$date.zip“
    To clarify, entire code works but I need to test that they backed up. The first two lines (export-vdswitch) will be okay because $full_path, $switch and $date are declared outside of that loop. So the problem comes doing a test-path on the location of the
    final command (probably could've said that briefer). Although retrieving the export path in a concise fashion would be beneficial.
    Thanks in advance

    Ho to clear things up? If I want to have it export to a variable called $exportedfile I can't pipe it out at the end like this for example:
    get-vdswitch $switch | Get-VDPortgroup | foreach { export-vdportgroup -vdportgroup $_ -Description “Backup of port group $($_.name)” -destination “$full_path\$($_.name).portgroup.$date.zip“ | $exportedfile
    If I try that it tells me that expressions are only allowed as the first element of a pipeline so how would I test-path against the output?

  • SQL Server 2012 Import-Module 'sqlps' breaks the "Test-Path" PowerShell cmdlet

    I've run into something that is "very" frustrating with the new SQL Server 2012 PowerShell module.  When I Import the module, it breaks the "Test-Path" cmdlet when trying to test a UNC path to a directory.
    For example:  
    "Test-Path -path \\server\dirname" returns true as expected before the sqlps module is imported.  But after you import the SQL Server module "Import-Module 'sqlps' –DisableNameChecking" the same Test-Path
    now returns false.
    If I run the following in Windows PowerShell ISE I see the following results:
    Test-Path -path "\\server\directoryname"
    Import-Module 'sqlps' –DisableNameChecking
    Test-Path -path "\\server\directoryname"
    True
    False
    Anyone have any idea what's going on?
    UPDATE: after more testing, it looks like the problem happens with any cmdlet that references a UNC.  The New-Item has the same problem.  Before importing 'sqlps', New-Item is able to create a directory at the UNC path specified, but ater importing
    'sqlps', the New-Item fails.
    Thanks!

    Hi Mikea730,
    Sqlps.exe doesn't take advantage of a couple of these nice PowerShell V2 cmdlets without doing a bit of configuring in your environment. 
    Please refer to the following references to make some configuration in your server
    http://www.maxtblog.com/2010/11/denali-get-your-sqlpsv2-module-set-to-go/
    http://www.simple-talk.com/sql/database-administration/practical-powershell-for-sql-server-developers-and-dbas-%E2%80%93-part-1/
    http://sev17.com/2010/07/making-a-sqlps-module/
    Thanks,
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Iric Wen
    TechNet Community Support

  • Test-path where a directory in the path is variable

    My company has a series of fax lines and associated file shares. Faxes are processed & then dropped off into these file shares. From that point a service runs about every 60 seconds to look for files in these directories to import into a database.
    If there is a problem with the import then the service moves the file to a "HOLD" folder & files remain there until human intervention.
    I am trying to create a script that will find the HOLD directory in each of these folders and look for the existence of files, then email a group of users alerting them if there are.
    So there are several things I'm trying to accomplish.
    1. Look for files in a path where a folder in the middle of the path is variable.
    2. Send and email that will inform the recipient that there are files in the HOLD folder(s) and tell them WHICH ones
    Here's what I am starting with but it isn't working as expected.  There are files in at least one of these.  I also thought to try using some kind of foreach loop but it's eluding me.  Probably because it's late in the day for me.
    $folder = get-content -Path "\\child.domain.com\netlogon\scripts\ps\numbers.txt"
    if(Test-Path -Path "\\Server\scan import\fax\$folder\Hold" -include *.pdf, *.tif, *.jpg) {write-host "Files exist at $folder"} Else {write-host "No files in the hold folders"}
    # When I wrote this script only God and I knew what I was doing. # Now, only God Knows!

    The numbers.txt includes a list of folder names, one per line. I did come up with the following and it's working, for my purposes, so I now need to figure out how to get the results into the body of a single email.
    $parent = "\\server\scan import\fax\"
    $folders = get-content -Path "\\child.domain.com\netlogon\scripts\ps\numbers.txt"
    Foreach ($folder in $folders)
    if(Test-Path -Path "$parent$folder\HOLD\*" -PathType leaf)
    write-host "Files exist at $parent$folder\Hold"
    Else
    write-host "$folder Clear"
    I'm really only using the Write-Host actions in place of the Send-MailMessage Cmdlet, at least I think that is the command I need.
    # When I wrote this script only God and I knew what I was doing. # Now, only God Knows!

  • Reusing login credentials with multiple wars

    I have 2 web applications (war files) that are deployed to a single managed server. Both web applications use the weblogic security realm for authentication (configured via Security Realm -> Providers) with the same provider. This means that both applications have the same set of users.
    The first application implements a simple web service (using JAX-WS) that provides 3 or 4 functions.
    The second application is a UI that provides inventory operations (saved to a database) and additionally calls functions from the first web service application.
    I would like the following to happen:
    1 - User logs into the UI application
    2 - User performs an action that calls the web service application
    3 - The UI application uses the login credentials from step 1 to login to the web service application
    4 - The web service application executes the function with the user credentials from step 1
    The reason I would like this is that the web service application has an audit trail of who called the function.
    I have a work around but it is not acceptable, which is to configure a username/password in the UI. The issue is that the web service function is always called with the configured user, regardless of who logs in from step 1.
    Anyone have any ideas on how to deal with this problem?
    Does SSO help in this case?
    Is there a way to reuse the session?

    While logged in as User B, open Keychain Access. Find the password entry for connecting to the mini and delete it.
    Then, try to log in again. User B likely used User A's login info at some point, maybe testing, to connect to the mini, so those credentials were saved in the keychain.

  • Error while Passing shell variable into exec UTL_MAIL.SEND

    Hello,
    I am new in shell scripting, please help me to rectify, whats wrong in my code.
    login='system/manager'
    code=`
    sqlplus -s $login <<EOF
    set heading off
    SELECT tablespace_name,(SUM(bytes/1024/1024)) FROM dba_free_space WHERE tablespace_name IN ('PIN00','PINX00','SYSTEM','SYSAUX','UNDOTBS1','STATSPACK') GROUP BY tablespace_name;
    EOF`
    exec UTL_MAIL.SEND(sender=>'[email protected]', recipients=>'[email protected]', cc =>'[email protected]' , subject=>'$ORACLE_SID BACKUP', message =>'$code')
    exit;
    EOF
    echo "sqlplus exited"
    ERROR:
    ORA-01756: quoted string not properly terminated
    SP2-0734: unknown command beginning "SYSTEM ..." - rest of line ignored.
    SP2-0734: unknown command beginning "PIN00 ..." - rest of line ignored.
    SP2-0734: unknown command beginning "PINX00 ..." - rest of line ignored.
    SP2-0734: unknown command beginning "SYSAUX ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Edited by: 929236 on Apr 21, 2012 12:46 AM
    Edited by: 929236 on Apr 21, 2012 12:48 AM

    Hello,
    Thanks for your review.
    But please look into below output i am getting after running below code
    ORACLE_BASE=/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0.4/db_1; export ORACLE_HOME
    ORACLE_SID=pindb; export ORACLE_SID
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    login='system/manager'
    code=`
    sqlplus -s $login <<EOF
    set heading off
    set feedback off
    SELECT tablespace_name,(SUM(bytes/1024/1024)) FROM dba_free_space WHERE tablespace_name IN ('PIN00','PINX00','SYSTEM','SYSAUX','UNDOTBS1','STATSPACK') GROUP BY tablespace_name;
    exit`
    output:
    PIN00 28287.1172 PINX00 93813.1367 STATSPACK 54.1875 SYSAUX 215.125 SYSTEM .1015625 UNDOTBS1 745.8125 6 rows selected.
    Here its working very fine but when i am passing code variable to utl_mail.send procedure, its giving error same as i mentioned previous. I have put all the environment variable as well. But when i put utl_mail.send and pass CODE variable into it it gives error.
    ORACLE_BASE=/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0.4/db_1; export ORACLE_HOME
    ORACLE_SID=pindb; export ORACLE_SID
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    login='system/manager'
    code=`
    sqlplus -s $login <<EOF
    set heading off
    set feedback off
    SELECT tablespace_name,(SUM(bytes/1024/1024)) FROM dba_free_space WHERE tablespace_name IN ('PIN00','PINX00','SYSTEM','SYSAUX','UNDOTBS1','STATSPACK') GROUP BY tablespace_name;
    exit`
    $ORACLE_HOME/bin/sqlplus -s /nolog << EOF
    connect / as sysdba
    exec UTL_MAIL.SEND(sender=>'[email protected]', recipients=>'[email protected]', cc =>'[email protected]' , subject=>'$ORACLE_SID BACKUP', message =>'$code')
    exit;
    EOF
    echo "sqlplus exited"
    ERROR:
    ORA-01756: quoted string not properly terminated
    SP2-0734: unknown command beginning "PIN00 ..." - rest of line ignored.
    SP2-0734: unknown command beginning "PINX00 ..." - rest of line ignored.
    SP2-0734: unknown command beginning "STATSPACK ..." - rest of line ignored.
    SP2-0734: unknown command beginning "SYSAUX ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "SYSTEM ..." - rest of line ignored.
    SP2-0734: unknown command beginning "UNDOTBS1 ..." - rest of line ignored.
    sqlplus exited
    Thanks,
    Ashish
    Edited by: user13271251 on Apr 22, 2012 11:49 PM

  • Authentication - "Invalid Login Credentials" ? ? ?

    Hey guys,
    Need some help regarding Log in.
    I have a table in the database (table name USER_SECURITY) which has the list of users who are authorized to log in to the application.
    I have to incorporate this in the application page
    Could you please help me with the logic how to go about it in APEX
    Thank You for your help and suggestions
    Jesh

    Hi,
    I did try the link and it helped me understand alot, [ http://djmein.blogspot.com/2007/07/custom-authentication-authorisation.html]
    and I tried an example as mentioned in Duncan Mein's Blog and it did work, but then when I try to use it in my application and entered the username and password it says *"Invalid Login Credentials".*
    Here's the code I used:
    The table was already created in the database: ASQ_USER_SECURITY
    has four columns: USER_ID, USER_ROLE, USER_NAME, PASSWORD
    Created an Application Security Package
    CREATE OR REPLACE PACKAGE app_security_pkg
    AS
    PROCEDURE add_user
    p_user_id IN VARCHAR2,
    p_user_role IN VARCHAR2,
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    FUNCTION get_hash
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN VARCHAR2;
    PROCEDURE valid_user2
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    FUNCTION valid_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN BOOLEAN;
    END app_security_pkg;
    CREATE PACKAGE BODY
    CREATE OR REPLACE PACKAGE BODY app_security_pkg
    AS
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    IS
    lv_goto_page NUMBER DEFAULT 1;
    BEGIN
    IF UPPER(p_uname) = 'ADMIN'
    THEN
    lv_goto_page := 1;
    ELSE
    lv_goto_page := 1;
    END IF;
    wwv_flow_custom_auth_std.login
    p_uname => p_uname,
    p_password => p_password,
    p_session_id => p_session_id,
    p_flow_page => p_flow_page || ':' || lv_goto_page
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END login;
    PROCEDURE add_user
    p_user_id IN VARCHAR2,
    p_user_role IN VARCHAR2,
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    AS
    BEGIN
    INSERT INTO app_users (USER_ID,USER_ROLE,USER_NAME, PASSWORD)
    VALUES (p_user_id,p_user_role,UPPER (p_username),
    get_hash (TRIM (p_username), p_password));
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    ROLLBACK;
    RAISE;
    END add_user;
    FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN DBMS_OBFUSCATION_TOOLKIT.md5 (
    input_string => UPPER (p_username)
    || '/'
    || UPPER (p_password));
    END get_hash;
    PROCEDURE valid_user2 (p_username IN VARCHAR2, p_password IN VARCHAR2)
    AS
    v_dummy VARCHAR2 (1);
    BEGIN
    SELECT '1'
    INTO v_dummy
    FROM ASQ_USER_SECURITY
    WHERE UPPER (USER_NAME) = UPPER (p_username)
    AND PASSWORD = get_hash (p_username, p_password);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN raise_application_error (-20000, 'Invalid username / password.');
    END valid_user2;
    FUNCTION valid_user (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN BOOLEAN
    AS
    BEGIN
    valid_user2 (UPPER (p_username), p_password);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN RETURN FALSE;
    END valid_user;
    END app_security_pkg;
    When I tried to Create a Test User it worked and added a record in the database
    exec app_security_pkg.add_user ('RS','E','jesh','goodone')
    Create your own Authentication Scheme
    Authentication Function Section: RETURN APP_SECURITY_PKG.valid_user
    Switch on your Custom Scheme: made it “My Auth Scheme”
    Also Altered the Login Process on Page 101
    app_security_pkg.login (P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID );
    This is pretty much what was there in the Duncan Mein's Blog
    Thank you for having a look at the code
    Appreciate your help
    Jesh

  • Using login credentials from the first page

    Hi guys hopw one of you will help me!!
    I a jsp page which takes the username and password.(this is login.jsp)
    If the login is successful the page enters into another jsp which has a list of what the user wants to do.
    Everything is working fine at tht moment.
    But my major concern is say if i give the following ur to login:
    http://localhost:8000.login.jsp
    and enter the username and password.After succesfully logging in I have another jsp(register.jsp)
    with the following functions:
    Delete user
    create user
    The problem is if i give the following address in my browser:
    http://localhost:8000/success.jsp directly this page is being displayed without checking for the login credentials.
    Is there a way where i can check the username and password before the page is being displayed.(remeber I dont have username and password text boxes in each page).
    Thanx in advance.

    Yes you can do this search the forums with the search bar to the left looking for login routines and session variables.
    You put the result of your loging routine (pass or fail) into a session variable. All protected pages then check this session variable, and redirect to the login page if it is not correct.
    Search for session variables.

  • Batch schedule won't allow me to enter "login credentials"

    Hello All,
    A most random thing happened today. I am on version 11.1.2.3.500 of EPM and was in the process of creating a Batch (for test) and after doing this successfully a number of times (10+), I deleted the batch I had created attempting to create a new one. However, this time, the database connection has come up blank as can be seen below.
    The 2 fileds highlighted below were originally editable, and the userid was filled in with "admin". I would normally just enter the password and proceed, however in this case, I can't write anything into either of the 2 fields highlighted below.
    This naturally creates a problem as I can not now see the dimensions from the reporting database - so can not select any dimensions!
    I've powered down the virtual machine, restarted my services (2x) and everything else looks and works fine except for this issue.
    Any ideas?
    Regards
    Dermott

    Thanks for the reply LRBS. I did spend some time going through the logs but they turned up empty and here's why...
    It turns out it was a corrupted BATCH. Somehow, each time I created a new "Batch Schedule" and used my original batch as a reference it made it impossible to edit/enter the correct login credentials for the server element.
    Hopefully this helps someone else in the future.
    Action: "Delete and recreate your Batch if you get this error."

  • [svn] 3026: Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java. lang.ClassCastException

    Revision: 3026
    Author: [email protected]
    Date: 2008-08-28 11:35:50 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java.lang.ClassCastException
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-370
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/websphere/flex/messaging/security/WebSphereLoginCo mmand.java

    Please test with the new Java Plug-In available in 6u10 at http://jdk6.dev.java.net/6u10ea.html. The Java/JavaScript bridge has been completely rewritten and is now more complete and portable than ever before. Longstanding issues should be fixed with this new version. Please try it and post if you continue to have problems.

  • HT1277 Mail keeps asking login credentials for a removed Exchange account

    Removing an Exchange account does not seem to be enough to stop Mail from attempting to connect the Exchange server. Every now and then Mail pops up a dialog prompting for login credentials for an Exchange account I have previously removed. This seems to happen very consistently every time I visit the Accounts tab in Settings.
    My question is: How do I get rid of whatever little data there is left of the removed Exchange account?

    Basically, the fix is to put all your mail passwords in a separate, always-unlocked keychain.
    Here is how to do this:
    1) Open keychain access, go to File -> New Keychain. I named mine Mail. Save it in your keychains folder (default), and give it a password.
    2) Right click the new keychain and select "Change Settings for Keychain". Here, uncheck the "Lock after" and the "Lock when sleeping". The latter can be left on if you don't mind re-typing your password every time your computer goes to sleep (can also be more secure if you don't lock your whole machine when sleeping).
    3) Here is the tricky part: you need to find all your mail keys and drag them into the new keychain. Do a search for your mail host or your login username and you might see a list of keys. It will be flagged as an "Internet password", not web form, and when you click on it it should read "imap://your.web.host.tld/" or pop if you use that, and "smtp://your.web.host.tld/" for your outgoing mail. Just drag them all into your Mail keychain, type in your password and click Accept. The keys will stay on the search screen, but clicking on the Mail keychain will confirm that they are in fact moved.
    4) Now lock your primary keychain (the one in bold) and run a test by checking your mail. If no dialog pops up asking for your keychain password then it was a success!

  • Invalid Login Credentials  after a brand new install of APEX 2.2

    I'm trying to install APEX2.2 for the first time to see what it can do.
    I have followed the install document.
    When I got ot here, http://localhost:7777/pls/htmldb
    It requests a workspace, username, password.
    back to the documentation, it states use http://localhost:7777/pls/htmldb/apex_admin
    to create your workspace. And to sign in as admin, and the password passed into @apexins.sql When I try that, it results in the error message "Invalid Login Credentials" The documentation does not describe anything about that!
    Please help
    Thanks,
    Jason

    Joel,
    I had a cut and paste error in my last posting, I actually ran this:
    alter user FLOWS_020200 account unlock;
    connect FLOWS_020200/apex
    begin
    wwv_flow_api.set_security_group_id(p_security_group_id=>10);
    wwv_flow_fnd_user_api.create_fnd_user(
    p_user_name => 'admin2',
    p_email_address => '[email protected]',
    p_web_password => 'admin2') ;
    end;
    alter user FLOWS_020200 account unlock;
    I have a thought on why Ben and I both had this same "Invalid Login Credentials" issue. In my case it certainly wasn't because of any special characters in the password. I used apex as a password.
    From reading Ben's post I see we both first had a problem with the images directory. Sounds like Ben had the same issue I had. Which was in the marvel.conf I first entered this
    Alias /i/ "C:\oracle\product\10.2.0\db_as\Apache\Apache\images"
    instead of this:
    Alias /i/ "C:\oracle\product\10.2.0\db_as\Apache\Apache\images/"
    This caused my http://localhost:7777/pls/htmldb URL to paritially work. I'm thinking that may be what caused the "Invalid Login Credentials" once I made the Alias adjustment.
    Thanks,
    Jason

  • Login credentials server with multiple users on 1 Mac

    The situation is a MacBook Pro running Mountain Lion connecting to a Mac Mini.
    The MacBook Pro has 3 users with administrator rights:
    A, B and C.
    When user B is logged in and wants to connect to the Mac mini, the login dialog shows the credentials of user A by default.
    This happens also after a re-start and first login by user B.
    How can I have the system forget the login credentials in the above case so that user B can have the correct default user name in the login window?
    Thanks for your help.

    While logged in as User B, open Keychain Access. Find the password entry for connecting to the mini and delete it.
    Then, try to log in again. User B likely used User A's login info at some point, maybe testing, to connect to the mini, so those credentials were saved in the keychain.

  • Passing a string into an SQL query IN statement

    Hello,
    I need to connect to a database to pull some data to dynamically create a form based on the data I pull back. My SQL query works fine when I manually run it through a SQL client tool, but when I try to pass it through my workflow I'm having trouble with passing my string into the IN part of the statement. So if for example my SQL query is:
    SELECT Field1, Field2, Field3 FROM Table1 WHERE Field4 IN (?)
    I have a process variable that has the string I'm trying to pass into the ?, but I don't seem to be able to get the query to run. I have tried setting up my query to run as a Parameterized Query (passing my string process variable into the ?), and by setting the query up through xPath (where I am calling my process variable with an xPath declaration), but am not having any luck.
    The process variable I am trying to pass is formatted such that I'm passing 'Value1','Value2','Value3' but I can reformat this string if need be. Even with using test data I can't get the query to return anything. For test data I have tried: 'Value1','Value2','Value3' ; Value1','Value2','Value3 ; Value1,Value2,Value3 but the query never returns any data. I can't seem to see how to format the string to pass into the query. The Query will work with a single Value in the test data, but as soon as I try to pass multiple values within the string it fails. Any suggestions?

    The problem looks to be a limit on what I can pass into the SQL query component. My string is coming from data returned from another database. I take the xml output from that database call, pass it through a set variable component to remove my xml tags from the string, and then format the string in a script component (I have to do it this way because of the way the data coming out of my first database call). I've put in loggers, and can see that the string I'm passing into my query that is giving me problems, is formatted the same way as if I were to use the concat function Scott listed above. It looks like there is a limitation on what can be passed in my variable. I have tried creating my entire SQL query statement in a set variable component, and then just calling the process variable that holds that statement, but there is a character limit of 128 character for what can be passed in a variable through xpath in the SQL query component.
    The next thing I tried was changing my SQL where clause. Instead of passing my variable directly into the IN statement I set up a PATINDEX('%:'+countyname+ ':%', ?) > 0 call to check for the values in my database call. As you can see I took out the "," that I was passing as part of my string, thinking that the SQL component was getting confused by them, and placed ":" characters around my values being passed in my string variable. No matter what I try to do though I'm not able to get the query to run. The component looks like it is taking my string, and is seeing the whole thing as a string instead of passing it as individual values within a string.
    I think I'm getting close, but I keep getting a Content not allowed in prolog exception in the server logs.

Maybe you are looking for

  • I need to upgrade my iPhoto...

    ...to be able to take advantage of streaming and iCloud features.  I see a lot of discussion about iPhoto '11, is it worth it?

  • Create mode in table-form layout

    Hi I use jheadstart 10.1.3.3.0.4157. I have a group with table-form layout. I want to enter to this page in create mode and then if user want, click on search button and go to table layout. I use steven davelaar solution (Re: How to add enter-in-inse

  • Quickview on Logical DB BRF

    I'm trying to generate a list of vendors that we have made payment to within a time period.  The list structure of my design is correct - line 1 = fiscal year (BKPF-GJAHR), with subsequent lines of vendor (LFA1-LIFNR) and name 1 (LFA1-LIFNR).  Select

  • How to solve this BIOHD-8?

    My pc showing BIOHD-8 this message how to solve this? My pc components are dual core processor E5400 1 gb ram 320 gb hard drive This question was solved. View Solution.

  • My ipad not turn on (estaba usando mi ipad, lo apague y ya lleva un dia que no enciende y no carga)

    ya habia ocurrido una vez pero en custion de minutos volvio a funcionar normal. Ahora ya lleva un dia sin prender, no se nota si carga o no, lo conecto a la compu y no lo detecta. Solo tengo 5 meses con ella...!!!