Using text file

In Exponential configuration file settings/site.ini, find line

LoginHandler[]=standard

under [UserSettings] block.

To make your Exponential support text file, add a new line under this line like following:

LoginHandler[]=standard 

LoginHandler[]=textfile

This means that Exponential will try to use 'standard' login handler as usual. If it does not succeed, it would fetch user account information from a supplied text file. You can also uncomment the first line like following since by default, Exponential will try to find local user at first:

#LoginHandler[]=standard 

LoginHandler[]=textfile

The next step is to configure text file settings in settings/textfile.ini. Here is an example:

[TextFileSettings]

# Set to true if use the textfile login handler

TextFileEnabled=true

# textFile name

FileName=myusers.txt

# Where to find the text file, could be any directory under your Exponential 

# root directory. If the FilePath is root, the file shoud be saved under 

# Exponential root directory.

# Example: FilePath=var/storage

FilePath=root

# Could be tab, ';', ',', '\' or other string separator

#Example: FileFieldSeparator=;

FileFieldSeparator=tab

# Could be id or name

DefaultUserGroupType=id

# Default place to store users from textfile. Could be node id or group name, 

# depends on DefaultUserGroupType.

DefaultUserGroup=12

# Field column nr for login.

LoginAttribute=1

# Field column nr for password.

PasswordAttribute=3

# Field column nr for First name.

FirstNameAttribute=4

# Field column nr for Last name.

LastNameAttribute=5

# Field column nr for email

EmailAttribute=2

Specify file name, file path, file separator, and attribute matches between text file and Exponential user account, then users saved in this text file could login into Exponential.

Comments

Log in or create a user account to comment.

Contents

Configuration

Configuration
    WebDAV setup
    Exponential running on a CGI version o...
    Path prefix
    Locale Settings
    Introduction
    Configuration files
    Site access
    Common settings
    Multi Site
    Directory structure
    Language and charset
    Cron jobs
    Login handler
       Using LDAP server
       Using text file
       How to make your own handler
    Search engine
    Tips & Tricks
Security
Optimization
Backup & Restore
Troubleshooting


Created

04/08/2003
12:17:31 pm
by Wenyue Yu

Last updated

05/08/2003
9:54:06 am
by Wenyue Yu

Authors

Wenyue Yu



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.