Xcode and network password

Hey All,
I am writing my first application in Xcode and everything is working fine except for a password issue.
A little background;
I have a simple application that when a button is clicked, an AppleScript is launched and loads a Growl notification on my local machine and another computer on the local network. I have store the password in the script in the form of "eppc://USER:[email protected]".
The issue I am having is that every time my app is launched and sends the command to the remote computer I get a dialog that asks for the username and password to use on the remote computer. I enter the user and pass and tell it to add to my keychain. As long as a leave the application open it never asks again. If I close and relaunch the application it will ask for the user and pass again. The information is being added to my keychain but it doesn't seem to want to use it.
Here is my question:
Is there a different way to need to save the user and pass in my script so I don't have to enter it every time I launch the application? I don't mind if it is stored in cleat txt as we are on a secure access network and everyone with access to the script already knows the user and pass.
Thanks in advance for any help,
GaffMan

http://developer.apple.com/library/mac/search/?q=keychain
Keychain Services Programming Guide 
Keychain Services Tasks for Mac OS X 
Keychain Services Concepts 
Certificate, Key, and Trust Services Programming Guide 
Glossary 
Certificate, Key, and Trust Services Tasks for iOS 
Secure Coding Guide 
Mac OS X and iOS Security Services 
Developing Secure Software 
Security Overview 
Security Services 
Security Architecture 
Keychain Services Reference 
SFKeychainSettingsPanel Class Reference 
SFKeychainSavePanel Class Reference 
Mac OS X Man Pages 
systemkeychain(8) Mac OS X Manual Page 
security(1) Mac OS X Manual Page 
Keychain APIs Release Notes 
QA1486: Programmatically Accessing and Manipulating Multiple Keychain Items 
Certificate, Key, and Trust Services Reference 
Good luck

