Introduction
The FTP server currently supports the following membership providers:
AnonymousMembershipProvider
is the only portable membership provider in the projectPamMembershipProvider
requres .NET Core 3.0 and a system with an installed libpam.so.0
How it works
The FTP server queries all services implementing the IMembershipProvider
interface and tries to authenticate the given login/password against all registered providers. The first provider that was able to authenticate the user is stored in the FTP connection data.
Warning
The order of the registration of the membership providers is important.
Anonymous authentication
The anonymous authentiation is implemented by the AnonymousMembershipProvider
class and can be configured by adding a service for an IAnonymousPasswordValidator
.
Default anonymous password validators
- NoValidation: Take the password without validation
- NoTopLevelDomainValidation: The E-Mail-Address doesn't need to have a TLD
- SimpleMailAddressValidation: Simple E-Mail validation
- BlockAnonymousValidation: Block anonymous logins
The SimpleMailAddressValidation
is the default password validator.