Hi,
the attached patch is related to GPO offline functionality, please check
the commit message.
To reproduce, set up an AD client with GPOs, make sure credential
caching is enabled. Log in as a permitted user to cache the credentials.
Go offline, in my case by pointing resolv.conf to a DNS server that
doesn't know the AD domain. Attempt to log in.