Similar Messages

  • SSID, Encryption Code and Network Password Help

    I have just purchased an iFit Module and it is asking me for the following info:
    Network SSID
    Network Encryption Code
    Network Password
    I have absolutely no idea on where to find this information. If anyone can help, it would be greatly appreciated.
    The computer I have is a Desktop Mac OSX and operating system of 10.5.8

    On your Mac, hold down the option key while you click on the fan shaped AirPort icon at the top of your screen.
    There will be a check mark next to the name of your wireless network name. This is your SSID.
    Look for the Security setting. That is your Encryption Code.
    Your Network Password is the wireless network password that you use to connect to your wireless network.

  • Windows 7 computers asking for network password to access shared files and printers on Windows XP PRO computer.

    I have a network of 10 computers configured as peer-to-peer work group. I have upgraded one of the ten from Windows XP PRO to Windows 7 PRO. The other nine computers are all running XP PRO. AS near as I can tell they are all configured the same. I have the
    same user and same passwords on all computers. One of XP computers is used as a print server. The Windows 7 computer initially was able to access shared files and printers on all XP machines with out requesting a network password.
    Suddenly, the Win 7 computer began requesting a network password to access the shared files and printers on the XP print server. It will not accept any of the user names or passwords (all administrators on both machines with identical names and passwords.)
    The Win 7 computer has no problem accessing the shared files on the other XP machines. It can even access shared printers in a different work group. Apparently something has changed but I'm at my wits end trying to figure what changed on either the Windows
    7 machine or the print server XP machine.
    I would appreciate any help. Thank you

    Hi,
    Based on my research, I would like to suggest the following:
    1.   
    Disable simple file sharing on the Windows XP computer:
    How to disable simple file sharing and how to set
    permissions on a shared folder in Windows XP
    2.   
    On the Windows 7 computer, go to “Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings” and ensure that the
    following items are turned ON:
    Network Discovery
    File and printer sharing
    And this one is OFF:
    Password protected sharing
    3.   
    Temporarily disable or remove all the security software (firewall, anti-virus, anti-spyware, etc.) on the computers and check if it works.
    In addition,
    I would like to share the following with you for your reference:
    Troubleshoot file and printer
    sharing
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • How to connect an apple tv to an enterprise network with a username and a password?   I need to use it over my university's wifi. theres no option to enter username and password. how to connect the apple tv to such enterprise network?

    How to connect an apple tv to an enterprise network with a username and a password?
    I need to use it over my university's wifi. theres no option to enter username and password. how to connect the apple tv to such enterprise network?

    Contact the University's IT dept, they may be able to set something up on the network to allow the ATV to connect without the need for a user name/password.

  • I'm trying to recover the network password for my Time Capsule so that I can connect another device (a PC) to it.  I have my Macbook pro set to connect automatically and the password is hidden.  How can I find out what it is.

    My issue is that I'm trying to connect a PC to my wireless network run off of a Time capsule/airport router.  My macbook pro connects fine but the network password is hidden and set to autoconnect.  I thought I wrote the password down but when I try to connect the PC laptop and type in the timecapsule network PW is doesn't work.  Trying to verify if the passwird I wrote down is correct but there doesn't seem to be a way to recover this.
    Does anyone out there in the community know how to do this? (or do I just have to do a reset on the time capsule

    Reset the TC.

  • Upgrading to xcode and can't connect to the network

    Hi! I use a C++ library in my application which connects to the network (I suppose it uses sockets). I've been using it for months and I was using xcode 3.2.4. Now, I just had the great idea of upgrading to xcode 3.2.5, and I found out my application was crashing with the error:
    If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first. 3.2.5
    Ok, couldn't solve it, so went back to 3.2.4, as suggested somewhere. The application is not crashing anymore, but now the library can't connect anymore to the network. Tried to rebuild it (I didn't write the library but I have the sources) and use the new library, but nothing. Still the library can't connect to the network. I tried with every simulator.
    Any idea what there could be wrong and how I may be able to solve this? Can I somehow delete manually everything related to xcode and the simulator and try to start all over again?
    Thanks!

    I've been able to temporarily solve this problem by removing the entire Development directory and installing again xcode 3.2.4. Even with xcode 3.2.4 however, the same happened, and I had to do this procedure again. Now it seems to be working correctly, but it seems something very strange has happened. Hasn't anyone experienced anything similar?
    Thanks!

  • Changing network password...There are currently no logon servers available to service the logon request in Windows 8 and 8.1 Enterprise

    We currently are running Windows 7 in our enterprise environment. Everything works as expected when the user tries to
    change their network password via crtl+alt+del, change a password. We are now testing and trying to deploy Windows 8.1 to a test group and are running into an issue when any AD user tries to change their network password. The user can logon to the
    PC just fine when the PC is on the domain, however as soon as they go to change their password they are getting the error "There are currently no logon servers available to service the logon request". The end result is that the user can not change
    their password. We tried this via connected to the dock with a network cable, on corporate wireless, with a Windows 8.1 machine completely patched over with all Microsoft patches, and a Windows 8.1 machine that is not patched and are running into the same
    issue. Has anyone ran into this? Is there something that has to be changed on the infrastructure side?

    Hi,
    Please check the following KB:
    Error message when you try to log on to a Windows Server 2008-based RODC: "There are currently no logon servers available to service the logon request"
    http://support.microsoft.com/kb/949048
    To configure the Password Replication Policy for an RODC, a member of the Domain Admins group is required.
    By default, RODC's do not cache any user or computer passwords, neither a user or computer will be able to authenticate. You can however specifiy that their passwords be cached either by including a group or specific user in the Password Replication Policy
    on the RODC at the remote site.
    RODC - Password Replication Policy and Password Cache Management
    http://blogs.dirteam.com/blogs/paulbergson/archive/2010/09/22/rodc-password-replication-group-management.aspx
    Password Replication Policy Administration
    http://technet.microsoft.com/en-us/library/cc753470(v=ws.10).aspx
    For further information about the Windows Server side, I suggest you ask Windows Server forum:
    https://social.technet.microsoft.com/Forums/en-US/home?category=windowsserver
    Karen Hu
    TechNet Community Support

  • When i back up an iphone on itunes does it save my social network passwords and stuff so when i connect another phone and sync it it'll all be there and i won't have to sign into everything again?

    when i back up an iphone on itunes does it save my social network passwords and stuff so when i connect another phone and sync it it'll all be there and i won't have to sign into everything again? because, i don't know most of my passwords im just signed in to everything on my phone but i'm getting a new one.
    please help

    Hey menaelraghy,
    Thanks for the question. The following resource outlines what is backed up, you may be interested in this section:
    iTunes: About iOS backups
    http://support.apple.com/kb/HT4946
    - Keychain (includes email account passwords, Wi-Fi passwords, and passwords you enter into websites and some applications)
    If you encrypt the backup, you can transfer the keychain information to the new device. With an unencrypted backup, you can restore the keychain only to the same iOS device. If you're restoring to a new device with an unencrypted backup, you need to enter these passwords again.
    Thanks,
    Matt M.

  • What is my network password and how to remove it?

    I am networked. Everytime I try to open the netwroked computer on my MAC, a window wants my network password. I don't remember ever setting up said password. What is it and how can I get the MAC to stop askiong for it?

    Hello, are you connecting through a Router with Wifi/Airport?
    Has it ever connected?

  • HT3275 My Time Capsule keeps saying "backup failed" due to the network password not being correct. I have not changed my password and every day I have to type the same one in and then it works. But then the same thing happens the next day. Can anyone help

    My Time Capsule keeps saying "backup failed" due to the network password not being correct. I have not changed my password and every day I have to type the same one in and then it works. But then the same thing happens the next day. Can anyone help? This only started doing this about 2 weeks ago.

    Hello,
    Mac OS X 10.4 Help, I forgot a password in my Keychain
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1960.html
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544
    Open Keychain Access in Utilities, use Keychain First Aid under the Menu item, then either check the Password under that item, change it, or delete it and start over.

  • Why does my MBP (early 2008/OS X 10.8.4) keep telling me my network password it wrong and won't connect?

    When I enter the WPA2 password it tells me it's invalid (it is most definitely not, nor has it been changed). I reset my router and restarted my Mac, I've tied connecting from a new "location" and erasing keychain entries, and network preferences. I deleted the airport preferences file and rebooted. When I go into the advanced settings under TCP/IP there's nothing, no IP address, no gateway, no DNS. Renew DHCP Lease doesn't work and manually inputting the DHCP settings doesn't work either. I have no idea what's wrong. I've tried all the fixes I could find on the Apple Support Communities and Mac Rumors, nothing's worked so far. I'm well out of warranty.
    Please help!!

    Follow these instructions: How to perform a "clean install" of Flash Player in Mac OS X to the letter. You'lll perform an "offline" install and be up to date.
    Adobe updates are released on average about every six weeks, not once a week. In fact, the most often they've been this year was in March when a security issue was addressed and an additional Windows update was released ten days after the regular update, but that wouldn't have affected you on a Mac.

  • My IPAD won't accept my wi-fi password. I have tried resetting all settings and network settings but still won't accept it. Can't download to new version of IOS either, says software update server could not be contacted.

    my IPAD won't accept my wi-fi password. I have tried resetting all settings and network settings but still won't accept it. Can't download to new version of IOS either, says software update server could not be contacted.

    Yes I have put in the correct password, its all numbers so can't get it wrong really.
    It has connected before as has my iPod and that won't connect either. I have checked that they aren't on the blocked list of the wi fi. Managed to download the new version of iOS and that hasn't made a difference.
    I have the wi fi plugged directly into the computer rather than the booster hub as the computer won't connect to it when its in the hub. I did get the iPad to connect to the internet when it twas in the hub but once I upgraded the iOS it won't accept the wifi password in the hub either.

  • HT2497 have new Mac Pro 15 inch. every time I turn computer on it is no longer connected to internet.I have to go in and tell it which network and put password in. I have asked it to remember password but it is not

    Have a new Mac Pro for 3 days. When I turn it on it is offline. I have to go in and pick the network and put password in. I have asked it to remember the password, not doing it

    Have a new Mac Pro for 3 days. When I turn it on it is offline. I have to go in and pick the network and put password in. I have asked it to remember the password, not doing it

  • HT1595 My apple tv stuck at setting date and time. Also when connecting yo network doesn't ask for network password

    My apple tv stuck at setting date and time. Also when connecting yo network doesn't ask for network password

    I just went through this last night. (Aug 15, 2013)
    What I did to get back up and running. This is not the first time I have lost the network connection with my Apple TV 3
    Products effected: Apple TV 3 and Home Sharing (My Apple TV 1 was not effected)
    Power down (unplug) the Apple TV and power down your router ( in my case, it is a FIOS router, flipping the on/off works fine).
    Power both items back up.
    At this point, I usually can reenter my Apple ID and PW. and reconnect Home Sharing.  But for some reason I was unable to reconnect last night but was able to get it reconnected in the morning. I was jut to tired to deal with it last night.
    A new issue that is was able to fix after a good nights sleep.
    I did figure out, (after trying to reenter my ID and PW many times and having it tell me that my ID and PW was wrong), that when using the Apple TV on screen keypad to type in the user ID. DO NOT use the ".com" keypad button. Instead type out each character for .com. ( or what ever ending you use for your ID account.)
    Once I typed out my full ID and PW. everything is back to 100%

  • My ipad recognizes my wi-fi network but I changed my network password and it will no longer connect. How do I connect again?, My ipad recognizes my wi-fi network but I changed my network password and it will no longer connect. How do I connect again?

    I changed my wi-fi network password but my ipad has the old wi-fi on there, and I can't change the password on it or get rid of the old one

    Nope.  Can't delete the iCloud account on my iOS devices BECAUSE the password for the account to be deleted must be entered.  As I said, I already changed my Apple Store account and password.  When I did that, the old user ID and old password were rendered invalid.  So, one more time.  How do I change or delete my iCloud account. I don't use iCloud, BUT it keeps pestering me to sign in.  This is an Apple fiasco!

Maybe you are looking for