1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer/*
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2001, 2004, 2007, 2016 Internet Systems Consortium, Inc. ("ISC")
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer *
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater/* $Id: AccountInfo.h,v 1.6 2007/06/19 23:47:07 tbox Exp $ */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer
290e1b94e4d4a330acb9e45c15cc4a6369065a22Danny Mayer
290e1b94e4d4a330acb9e45c15cc4a6369065a22Danny Mayer#define RTN_OK 0
290e1b94e4d4a330acb9e45c15cc4a6369065a22Danny Mayer#define RTN_NOACCOUNT 1
290e1b94e4d4a330acb9e45c15cc4a6369065a22Danny Mayer#define RTN_NOMEMORY 2
290e1b94e4d4a330acb9e45c15cc4a6369065a22Danny Mayer#define RTN_ERROR 10
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer#define SE_SERVICE_LOGON_PRIV L"SeServiceLogonRight"
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer/*
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer * This routine retrieves the list of all Privileges associated with
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer * a given account as well as the groups to which it beongs
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayerint
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny MayerGetAccountPrivileges(
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer char *name, /* Name of Account */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer wchar_t **PrivList, /* List of Privileges returned */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer unsigned int *PrivCount, /* Count of Privileges returned */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer char **Groups, /* List of Groups to which account belongs */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer unsigned int *totalGroups, /* Count of Groups returned */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer int maxGroups /* Maximum number of Groups to return */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer );
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer/*
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer * This routine creates an account with the given name which has just
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer * the logon service privilege and no membership of any groups,
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer * i.e. it's part of the None group.
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny Mayer */
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny MayerBOOL
1ebeb6bbf3c25a710ed7b6fbd2608f3850fc7f8fDanny MayerCreateServiceAccount(char *name, char *password);