Improved Active Directory synchronization and auto-registration