-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3011] Fix max enrollment checking logic
The max enrollment configuration setting is not treated correctly. The following values with associated semantics should be implemented. -1: Infinite number of enrollments Allow identities to set any value (including infinite). A value of 0 says to match the servers' value. 0: Enrollments disabled Both register and enroll requests return errors. >0: Number of enrollments allowed A user may not be registered with more than this many max enrollments. A one-time password is a max enrollments of 1. In order to adequately test this in different packages and make test code reusable, test code was moved to lib/test_util.go. Test code was changed to use these common utility methods. See [FAB-3011] for more info. Change-Id: I672177eb2839ab304395cccf38aae2dfdaa669fa Signed-off-by: Saad Karim <skarim@us.ibm.com> Signed-off-by: Keith Smith <bksmith@us.ibm.com>
- Loading branch information
Saad Karim
authored and
Keith Smith
committed
May 31, 2017
1 parent
2c45212
commit 120b139
Showing
23 changed files
with
490 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,6 +161,7 @@ id: | |
type: | ||
maxenrollments: | ||
affiliation: | ||
maxenrollments: -1 | ||
attributes: | ||
- name: | ||
value: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.