From: Günther Deschner Date: Tue, 22 Feb 2011 18:45:24 +0000 (+0100) Subject: s3-includes: move some chgpasswd related defines to the locations where they are... X-Git-Tag: tevent-0.9.11~358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28b4b059386b4369d6ad85c82bbc150aa81609c4;p=thirdparty%2Fsamba.git s3-includes: move some chgpasswd related defines to the locations where they are used. Guenther --- diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index c61a10ba1b0..d3b9b926018 100644 --- a/source3/auth/pass_check.c +++ b/source3/auth/pass_check.c @@ -25,6 +25,12 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_AUTH +/* what is the longest significant password available on your system? + Knowing this speeds up password searches a lot */ +#ifndef PASSWORD_LENGTH +#define PASSWORD_LENGTH 8 +#endif + /* these are kept here to keep the string_combinations function simple */ static char *ths_user; diff --git a/source3/include/includes.h b/source3/include/includes.h index 82760538468..348dda149e2 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -738,18 +738,6 @@ enum flush_reason_enum { #define OSF1_ENH_SEC 1 #endif -#ifndef ALLOW_CHANGE_PASSWORD -#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID)) -#define ALLOW_CHANGE_PASSWORD 1 -#endif -#endif - -/* what is the longest significant password available on your system? - Knowing this speeds up password searches a lot */ -#ifndef PASSWORD_LENGTH -#define PASSWORD_LENGTH 8 -#endif - #if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID) #define ULTRIX_AUTH 1 #endif diff --git a/source3/rpc_server/samr/srv_samr_chgpasswd.c b/source3/rpc_server/samr/srv_samr_chgpasswd.c index 85a63a56308..8a682262dfd 100644 --- a/source3/rpc_server/samr/srv_samr_chgpasswd.c +++ b/source3/rpc_server/samr/srv_samr_chgpasswd.c @@ -50,6 +50,12 @@ #include "../lib/crypto/arcfour.h" #include "rpc_server/samr/srv_samr_util.h" +#ifndef ALLOW_CHANGE_PASSWORD +#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID)) +#define ALLOW_CHANGE_PASSWORD 1 +#endif +#endif + #if ALLOW_CHANGE_PASSWORD static int findpty(char **slave)