Ensure that the data file is named datafile.txt, which is the name used in the sample code, and that it is included in the Java archive that you create.
Use the following as the contents of the flat file that is used as the custom user directory to support the custom authentication module implemented by Sample Code 2 (see Sample Code 2):
xyz:password:admin test1:password:test1@LDAP1 test1:password:test1 test1@LDAP1:password:test1@LDAP1 test1@1:password:test1 user1:Password2:user1@NTLM1 user1_1:Password2:user1 user3:Password3:user3 DS_User1:Password123:DS_User1@MSAD1 DS_User1:Password123:DS_User1 DS_User1@1:Password123:DS_User1
Use the following as the contents of the flat file that is used as the custom user directory if you plan to return user name in username@providername format:
xyz:password:admin test1:password:test1 test1@1:password:test1 user1_1:Password2:user1 user3:Password3:user3 DS1_1G100U_User61_1:Password123:DS1_1G100U_User61 DS1_1G100U_User61_1@1:Password123:DS1_1G100U_User61 TUser:password:TUser