Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Recurring CalDAV login issues with iPhones and SLS (10.6 Server)

I have 10.6.4 Snow Leopard Server running on a Mac Mini and am having intermittent problems with various iPhones logging into CalDAV calendars. The iPhones are a 3G running iOS 3.1.3 and a 3GS running iOS 4.1.

iCal server works perfectly, with Push, on desktop clients.

The iPhones do work occasionally. Push is still not possible (AFAIK) but 15 minute fetch interval is acceptable for now (when is push coming to iPhones btw?). However, a few times per week, sometimes as many as 5 times in a single day, the iPhone will report "Password Incorrect." This happens on its on, presumably after one of the fetch intervals. Re-entering the password usually works, and is stored correctly for hours or days, but eventually it happens again. Sometimes password is accepted after re-entry but sync will silently stop working, which is even worse than the error popping up.

Each iPhone has 3 CalDAV accounts, one of which is a delegate, one of which is shared by all. The password issue happens with all of them, but far more often with the shared account. The password incorrect prompt does NOT always happen with all of them at once, sometimes just one of the accounts will throw the login error and the others will work for a while.

On the server, iCal has Authentication set to "any method", port 8008 and SSL on, Port 8443

The iPhones connect to CalDAV with SSL on port 8443 using "server" set to server.companyname.com

I have deleted the Calendar accounts on the phones repeatedly, hardware reset the phones, deleted all data and set up accounts again. This fixes the problem for a few days but then it comes back.

I don't see much in the iCal server logs, but I might not know what to look for. What should I look for or try next?

Thanks for any help.

Mac Mini 2Ghz Intel Core 2 Duo, 4GB RAM, Mac OS X (10.6.4)

Posted on Oct 13, 2010 12:58 PM

Reply
151 replies

Jun 9, 2011 6:17 PM in response to fabianschaefer

I don't have the authentication dialog any more!

Problem solved for me. This is the solution:


"I tried what Adrian had suggested.


I edited the /etc/caldavd/caldavd.plist


Setting Basic to true and Digest to false.


<key>Basic</key>

<dict>

<key>Enabled</key>

<true/>

</dict>

<key>Digest</key>

<dict>

<key>Algorithm</key>

<string>md5</string>

<key>Enabled</key>

<false/>

<key>Qop</key>

<string></string>

</dict>


Then I restarted the iCal Server and have tested it with multiple iPhone & iPad (running 4.3.3) using an SSL connection.

I have not gotten an authentication dialog in days. *yippee*


Hope it keeps on working and it also works for you guys as well."



+


"I may have found a solution and recognized the problem. Like most of us I'm running Snow Leopard Server and have iCal Server running using SSL connections. My certificate is self-signed, like I imagine most of our's are. Recently I remembered seeing some post, somewhere, on installing certificates on the iPhone. On a hunch, I installed the certificate I use for my FQDN for web services on my iPhone. It's been about 2 days now and I haven't seen a single authentication dialog and calendars are working.


To install a certificate on your iOS device you need to email it to yourself as an attachment. Click on the attachment and it will as if you want to install. It installs as "Not Trusted" and I don't see any method to make it trusted. You will see the certificate as a Profile under Settings > General > Profiles.


To get at the certificate.cer file, I dragged it out of Keychain Access on my desktop and then emailed it to myself.


I don't know if this is a real solution, but so far it's working here. I hope more people will be able to demonstrate whether it's effective or not."



After apply the mod at the caldavd.plist and install the certificate in 10 iphones everything now goes fine. Thanks for the help!

Jun 10, 2011 1:36 AM in response to Afro Garach

My personal opinion about self-signed certificates is that they shouldn’t be used outside of a test installation. If you do so in a production environment you’re either doing too much work or neglect protecting your users by desensitizing them to security alerts that should be taken seriously.


On the other hand the whole system is broken anyway, so why bother right?

Jun 21, 2011 4:56 PM in response to e.f.

