s3-winbind: Add functions for domain online/offline handling.