You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Mavericks Server Keychain not properly storing information network users.

OS 10.9.1, Server 3.0.2. Clients OS 10.9.1 bound to server Open Directory and managed with Profile Manager. 10.6.8 Mail server bound to 10.9.1 server Open Directory. Messages is running on the 10.9.1 server which hosts the users.


Changeip -checkhostname indicates DNS is correct for the server. Server is running on a FQDN, no .local or other DNS issues.


For everything below: the Keychain for any of the users does not need to be repaired.


Generally things are going well with one exception which is a big problem.


Each time a network user logs and tries to use either Mail to connect to our mail server via IMAP or Messages in they are prompted for passwords. Messages takes the password and logs in. Mail acts as though the password was incorrect and asks for it again, it does not pass the connection to the mail server. There is no trace of the attempted login on the mail server logs.


Functional workarounds:


1 - OS reinstall allows immediate login on the mail server and connections as expected. This is a little too much for day to day use.


2 - (From somewhere in the forums forgot who, sorry), User login, go to User's network home/Library/Keychains and move any keychains with long strings of letters and numbers as name to another folder or put in trash, immediately reboot, User login again, enter passwords in Mail, immediate connection to mail server and expected behavior from Mail.app.


As a network user machine in a multi user environment, the next user will have to repeat the entire procedure above, including the reboot, to get access to the contents of the mail server. The first user in the example above will have to repeat it, if they come back to the same machine and log in again.


This is what we are doing now. It appears that it would work on a personal machine with local users and has solved a lot of issues in the forum. It is helping but does not solve the keychain problem for network users.


Does anyone have any advice.


Thanks.


-Erich

OS X Server

Posted on Jan 10, 2014 6:34 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 28, 2017 12:32 PM

It is our experience that it is still problem, in fact several different problems. 😟


Whilst there are many issues two of the major ones are -


  1. The 'new' local items keychain used for Apple programs passwords e.g. Mail, Contacts, etc. is stored in a per machine specific folder rendering it unusable for hot-desking
  2. Each new version of OS X has increased the use of SQLite databases to store settings and data and when used over a network as with network home directories these either get corrupted or locked so they cannot be used making programs like Mail, Contacts, and even Safari unusable, recent new uses include local items keychain itself and the new suggestions database for spotlight and looking up contacts and calendar entries in emails etc.


While I am still in the processing of reporting these issues to Apple especially the new SQLite problems I am in the process of changing all our users and giving up on network home directories. 😟

278 replies

Feb 5, 2015 10:18 AM in response to Richard Gale

We have the same problems with 10.2.2, network home folders.

Mail, Calendar, ... works only once or after after restart ! Logout - Login : Mail asks endless for the passwords.


Now I connected as root from another computer with ssh, and there are many user-processes runnig after logout !!!

If kill them by the Terminal, the network user can login and Mail.app works.


(at)AppleSupport: Please fix the user-logout !!!


Best,

Luda


PS.

Running processes after logout:

Processes: 129 total, 2 running, 6 stuck, 121 sleeping, 485 threads 17:18:15

Load Avg: 0.94, 0.89, 0.84 CPU usage: 0.0% user, 0.49% sys, 99.50% idle SharedLibs: 19M resident, 23M data, 0B linkedit. MemRegions: 10456 total, 531M resident, 48M private, 154M shared. PhysMem: 2219M used (871M wired), 5968M unused.

VM: 312G vsize, 1070M framework vsize, 0(0) swapins, 0(0) swapouts. Networks: packets: 1924662/775M in, 1960823/1098M out. Disks: 48198/1685M read, 28117/587M written.