I have not edited caldav plist and am sorry to report that the problem still exists running iOS 5 on my iPhone 4 and iPad. Apple seems to be ignoring the fact that this issue exists. I have reported it as a bug on the Developer Report a Bug site. The Issue ID is: 9651468


I can also confirm that the reported issue is not related to self-signed certificates and I have a wildcard cert issued by Verisign. On the topic of self-signed certificates... If you are using them in a production environment you are doing a your company and/or clients a great disservice not to mention your standing as an "IT Professional". I refuse to present self-signed certs even as an option to my clients and haven't received a single complaint about the expense from any of them. Spring for the $600 or so a year and purchase the real deal. :-)


Message was edited by: jpawelchak

Jun 23, 2011 9:40 PM in response to jpawelchak

Well this is exciting! Looks like we are finally getting an official fix for this bug with the release of 10.6.8! The error on rare occasions would occur with cardDAV as well so who knows if they really squashed it. I've already updated and plan to remove my changes to the plist file just to double check that the bug is really gone. Hopefully Lion Server will be earth shattering so I can forget about this year long pain in the butt feature, we'll just have to wait and see.


Calendar Services

- Improves reliability of processing international character encodings.

- Improves authentication support for iOS devices.

Apr 25, 2012 9:16 AM in response to thelizardo

I started getting the same request for CalDav password. There were no updates, no recent changes to the apps or settings. The only thing I had done was access "my verizon" to view my bill.



I had been reading through this thread and on the frst page I read someone had suggested tapping the home button twice which opens a small screen showing all open programs on the phone. I was suprised to see that I had about 20 apps going. I chose to close all programs manually by holding down on one of the apps. This caused all open programs to shake and display the red dash in the upper corner. I closed all programs and then I rebooted the iphone.


I have had no issues with the CalDav error since then. I think it solved the issue.

Apr 27, 2012 6:12 AM in response to Vermyndax

My wife has this problem all the time and she was not savvy enough to know what caused it so she simply cancelled it and accepted that it would return periodically . I laughed but It does work without a fix. Some one in Apple needs to resolve it for folks like my wife. It can't be that hard to resolve given all I read already from the masses of users screaming instructions and problem details. I say -use the cancel button and move on. It will get fixed when someone says that they are concealing their contract to buy because of it..

Apr 27, 2012 7:26 AM in response to FEFWmsbrg

Hey Guys,

You're probably posting in the wrong thread, this was an issue with password prompts popping up on the iPhone when the phone was setup to work with Snow Leopard Server calendar services. The issue here was eventually fixed by Apple with a patch to SLS. I reccomend you hunt down a more relavant thread if you want to get some answers. Best of luck!

Jun 14, 2012 7:02 AM in response to josephcorbett

You say that this issue was fixed by Apple, but it just started for me about a week ago. I was trying to sync calendars with an app called Intuition that is a sort of To Do list organizer. It was supposed to Sync with my iPhone, Mac and iPad calendars by going through Google Calendars. It had me log into Google. Immediately the error messages started. They go away after repeatedly touching either Cancel or OK. They seem to work equally. But like other people have said, they pop up 15-20 times a day, usually when I first log in to the phone (security code) or when I change apps. This is what it says.


Password Incorrect

Enter the password for the CalDAV

account "Lucy's Calendar"

Jun 14, 2012 7:24 AM in response to dancetoday07

THe issue that started this thread has been solved by Apple. The issue you are having is different because it sounds like it's directly a problem with iOS. The problem we had fixed was a problem with Snow Leopard Server that caused the same pop ups. I do suggest you look for a different thread.


That being said, are you running the lattest version of iOS and have you tried this app/solution on another iOS device? I know people that have had issue with password propmts for things like Yahoo mail and other ineractions that require constant authentication. The issue in those cases was usually with the providers servers and were resolved on their own. I'm not saying that this will be the case but so far we can't 100% blame iOS, not yet anyway. I hope this issue works out for your!

Recurring CalDAV login issues with iPhones and SLS (10.6 Server)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.