LDAP sync user cannot be added to default channel

Thanks for shared.
So when you are using some code like addUserToDefaultChannels you can login RocketChat via LDAP user right now?