that patch is included in FreeBSD's Ports collection, but I guess it would be better to have in main source tree for two reasons: 1) few people do not not know how to install soft on FreeBSD and install directly from sources 2) port's maintainers will not have to patch source in subsequent releases --- include/local.h.orig Tue Dec 21 16:25:36 2004 +++ include/local.h Tue Dec 21 16:30:22 2004 @@ -170,10 +170,19 @@ * Default passwd chat script. */ -#define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*" +#if defined(__FreeBSD__) + +#define DEFAULT_PASSWD_CHAT "*\\n*ew\\spassword* %n\\n *ew\\spassword* %n\\n *updating\\sthe\\sdatabase...\\npasswd:\\sdone\\n" +/* Minimum length of allowed password when changing UNIX password. */ +#define MINPASSWDLENGTH 6 +#else + +#define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*" /* Minimum length of allowed password when changing UNIX password. */ #define MINPASSWDLENGTH 5 + +#endif /*!__FreeBSD__ */ /* maximum ID number used for session control. This cannot be larger than 62*62 for the current code */
I'm not including this for a couple of reasons. (a) it will bit rot as things change on FreeBSD and we don't know about them. (b) a better solution is to define the password chat in smb.conf If people decide to install from source rather than using a maintainer's package, then they should be willing to address the differences themselves. Moving on....