Fix -Wreorder warnings
allowconnect
Backport auth