Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
laurentg
Engaged Sweeper
Hi,

I would want to know how to protect th maain web page by a password

Many thanks.

Laurent.
10 REPLIES 10
SJUSD_Tech
Engaged Sweeper
Good News!

Went ahead and installed Lansweeper on a Windows 2003 box and used http://www.lansweeper.com/kb/restrict.aspx coding on web.config file works like a charm!
Wondering if problem was a limitation of IIS on XP Pro? Anyways we're on board and signing up for premium. Thank you for your support
Hemoco
Lansweeper Alumni
SJUSD_Tech wrote:

Wondering if problem was a limitation of IIS on XP Pro? Anyways we're on board and signing up for premium. Thank you for your support

I've tested it on XP pro without a problem.
Anyway, glad it's solved.
Hemoco
Lansweeper Alumni
Could you post a screenshot of the IIS page where you configured integrated security (just to be sure)
Hemoco
Lansweeper Alumni
Strange that it doesn't work because this is standard dotnet code (not specific for Lansweeper)
Could you past a screenshot of the entire error page please, you should see the dotnet version at the bottom.
SJUSD_Tech
Engaged Sweeper
After adding line of code this is the result. Tried it with space and no space between ="true" defaultProvider. If we can get over this hump we're on board for premium. See a lot of potential for product



Server Error in '/lansweeper' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized element 'roleManager'.

Source Error:


Line 11: <identity impersonate="true"/>
Line 12: <authorization>
Line 13: <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
Line 14: <allow roles="sanjacinto.k12\LanSweeper"/>
Line 15: <deny users="*"/>


Source File: C:\Program Files\lansweeper\website\web.config Line: 13

New web.config;

<configuration>
<appSettings>
<add key="MM_CONNECTION_HANDLER_Lansweeper" value="sqlserver.htm"/>
<add key="MM_CONNECTION_STRING_Lansweeper" value="Persist Security Info=False;Data Source=DO-11H6XC1\SQLEXPRESS;Initial Catalog=lansweeperdb;User ID=lansweeperuser;Password=mysecretpassword0*;Connect Timeout=120"/>
<add key="MM_CONNECTION_DATABASETYPE_Lansweeper" value="SQLServer"/><add key="MM_CONNECTION_SCHEMA_Lansweeper" value=""/>
<add key="MM_CONNECTION_CATALOG_Lansweeper" value=""/>
<add key="dateformat" value="dd/MM/yyyy"/>
</appSettings>
<system.web>
<authentication mode="Windows"/>
<identity impersonate="true"/>
<authorization>
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
<allow roles="sanjacinto.k12\LanSweeper"/>
<deny users="*"/>
</authorization>
<compilation debug="false" strict="false" explicit="true">
<assemblies><add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory" validate="false"/>
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
</configuration>


Hemoco
Lansweeper Alumni
mmm, tricky... everything looks ok.

Could you try adding this in the "authorization" section.

<roleManager enabled="true"

defaultProvider="AspNetWindowsTokenRoleProvider"/>

SJUSD_Tech
Engaged Sweeper
<configuration>
<appSettings>
<add key="MM_CONNECTION_HANDLER_Lansweeper" value="sqlserver.htm"/>
<add key="MM_CONNECTION_STRING_Lansweeper" value="Persist Security Info=False;Data Source=DO-11H6XC1\SQLEXPRESS;Initial Catalog=lansweeperdb;User ID=lansweeperuser;Password=mysecretpassword0*;Connect Timeout=120"/>
<add key="MM_CONNECTION_DATABASETYPE_Lansweeper" value="SQLServer"/><add key="MM_CONNECTION_SCHEMA_Lansweeper" value=""/>
<add key="MM_CONNECTION_CATALOG_Lansweeper" value=""/>
<add key="dateformat" value="dd/MM/yyyy"/>
</appSettings>
<system.web>
<authentication mode="Windows"/>
<identity impersonate="true"/>
<authorization>
<allow roles="sanjacinto.k12\LanSweeper"/>
<deny users="*"/>
</authorization>
<compilation debug="false" strict="false" explicit="true">
<assemblies><add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory" validate="false"/>
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
</configuration>




U:\>gpresult

Microsoft (R) Windows (R) XP Operating System Group Policy Result tool v2.0
Copyright (C) Microsoft Corp. 1981-2001

Created On 4/6/2009 at 9:41:19 AM


RSOP results for SANJACINTO.K12\XXXXXXX on DO-11H6XC1 : Logging Mode
---------------------------------------------------------------------

OS Type: Microsoft Windows XP Professional
OS Configuration: Member Workstation
OS Version: 5.1.2600
Domain Name: SANJACINTO.K12
Domain Type: Windows 2000
Site Name: DistrictOffice
Roaming Profile:
Local Profile: C:\Documents and Settings\XXXXXX
Connected over a slow link?: No


COMPUTER SETTINGS
------------------
CN=DO-11H6XC1,OU=DO_COMPUTERS,OU=_Computers,DC=sanjacinto,DC=k12,DC=local
Last time Group Policy was applied: 4/6/2009 at 9:16:08 AM
Group Policy was applied from: ADS1.sanjacinto.k12.local
Group Policy slow link threshold: 500 kbps

Applied Group Policy Objects
-----------------------------
SJUSD Default
Default Domain Policy
Computer Default
do-wsus

The following GPOs were not applied because they were filtered out
-------------------------------------------------------------------
Local Group Policy
Filtering: Not Applied (Empty)

The computer is a part of the following security groups:
--------------------------------------------------------
BUILTIN\Administrators
Everyone
BUILTIN\Users
NT AUTHORITY\NETWORK
NT AUTHORITY\Authenticated Users
DO-11H6XC1$
Domain Computers


USER SETTINGS
--------------
CN=XXXXXX\, XXXXX,OU=DO_USERS,OU=_Staff Accounts,DC=sanjacinto,DC=k12,DC=loc
al
Last time Group Policy was applied: 4/6/2009 at 9:03:09 AM
Group Policy was applied from: ADS1.sanjacinto.k12.local
Group Policy slow link threshold: 500 kbps

Applied Group Policy Objects
-----------------------------
SJUSD Default
Default Domain Policy
User Default

The following GPOs were not applied because they were filtered out
-------------------------------------------------------------------
Local Group Policy
Filtering: Not Applied (Empty)

The user is a part of the following security groups:
----------------------------------------------------
Domain Admins
Everyone
Debugger Users
BUILTIN\Administrators
BUILTIN\Users
BUILTIN\Power Users
NT AUTHORITY\INTERACTIVE
NT AUTHORITY\Authenticated Users
LOCAL
Aeries_Terminal_Users
Internet Access (Career Search Sites)
Internet Access (Software Downloads)
Domain Users
FACTSplus
Internet Access (Webmail)
Internet Access
VBrick Admins
Technology
LanSweeper
Technology-1
Star
Hemoco
Lansweeper Alumni
Could you post you web.config file please and an output of "gpresult"
Hemoco
Lansweeper Alumni
See here : http://www.lansweeper.com/kb/restrict.aspx

Archive

This board contains archived posts from the retired Lansweeper Forum and Insiders Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now