PID COMMAND %CPU TIME#TH #WQ #POR MEMPURG CMPR PGRP PPID STATEBOOSTS %CPU_ME %CPU_OTHRS UID FAULT COW MSGSEN MSGRE SYSBSD SYSMAC CSWPAGE IDLE POWE USER#MRE RPRV VPRV VSIZ KPRV KSHR
1337 com.apple.InputM 0.0 00:00.02 2040 1844K 0B 0B 1337 1sleeping 0[1] 0.00000 0.00000816 2205 161 211811263 448255060.0 lwieland N/A N/A N/A N/A N/A N/A
1294 com.apple.sbd0.0 00:00.01 2048 1064K 0B 0B 1294 1sleeping 0[3] 0.00000 0.00000816 1022 128 281119 690532257060.0 lwieland N/A N/A N/A N/A N/A N/A
1290 DataDetectorsDyn 0.0 00:00.29 2054 7264K 0B 0B 1290 1sleeping 0[7] 0.00000 0.00000816 5272 260 604272 15987 959877012 0.0 lwieland N/A N/A N/A N/A N/A N/A
1257 CloudKeychainPro 0.0 00:00.02 2044 960K 0B 0B 1257 1sleeping 0[7] 0.00000 0.00000816 1000 125 316123 845596453011 0.0 lwieland N/A N/A N/A N/A N/A N/A
1252 com.apple.iCloud 0.0 00:00.14 2045 2312K 0B 0B 1252 1sleeping 0[9] 0.00000 0.00000816 2444 172 583241 2765 9331209 032 0.0 lwieland N/A N/A N/A N/A N/A N/A
1243 IMDPersistenceAg 0.0 00:00.04 2050 1788K 0B 0B 1243 1sleeping 0[6] 0.00000 0.00000816 1461 153 400152 1529 733708018 0.0 lwieland N/A N/A N/A N/A N/A N/A
1215 secd 0.0 00:00.13 2145 1892K 0B 0B 1215 1sleeping *0[1] 0.00000 0.00000816 1570 156 1384 596 4856 1293 2452 026 0.0 lwieland N/A N/A N/A N/A N/A N/A
1211 tccd 0.0 00:00.09 2142 2008K 0B 0B 1211 1sleeping 0[44] 0.00000 0.00000816 1530 146 1110 567 3829 1383 1601 080.0 lwieland N/A N/A N/A N/A N/A N/A
1209 pkd 0.0 00:00.17 2046 3592K 0B 0B 1209 1sleeping 0[7] 0.00000 0.00000816 4748 171 420157 7815 6281232 080.0 lwieland N/A N/A N/A N/A N/A N/A
1194 secinitd 0.0 00:00.18 2133 2836K 0B 0B 1194 1sleeping 0[17] 0.00000 0.00000816 3348 154 388187 5921 6401574 080.0 lwieland N/A N/A N/A N/A N/A N/A
1184 distnoted 0.0 00:00.20 2042 2864K 0B 0B 1184 1sleeping *0[1] 0.00000 0.00000816 1226 92 10245 5424 25788 8071 8742 020 0.0 lwieland N/A N/A N/A N/A N/A N/A
1146 cfprefsd 0.0 00:00.45 2147 7984K 0B 0B 1146 1sleeping 0[573] 0.00000 0.00000816 4166 86 8377 3771 28075 10972 13453 075 0.0 lwieland N/A N/A N/A N/A N/A N/A

Feb 13, 2015 4:06 PM in response to Erich Wetzel

Hello


I would like to know if their is a difference between the following clients?


1) Clienst wo have been clean installed with 10.9 or 10.10

2) Clienst wo have been upgraded through the years (e.g. 10.4 to 10.6, 10.6 to 10.9)?


If yes is their a difference between cliens wo updated directly from 10.6 to 10.9 or clients, have been updated from 10.6 to 10.7 to 10.8 to 10.9?


I suppose their must be a difference. Clients 1) & 2)


Regards

Gérard

Feb 17, 2015 10:52 AM in response to Erich Wetzel

Hello,

We moved from NFS server to OS X server. The idea was to allow spotlight indexing in mail app. First we go back to 10.6.8 server version, all newer being just for playing. Then we lost all the local keychains items as other peoples in that post. Killing secd process was not satisfactory because login again on the same account made mail apps unresponsive. We write a LogoutHook with that script:

#!/bin/bash

killall -9 secinitd

killall -9 secd

exit

The local items are right, and mail is running after logging again.

Thanks to everybody here, and good luck.


Raoul.


The client version is 10.10.2

Mar 3, 2015 11:23 AM in response to Erich Wetzel

Who following this thread are Apple Consultant Network (ACN) members? I am suggesting that we all contact ACN admin e-mail address to get them to escalate this bug which has been around since the introduction of Mavericks (10.9) and is still in the beta of Yosemite (10.10.3). They (ACN) won't do so, however, until enough ACNs that they represent contact them.

Mar 17, 2015 8:11 AM in response to Erich Wetzel

I have the " error = 122: Path had bad ownership/permissions" error, too.

