James,

As an additional point to Greg's suggestion you could also encode the names in 
the text/ini file using base64.  I have done this in the past and it works 
well, secure against casual users but not against a determined hacker! If your 
interested in this then let me know and I'll supply some more info.
Regards,
Colin
--------------------------
Colin Henderson
GI Consultant
PPSS - Ordnance Survey
07771972307


-----Original Message-----
From: Driver, Greg 9434 <[EMAIL PROTECTED]>
To: 'James Stott' <[EMAIL PROTECTED]>; [email protected] 
<[email protected]>
Sent: Tue Jul 12 11:52:56 2005
Subject: RE: MI-L Restricting User Access

James,

One way to do it would be to have a text or '.ini' file that listed all the
user names allowed to run the mbx.  When your MapBasic program is run it
could retrieve the current user name (I've got the code to do this if you
need it) and then check this against those in the text/.ini file and allow
access if it's in the list.   It's not totally fool-proof as a smart user
could edit the text/.ini file to give themselves access.  As an alternative
you could hard-code the user names in the MapBasic program, but that means
having to re-compile every time you wanted to alter the usernames list.

You might also be able to restrict access to the mbx if you located it on a
server and then set the permissions for the folder.

Greg Driver

-----Original Message-----
From: James Stott [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2005 11:27
To: [email protected]
Subject: MI-L Restricting User Access


All,

I was wondering whether it is possible to restrict the users that can run a
mapbasic application. I am looking to only let users that have been
specified use the program.

Is this at all possible?

Regards

James

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17099


Internet communications are not secure and therefore Surrey Police does not
accept legal responsibility for the contents of this message.  This email
and any attachments may be confidential. They may contain privileged
information and are intended for the named addressee (s) only. They must not
be distributed without our consent. If you are not the intended recipient,
please notify us immediately and delete the message and any attachments from
your computer, do not disclose, distribute, or retain this email or any part
of it. Unless expressly stated, opinions in this email are those of the
individual sender, and not of Surrey Police. We believe but do not warrant
that this e-mail and any attachments are virus free. You must therefore take
full responsibility for virus checking. Surrey Police reserves the right to
monitor all email communications through their networks.




This email and any attachments have been virus checked upon receipt at Ordnance 
Survey and are free of all known viruses.



This email is only intended for the person to whom it is addressed and may 
contain confidential information. If you have received this email in error, 
please notify the sender and delete this email which must not be copied, 
distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the writer 
and do not represent the official view of Ordnance Survey. Nor can any contract 
be formed on Ordnance Survey's behalf via email. We reserve the right to 
monitor emails and attachments without prior notice.

Thank you for your cooperation.

Ordnance Survey
Romsey Road
Southampton SO16 4GU
Tel: 023 8079 2000
http://www.ordnancesurvey.co.uk

Reply via email to