Fix services migration for old AD/LDAP/NIS/NT4

Ticket:	#4489
(cherry picked from commit 5e45b174e0488af3a48ee6af5f120bdf74433a20)