First I’m going to say I would no longer advise doing this. After spending a couple of hours on this I can get somethings to work and somethings not. The HOME environment variable does not seem to stick, I don’t know how to set it and keep it set forever. I can set it, but sure enough, it comes back to the original, so I’m not sure how to persist it.
I’d implore you instead to correct your LDAP. Indeed I don’t know how far we’ll get on the Github issue I’ve created given the pervasive nature of this variable.
Here are the changes you can make in these commits. I would first back up every file that you’re going to modify. Note this is on my fork, not the official repo.
I would copy the rb files from the Github branch source to the destinations above. Then manually add the config entry to the yml (you don’t need the comments).
Again, this is going to fail a whole bunch of areas where the home is just not set correctly. Sometimes it may just be a pain to navigate back to somewhere else or sometimes it may cause failure, but in either case your customers are not going to be very happy.