Code 87 threads. I glanced through these, most are configuration issues - people not re-assigning settings to the individual hosts.
https://forums.fogproject.org/topic/3846/domain-join-not-working-since-moving-to-v1-2-0-error-87/4
https://forums.fogproject.org/topic/8341/the-parameter-is-incorrect-code-87
https://forums.fogproject.org/topic/1937/help-with-domain-joing
https://forums.fogproject.org/topic/5812/samba-domain-integration/61
https://forums.fogproject.org/topic/6879/i-can-t-join-machines-on-domain
https://forums.fogproject.org/topic/7126/hosts-unable-to-join-domain
https://forums.fogproject.org/topic/3140/domain-join-is-not-working-fog-server-1-1-1