Utility Diskette # 4
Version 3 Technical Highlights - Creating New Accounts Programmatically
Version 3 Technical Highlights - Securing Accounts
Version 3 Technical Highlights - Deleting Accounts
Version 3 TCL Subroutines - Creating New Accounts
Version 3 TCL Subroutines - Deleting Accounts
VERBatim - V86
VERBatim - V88
QTIPS - Securing Menus
Simple Security
Version 3 Technical Highlights - Securing Accounts
Reader's Clinic - Changed SEC for 3.0
Utility Diskette # 4
QTIPS - Menus Without an Action Bar
Playing with Scan Codes
QTIPS - Compiling Protection Code
QTIPS - Invalid Code and Command
QTIPS - Code/Command Help
Compiling 64K on a Shoestring by Blaise Wrenn (LexStat Systems Ltd)
DOS Interfacing (Part II)
Reader's Clinic - Preventing Records Being Amended
How Indexes Are Updated
A RevTechie Replies - And Miscellaneous Jottings - Mike Pope - Revelation Technologies (UK) Ltd
Caching in on the Frames Array - Mike Pope
How Indexes Are Updated
QTIPS - Unexpected/Unwanted Modification Of Record On Write
VERBatim - V65
Vroom
RTP Series - RTP32
Utility Diskette # 3 - Part I
REVMEDIA Revisted
Set_Attach_Sub and Attach images
Version 2
QTIPS - Invalid Code and Command
Reader's Clinic - Prompting for Passwords
VERBatim - V64
QTIPS - Accessing Password Protected SYSPROG
Reader's Clinic - Functions and Subroutines
Argument passing - Subroutines and Functions - Mike Pope

RevMedia FKB

DocumentV4I6A12
TitleVersion 3 Technical Highlights - Securing Accounts
KeywordsSECUREACCOUNT_SUB
SECURE
ACCOUNT
TextSecureAccount_Sub
Once the account has been created the security for the account may be
manipulated USING SecureAccount_Sub This takes four parameters as follows
MakeAccount_Sub(Action AccountName AccountRow Flag) where

Action A code for the action to be performed having the following
possible values

0 Read AccountRow and return

1 Write AccountRow and return Note that this will
automatically encrypt the passwords for you BUT field 1
of the AccountRow must be set to the name of the Account
NOT the literal "ACCOUNT"

AccountName The name of the account to work with

AccountRow The account row for updating/retrieving FROM the SysEnv table

Flag A result flag having the following possible values

1 An account name was not given

2 Valid SysEnv row but not an account

3 Account does not exist

4 Invalid action code passed


Thus to change an account password programmatically one could

* Set password to NEW in account TEST

Declare Subroutine SecureAccount_Sub Msg
Equ AccountName$ To "TEST"
Equ ReadAccount$ To 0
Equ WriteAccount$ To 1

SecureAccount_Sub(ReadAccount$ "TEST" AccRow Flag)
If Flag Then
Msg("Error " : Flag)
End Else
AccRow<1> = "TEST"
AccRow<6> = "NEW" ; * Set password to NEW
SecureAccount_Sub(WriteAccount$ "TEST" AccRow Flag)
If Flag Then Msg("Error " : Flag)
End


(Volume 4 Issue 6 Pages 9 10)
[revmedia/copyrigh.htm]

Page last modified: 08/02/03