summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-22 19:45:24 +0100
committerGünther Deschner <gd@samba.org>2011-02-22 21:52:19 +0100
commit28b4b059386b4369d6ad85c82bbc150aa81609c4 (patch)
treec77bef3643b73aa91f3d15d8df62f92982ddfff0 /source3/rpc_server
parent823f8b90305e2fe4ef2c391aee8a6d508835d353 (diff)
downloadsamba-28b4b059386b4369d6ad85c82bbc150aa81609c4.tar.gz
samba-28b4b059386b4369d6ad85c82bbc150aa81609c4.tar.bz2
samba-28b4b059386b4369d6ad85c82bbc150aa81609c4.zip
s3-includes: move some chgpasswd related defines to the locations where they are used.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/samr/srv_samr_chgpasswd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/samr/srv_samr_chgpasswd.c b/source3/rpc_server/samr/srv_samr_chgpasswd.c
index 85a63a5630..8a682262df 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)