From: SMTP%"Mamadou.Cisse@aec.cz" 16-SEP-1997 16:54:59.52 To: Brian Hackworth CC: Subj: Re: "Log on as a service" API Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Tue, 16 Sep 1997 16:52:30 -0400 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by bort.mv.net (8.8.5/mem-951016) with SMTP id IAA00957 for ; Tue, 16 Sep 1997 08:46:50 -0400 (EDT) Received: by gw.atria.com id Tue, 16 Sep 1997 02:24:56 -0400 Received: from bren.aec.cz by gw.atria.com id Tue, 16 Sep 1997 02:24:39 -0400 Received: (from cisse@localhost) by bren.aec.cz (8.6.11/8.6.9) id IAA11348; Tue, 16 Sep 1997 08:24:06 +0200 Date: Tue, 16 Sep 1997 08:24:06 +0200 (MET DST) From: Mamadou Cisse To: Brian Hackworth cc: ntdev@atria.com Subject: Re: "Log on as a service" API In-Reply-To: <199709152111.RAA23018@commtg3.rtp.dg.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ntdev@atria.com Precedence: bulk On Mon, 15 Sep 1997, Brian Hackworth wrote: > What's the #define to use to set the "Log on as a service" right > for a user programmatically? I can't find it among the other SE_* > values in . It seems that people at Microsoft forgot to define the following rigths: "SeInteractiveLogonRight" "SeNetworkLogonRight" "SeBatchLogonRight" "SeServiceLogonRight". I defined them in one of my header files as: #define SE_INTERACTIVE_LOGON_NAME TEXT("SeInteractiveLogonRight") #define SE_NETWORK_LOGON_NAME TEXT("SeNetworkLogonRight") #define SE_BATCH_LOGON_NAME TEXT("SeBatchLogonRight") #define SE_SERVICE_LOGON_NAME TEXT("SeServiceLogonRight") and use them with LSA policy API's to set/revoke rights for users and groups and it does function. Peace, __________________ CISSE Mamadou, Ing. Sofware Engineer AEC Ltd. BAYEROVA 30, 60200 BRNO Czech Republic phone: ~~~~~ +420-5-41244471 office. +420-5-41220852 home. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]