For offline login, it is required to create a mobile account for a domain user. To create mobile account for a domain user, perform following steps:
Login to domain user.
Click the Apple icon in the upper left corner and select System Preferences.
Click Users & Group.
Click Click the lock to make changes.
Select preferred domain user.
Select Create Mobile Account for the User.
Click Create.
The system gets logged off automatically.