From c9fb8b9f199022c2fd18c1c13788d7564b02265f Mon Sep 17 00:00:00 2001 From: Danny Mayer Date: Tue, 6 Aug 2002 03:35:30 +0000 Subject: [PATCH] Added UF_SHIFT flag as NT requires it to add an account. W2K and WXP do not require it. --- bin/win32/BINDInstall/AccountInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/win32/BINDInstall/AccountInfo.cpp b/bin/win32/BINDInstall/AccountInfo.cpp index e5e0c432c8..52e6482822 100644 --- a/bin/win32/BINDInstall/AccountInfo.cpp +++ b/bin/win32/BINDInstall/AccountInfo.cpp @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: AccountInfo.cpp,v 1.4 2001/10/05 17:08:09 gson Exp $ */ +/* $Id: AccountInfo.cpp,v 1.5 2002/08/06 03:35:30 mayer Exp $ */ #ifndef UNICODE #define UNICODE @@ -202,7 +202,8 @@ CreateServiceAccount(char *name, char *password) { ui.usri1_priv = USER_PRIV_USER; ui.usri1_home_dir = NULL; ui.usri1_comment = L"ISC BIND Service Account"; - ui.usri1_flags = UF_PASSWD_CANT_CHANGE | UF_DONT_EXPIRE_PASSWD; + ui.usri1_flags = UF_PASSWD_CANT_CHANGE | UF_DONT_EXPIRE_PASSWD | + UF_SCRIPT; ui.usri1_script_path = NULL; /* * Call the NetUserAdd function, specifying level 1.