Class wwUserSecurity

The wwUserSecurity class provides a base interface for implementing FoxPro table and Windows Auth user authentication. The class includes user retrieval and non-visual management features like adding deleting etc.

Custom
  wwUserSecurity

Class Members

MemberDescription
Authenticate Tries to authenticate a user. If the user logon is successful the user record is set to the selected user. If it fails the method returns .F. and returns a blank User record.
o.Authenticate(lcUsername, lcPassword)
AuthenticateNt Authenticates username and password against Windows System accounts.
o.AuthenticateNt(lcUsername,lcPassword)
Close Closes the user file.
o.Close()
CreateTable Creates the User table if it doesn't exist. Called by the Open method.
o.CreateTable(lcFileName)
DeleteUser Deletes the currently selected user.
o.DeleteUser()
GetUser Retrieves a user into the oUser member based on a PK or Username and Password lookup.
o.GetUser(lcPK, lcPassword)
GetUserByUsername Like the GetUser() method but retrieves a user by username rather than by PK.
o.GetUserByUsername(lcUsername)
NewUser Creates a new user record and stores it in the oUser member data. You need to fill the data and then call SaveUser() to commit the data to disk.
o.NewUser()
Open Opens the user file and/or selects it into cAlias. If the table is already open this method only selects the Alias.
o.Open(lcFileName, llReOpen, llSilent)
Reindex Reindexes and compacts the user table.
o.Reindex()
SaveUser Saves the currently active user to file. Saves the oUser member to the database.
o.SaveUser()
calias Alias of the user file.
cdomain Domain name when using NT Authentication for request.
cerrormsg Holds error messages when lError = .T. or when any methods return False.
cfilename Filename for the user file.
lcasesensitive Determines wheter usernames and passwords are case sensitive. The default is .F.
lerror Error Flag. True when an error occurs during any operation. Set but not required as most methods return True or False.
ndefaultaccounttimeout The default value when the account should time out in days. Leave this value at 0 to force the account to never timeout.
nminpasswordlength Minimum length of the password.
oUser The actual member that holds user data. Filled by the GetUser and NewUser methods.

Requirements

Assembly: wwUserSecurity.prg


  Last Updated: 9/11/2007 | © West Wind Technologies, 2008