But I don't find any bad permissions:


This is what I have:

ls -led /usr

drwxr-xr-x@ 11 root wheel 374 14 Mär 12:36 /usr

ls -led /usr/local

drwxr-xr-x 6 root wheel 204 17 Mär 14:29 /usr/local

ls -led /usr/local/scripts

drwxr-xr-x 3 root wheel 102 17 Mär 15:59 /usr/local/scripts

ls -le /usr/local/scripts/kill_secd.sh

-rwxr-xr-x 1 root wheel 174 17 Mär 15:59 /usr/local/scripts/kill_secd.sh


Does anyone see what I am missing?


I am on 10.10.2 Clients with network accounts on 10.10.2 Server

Clean install this weekend


Greetings

Martin

Mar 20, 2015 2:00 AM in response to jpawelchak

Hello everybody!


It is a shame that Apple only looks at iOS and forgot OS X. We need a another forum to get heard.


Some here with a good friend at a mac magazine who's not afraid about Apples lawyers?


At least this bug renders OS X Server unusable. I think about speaking to my customers (round about 35 dentists - about 200 Macs) to sign an open letter about massive quality problems and bugs with OS X. Maybe this gets its way to Tim Cook.


This is my list of horrible bugs that have to be fixed ASAP:

1. Keychain and network homes

2. SMB file sharing - problems with access rights

3. speed of file sharing

4. speed of ARD

5. ...


BTW. I never setup a Windows Server with network homes - is it possible and does it work reliable?

Mar 20, 2015 2:20 AM in response to Christoph Ewering1

Hello Christoph


Same situation here in Switzerland! I have the same envouriments as you with about 50 Ophthalmological Chirurgs. All the bugs you list we have also. It is a shame what the produce (200 new features, 300 new bugs) But I think Apple want to kill their Business Clients and only supply Barbie Computer for Dummies and Mobile Devices for idiots. I am shure in a couple of years none serious business will have OS X on their desk. 10.6.8 was the latest working OS X, all newer are useless and filled with bugs


Regards

Gérard

Mar 21, 2015 6:27 AM in response to macmartin

I want to give some feedback about the "bad ownership/permissions" issue.


The problem was not the permissions of the kill_secd.sh script but of of LaunchAgent plist file.

This file must not be writable from groups and others.

It does not even need to be executable.

When I changed permissions to 644 the script was run but it was complaining in system.log about the keys "UserName" and "GroupName".

After removing these it runs with a charm.


I added some logging to have control over whether it was run or not.


In Terminal:

touch /Users/Shared/kill_secd.log

chmod 777 /Users/Shared/kill_secd.log

In the script:

#!/bin/bash


LOG=/Users/Shared/kill_secd.log

DATE=`date`


echo $DATE - $USER: in killall_secd >> $LOG


/usr/bin/killall -9 secd

/usr/bin/killall -9 secinitd


echo "$DATE - $USER: return code: $?" >> $LOG


Greetings

Martin

Mar 21, 2015 6:50 AM in response to Gerard Dirks

The workaround builds up on what Benjamin Losch has posted on page 5 of this thread.

So he deserves the flowers.

I totally agree that apple has to fix it but if they don´t we have to help ourselves I guess.

Shame on you, Apple!

My feeling is that the bug could be fixed by adjusting the plist files of seed and secinitd but I have not the time and not quite the knowledge for further investigations.

I only noticed that there are messages in System.log about keys in the corresponding plist files which don't do anything and should be removed.

com.apple.xpc.launchd[1] (com.apple.secd): This key does not do anything: OnDemand

com.apple.xpc.launchd[1] (com.apple.secd): The ServiceIPC key is no longer respected. Please remove it.

In my opinion this is a an evidence of incapability for a company like Apple.

They can´t even implement their own changes into their own code correctly.

This might even be a ticking bomb for future bugs.

I am quite disappointed by Apple and I have been using Apple computers since 1984.

Greetings

Martin

Mar 23, 2015 3:24 AM in response to macmartin

Okay, here are my experiences with the script: it works with 10.10 !


I just did a few test so I can not tell if it works reliable - but it looks promising. :-)


I had a user that could not use Mail nor Calendar and just installing the script does not work. I had to remove the account data, rebooted the computer and configure the account data again. Than I logged in at the same client with a different user, who had trouble before - no more trouble, logged off and back in as first user and no trouble, too.


