InternalLoginModule
Use the InternalLoginModule to authenticate against a user repository defined as a file on the file system. This is the default authentication mechanism for all webMethods suite products.
In case of successful authentication, the InternalLoginModule provides a user repository manager. It also creates a SagUserPrincipal object, and, optionally, a set of SagGroupPrincipal objects.
Parameter | Description |
domain | Optional. String. Domain name to use for authentication. Applicable if the domain usage is activated for the InternalLoginModule. |
internal Repository | Path to the internal user repository file. |
group RepositoryPath | Optional. Path to the internal group repository file. |
create_group_ principal | Optional. Whether to create group principals based on he information contained in groupRepositoryPath and attach the principals to the subject. Valid values are true or false (default). |
The user-defined repository files must comply with this format:
*
* Default test repository for INTERNAL based authentication
*
* Copyright (c) 2001 - 2013 Software AG, Darmstadt, Germany and/or Software AG USA,
* Inc., Reston, VA, United States of America, and/or their licensors.
* All rights reserved.
version:3.0
*
*
user:username:$6a$kMpE+PvDv83zjcQe6fk7rWEiK80V73qoy9OZzr
0J4p4W3K1g9x1w2zEadkEjL2OLm1cozDfKJD7ZJckE3AysKw==
*
The group repository files must comply with this format:
*
*
* Default test repository for INTERNAL based authentication
*
* Copyright (c) 2001 - 2013 Software AG, Darmstadt, Germany and/or Software AG USA,
* Inc., Reston, VA, United States of America, and/or their licensors.
* All rights reserved.
version:3.0
*
*
admin:1:administrator,user2
testadmin:2:user2
*
The following sample outlines the INTERNAL mode of the InternalLoginModule and the corresponding configuration included in a login context of a JAAS configuration file.
LoginINTERNAL {
com.softwareag.security.jaas.login.internal.InternalLoginModule required domain=
logCallback=true
create_group_principal=true
internalRepository="/tmp/myrepo/internalUserRepo"
groupRepositoryPath="/tmp/myrepo/internalGroupRepo";
};