The worst hack in the history of hacks to ever be committed.

- Joining a NT4 domain is easy. You can even tell when you join an NT4
  domain by using wbinfo -t to check the status. However, life becomes
  bad when you want to "leave" the domain. You can easily do this in
  Active Directory with net ads leave. There is no similar command for
  NT4 with net rpc. So in fact, there is no way to "leave" an NT4 domain
  except to remove the machine manually from the NT4 domain. What this
  all comes down to is that, you can turn on the service, but you can't
  turn it off because the status command will always succeed once it's joined.
  So, we must trick it to think it has left to turn it off!

Ticket: #5348
Bump up the timeout on joining NT4 domains. Use wbinfo for status check.

Ticket: #5348
Add wins for NT4 host resolution
Use DNS and write out a correct lmhosts file

Ticket: #5348
Only join NT4 domains if we aren't already joined

Ticket: #5348
Try to resolve hostname, resort to name on fail

- This allows IP addresses to be entered as the DC name for NT4 domains

Ticket: #5348
Wrongly placed the hackity hack hack. Fixed.

Ticket: #5348