2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Added UF_SHIFT flag as NT requires it to add an account. W2K and WXP do not require it.

This commit is contained in:
Danny Mayer 2002-08-06 03:35:30 +00:00
parent 8c17b6f1e4
commit c9fb8b9f19

View File

@ -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.