So this script looks really promising!


Just for some bug hunting: This bug happens mostly with users using different client computers over time. I have a few users that always login at the same client computer and they never got this problem.

Users that do not experience this problem and use different client computers login into computers that were running 10.8 but their "main"-computer is running 10.10 - but they never login to a computer running 10.10 (or 10.9).


So to me this looks like the problem starts when a user logs into different clients running 10.10 (or10.9?).


Maybe this helps solving this bug,

eweri


BTW. Many thanks to Benjamin Losch for the workaround

Mar 23, 2015 5:14 AM in response to Christoph Ewering1

For me the script didn't work.

I think this is because the UserName and GroupName keys are not supported (any more?)

I found this in system.log:

6714 Mar 23 11:01:53 imac1 com.apple.xpc.launchd[1] (kill_secd): The UserName key is not supported for non-System services.

6715 Mar 23 11:01:53 imac1 com.apple.xpc.launchd[1] (kill_secd): The GroupName key is not supported for non-System services.


Also I found that after logging out and in again with another user the seed process of the first user was still running.

I remind my script a little to see whats going on:

#!/bin/zsh


LOG=/Users/Shared/kill_secd.log

DATE=`date`


echo $DATE - $USER: in killall_secd >>$LOG


echo "before kill:" >>$LOG

ps Au | grep secd >> $LOG

/usr/bin/killall -9 secd

/usr/bin/killall -9 secinitd

echo "$DATE - $USER: return code: $?" >>$LOG

echo "#######################################" >>$LOG

sleep 1

echo "after kill:" >>$LOG

ps Au | grep secd >> $LOG

echo "#######################################" >>$LOG


Also in the log file I could see that "after kill" the seed process was not running.

I think this is because the script runs under the UID of the user who logs in and he is not allowed to kill processes of the user who was logged in before.


Next I tried to configure a LogOut Script with profile manger but I couldn´t get it running so I finally created a LogouHook.

This technonolgy is depreciated but TADA! It works.

A look into the log file proves that the seed process gets killed


#######################################

Mon Mar 23 12:46:47 CET 2015 - : in killall_secd

before kill:

admin 2593 0.0 0.0 2539620 4160 ?? S 12:45PM 0:00.04 /usr/libexec/secd

root 2676 0.0 0.0 2432772 476 ?? R 12:46PM 0:00.00 grep secd

root 2672 0.0 0.0 2451732 1104 ?? S 12:46PM 0:00.00 /bin/zsh /usr/local/scripts/kill_secd.sh admin

Mon Mar 23 12:46:47 CET 2015 - : return code: 0

#######################################

after kill:

root 2682 0.0 0.0 2432772 428 ?? R 12:46PM 0:00.00 grep secd

root 2672 0.0 0.0 2460948 1124 ?? S 12:46PM 0:00.01 /bin/zsh /usr/local/scripts/kill_secd.sh admin

#######################################

Mon Mar 23 12:47:13 CET 2015 - : in killall_secd

before kill:

root 2815 0.0 0.0 2424580 400 ?? R 12:47PM 0:00.00 grep secd

root 2811 0.0 0.0 2451732 1100 ?? S 12:47PM 0:00.00 /bin/zsh /usr/local/scripts/kill_secd.sh martin

martin 2779 0.0 0.0 2540692 2940 ?? S 12:47PM 0:00.03 /usr/libexec/secd

Mon Mar 23 12:47:13 CET 2015 - : return code: 0

#######################################

after kill:

root 2820 0.0 0.0 2432772 476 ?? R 12:47PM 0:00.00 grep secd

root 2811 0.0 0.0 2461972 1132 ?? S 12:47PM 0:00.01 /bin/zsh /usr/local/scripts/kill_secd.sh martin

#######################################


Creating the LogoutHook is easy:

sudo defaults write com.apple.loginwindow LogoutHook /usr/local/scripts/kill_secd.sh

This has to be done on alle clients.


I feel it would be a little more elegant to use profile manager for this, but it did´t work for me.

I set EnableMCXLoginScripts = TRUE; and MCXScriptTrust = FullTrust; in com.apple.loginwindow but the script was not run.


I would appreciate if any one could explain what I am missing.


Greetings

Martin

Mavericks Server Keychain not properly storing information network users.

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