Config2_DatabaseAuthenticator

Database authentication configuration. Allows CompleteFTP users to authenticate against a database.

Instances of this class are obtained from:

Properties

PropertyTypeDescription
connectionString String

Database connection string.

enabled Boolean

Whether this authenticator is enabled.

isPasswordHashed Boolean

Whether the password stored in the database is hashed.

logInAsUser String

User to log in as when this authenticator succeeds.

providerName String

Database provider name (e.

query String

SQL query to authenticate users.

Property Details

connectionString :String

Description:
  • Database connection string.

Database connection string.

Type:
  • String

enabled :Boolean

Description:
  • Whether this authenticator is enabled.

Whether this authenticator is enabled.

Type:
  • Boolean

isPasswordHashed :Boolean

Description:
  • Whether the password stored in the database is hashed. If true, the password from the database is compared against a hash of the supplied password.

Whether the password stored in the database is hashed. If true, the password from the database is compared against a hash of the supplied password.

Type:
  • Boolean

logInAsUser :String

Description:
  • User to log in as when this authenticator succeeds. If empty, the authenticated user's own account is used.

User to log in as when this authenticator succeeds. If empty, the authenticated user's own account is used.

Type:
  • String

providerName :String

Description:
  • Database provider name (e.g., 'System.Data.SqlClient', 'MySql.Data.MySqlClient').

Database provider name (e.g., 'System.Data.SqlClient', 'MySql.Data.MySqlClient').

Type:
  • String

query :String

Description:
  • SQL query to authenticate users. The query should return a row if authentication succeeds. Use @username and @password placeholders for the user's credentials.

SQL query to authenticate users. The query should return a row if authentication succeeds. Use @username and @password placeholders for the user's credentials.

Type:
  • String