[Samba] Joining ADS Domain from Solaris9

Christoph Kaegi kgc at zhwin.ch
Mon Mar 26 09:20:59 GMT 2007

To everybody who tries do join an ADS Domain from a Samba 3.0.25pre2
server on Solaris 9:

The Solaris9 getpass(3C) takes passwords up to PASS_MAX length,
which is only 8. That means if you try something like

# net ads join -U admin at MY.REALM

and the admin password is more than 8 characters in length,
you'll get "Preauthentication failed".

The solution to this is to use getpassphrase(3C), which according
to the manpage "returns a string of up to 256 characters in length"
but otherwise is identical to getpass(3C).
(line 254 of utils/net_ads.c)

Maybe this could be cared for by the configure scripts?

Thank you, Samba Team, for your sustained good work!


Christoph Kaegi                                           kgc at zhwin.ch

More information about the samba mailing list