The Sybase implementation uses the same controlFlag values and definitions as those defined in the JAAS specification.
If you stack multiple providers, you must set the controlFlag attribute for each enabled provider.
Say you list providers in the following order and set the corresponding controlFlag attributes as follows:
This setup creates two tiers of authentication: the first tier is token-based, the second is login credential-based. A user must provide a valid RADIUS token to pass the first tier requirement. Next the user must enter a valid user name and password before passing both authentication challenges. There are two options: initially, the operating system attempts to validate the user name and password If that fails, LDAP attempts to validate the user.
In all cases, at least one LoginModule must succeed for authentication to be successful.