Keychain issue with network users on 10.10 clients
Hello everybody
I've got a keychain issue with network user homes connecting form 10.10 clients to a 3.2.2 server:
After upgrading some clients to 10.10, our students started to complain: They had to enter passwords again and again. It looked like the passwords wouldn't save in their keychain.
When I checked their "local items" keychain, it was empty and no new data could be saved in there.
This caused of course a lot of following issues with a lot of other apps.
So I started testing with a brand new user on a 10.10 client. These are the results:
When the user logs in, the keychain "keychain-2.db" is created in ~/Library/Keychains/893693C6-3637-5019-A594-DC4BD648101C
I think this is as it should be, this folder is for this particular client.
When the user logs out and then logs in again, this keychain has changed to "keychain-2.db-corrupt" and no data can be saved in there.
But when I restart the client and then the user logs in again, a new "keychain-2.db" has been created and the corrupt keychain is still there.
The new keychain is empty of course, but new data can be saved in there.
And then, when the user logs out and in again, the whole story starts from beginning.
First I thought, it could be because of the "after logout network home directory isn't disconnected from server" problem as it was discussed in other posts. (See also Users not disconnected from file sharing and others.) But it looks like this problem has been solved in 10.10: When a network user has logged out, there's no more AFP (or SMB) connection visible on the server.
So on the client I logged in as a local admin and checked the activity:
Although my test user had just logged out, there were still about 16 processes running under his name. One (or more) of them must have been destroying the "keychain-2.db" and blocking the creation of a new one.
With killing them one by one and a lot of testing I found the guilty one:
It's the process called "secd" that causes this keychain issue. If I kill this process before the user logs in again, his heychain-2.db won't become corrupt!
I have no idea what this process is for and why it is (and all the others processes) still there, after the user's logout.
My questions are:
Is this bug or is it a misconfiguration of my clients and/or server?
Does anybody else have the same experiences with accounts on a server 3.2.2? What about server 4.0?
Does anybody have an idea for a workaround?
Thanks a lot for helping.
Bob