3.32.12. AcceptIfMissing Previous topic Parent topic Child topic Next topic

Normally, if a user is not present in the user database, they will always be rejected. If this optional parameter is set, and a user is not in the database they will be unconditionally accepted. If they are in the database, they will be accepted if and only if their check items pass in the normal way.
This option is usually only useful in conjunction with a following AuthBy that will actually check all passwords. It can therefore be used to impose additional checks on a subset of your user population.
Note
When you specify AcceptIfMissing, all reply attributes set for this AuthBy (such as DefaultReply, AddToReply, AddToReplyIfNotExist, etc.) will be applied.
Note
This does not automatically accept DEFAULT users.
# Apply some extra checks for those users in the users file, 
# then authenticate them with a SQL DB.
<Handler>
      AuthByPolicy ContinueWhileAccept
      <AuthBy FILE>
            AcceptIfMissing
            Filename %D/users
      </AuthBy>
      <AuthBy SQL>
            # whatever
      </AuthBy>
</Handler>