-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
We were assuming that the ad_hostname value would match the
sAMAccountName attribute, but in practice this was almost never the
case on a properly-configured system.
Microsoft's convention is that the sAMAccountName is always the
portion of the FQDN before the first dot, so this patch makes that
same assumption.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlQi3sgACgkQeiVVYja6o6OJDwCfRgV66Mp/oLWfNXXamXMC7S1i
KYwAoK4H6eogurMto2oUVM6V9pVDbZ0C
=1Nj3
-----END PGP SIGNATURE-----