Opedirectoryd taking >90% of CPU + thousands of messages in console per second Some time ago our company laptops started to overheat. At first it was nothing serious but after a while almost all our macbooks started to act more like ovens than computers. The issue seems to lie in Active directory we use for both our PCs and MACs. 
Logs are getting about 4000 messages per second. Every time its the same thing.

opendirectoryd: assertion failed: 14E46: AppleLdap + 24580 {4B807ACD-E59B-3635-99BA-B08122AA513C}: 0X0


Even if I disable messaging for the process the opendirectoryd still takes more than 90% of CPU.
If I at least knew what the error message means than maybe I could do something about it. 
The issue is even worse on El Capitan in fact it is so bad that machines with it won't even boot properly.

If anyone knows how to fix this or at least knows what the message means I would be most grateful.
I've got an answer to this problem for people coming here with this issue who aren't using Active Directory (meaning that it can't be the cause).

For me the problem was my Dropbox was struggling with broken symlinks inside my Dropbox folder. I had about 20-25 of these broken symlinks. You can see if this is the problem for you by whether the problem goes away when you quit Dropbox (and wait a bit for the Activity Monitor to calm down).

You can see the location of these broken symlinks with:

cd ~/Dropbox
find . -type l ! -exec test -e {} \; -print


If you want to then delete these (they're broken after all, just get rid of them), you can run this:

find . -type l ! -exec test -e {} \; -print | xargs rm


I quit my Dropbox program before doing this. After turning it back on, the problem was gone!

Note: I ran this with gfind instead of find, which is the GNU version of find that you can get by doing brew install findutils. It should work perfectly fine with regular find though.