#1 2012-12-20 11:47:59

corchi72
Member
Registered: 2010-12-10
Posts: 232

Server authentication if server not running as administrator

Hi,
if I run the server service as a local user (not administrator) is there a technical reason for which a client does not connect to the server?
I am absolutely sure that there is no firewall running on the server itself.

Does it have to have specific permissions on the filesystem or on the Windows registry?

The reason for my request is because I cannot run the server as a local administrator  due to security issues.

Offline

#2 2012-12-20 18:29:06

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,544
Website

Re: Server authentication if server not running as administrator

If you run HTTP API server you need to register ( call THttpApiServer.AddUrl) first under administrator permission.

Offline

#3 2012-12-21 08:53:18

corchi72
Member
Registered: 2010-12-10
Posts: 232

Re: Server authentication if server not running as administrator

ok this is the code:

program Project04Server;

uses
  Forms,
  SynCrtSock,
  SysUtils,
  Unit2 in 'Unit2.pas' {Form1},
  SampleData in '..\01 - In Memory ORM\SampleData.pas';


{$R *.res}
var delete: boolean;
begin
  delete := (ParamCount=1) and SameText(ParamStr(1),'/DELETE');
  // parameters below must match class function
  //  TTestClientServerAccess.RegisterAddUrl in mORMotHttpServer.pas:
 THttpApiServer.AddUrlAuthorize('root','888',false,'+',delete);

  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

Offline

#4 2012-12-21 11:28:46

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Server authentication if server not running as administrator

Only http.sys based server expects to be run at least once with Administrator rights.
See the doc about that.

Other servers (in-process, GDI messages, named pipes) does not need any specific rights, only R/W file access to the database.
The framework never write anything to the registry (some internal APIs like THttpApiServer may use the registry).

Offline

#5 2012-12-21 15:07:59

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,544
Website

Re: Server authentication if server not running as administrator

Additionally I found good GUI util for manage http.sys - see http://httpsysconfig.codeplex.com/.

Offline

#6 2012-12-21 15:36:02

corchi72
Member
Registered: 2010-12-10
Posts: 232

Re: Server authentication if server not running as administrator

very well, thanks

Offline

Board footer

Powered by FluxBB