Skip migrations that require LDAP if no LDAP.

Change-Id: I874e7555ac3ca670a94eb21f2c0ca05ef616b755