I have been trying to find an answer to this online, and the closest I have come is this question: Very long login times in Mac OS X. It does, however, not replicate my issue exactly.
My Mac (OS X, El Capitan, 10.11.5) spends a very long time (approximately a minute) whenever I try to log in. This is a fairly recent development I have noticed over the past ~month -- before that, log in times were of the order of a second. As a research student who has to run in between different rooms with my laptop all the time, having to wait for it to log on for so long each time I close down the screen gets really frustrating. I could, of course, try to change the settings for the laptop to not go to sleep each time the screen closes, but that does not address the issue.
I have noticed that if I turn the WiFi off, the log in process is far shorter; I am logged in within one or two seconds after typing in my password, just like it always used to be before. Again, I could, of course, turn off the WiFi each time my computer will be going to sleep, but that, again, does not address the issue. I am in need of using WiFi, and dealing with turning it on and off all the time is extremely annoying.
Based on the research I have tried to do on this, it sounds like this has to do with some active directory settings, but this is something I am unfamiliar with. Can anyone tell me whether I am on the right track, or maybe tell me what my solution to getting constantly short log in times is?