-
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-3416 ] Enhance fvt image LDAP attributes
In anticipation of [FAB-3416] Map LDAP attrs to fabric CA attrs the ldap server's DIT is updated with user attributes that can be mapped to standard fabric-ca attibutes. Some convenience cmd-line utils will be added to the fabric_ca_utils file, including the ability to list Ldap users and groups, all members of a specific group, add users, delete users, and modify user attributes. Change-Id: I67e21d85a65628a09b7d0890e86a2086c9a48f61 Signed-off-by: Allen Bailey <eabailey@us.ibm.com> (cherry picked from commit 51a86100bcea4430b0f3bb7bbd1e4d2a7ab9c362)
- Loading branch information
Showing
11 changed files
with
1,088 additions
and
60 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,129 @@ | ||
dn: cn=pkiAdmin,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: cn=pkiAdmin | ||
description: All users with revocation authorization | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=devadmin,ou=dev,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=tstadmin,ou=tst,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Revoker,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Revoker | ||
description: All users with revocation authorization | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Gencrl,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Gencrl | ||
description: All users with gencrl authorization | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Ca,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Ca | ||
description: All users with intermediate CA authorization | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=intermediateCa1,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa3,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa4,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa5,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa6,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa7,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa8,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa9,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa10,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa11,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa12,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa13,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa14,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa15,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=intermediateCa16,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Client,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Client | ||
description: All hyperledeger fabric clients | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=devadmin,ou=dev,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=tstadmin,ou=tst,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=nonrevoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=nonrevoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=notadmin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=expiryUser,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser3,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Peer,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Peer | ||
description: All hyperledeger fabric peers | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=User,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: User | ||
description: All hyperledeger fabric users | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=nonrevoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=nonrevoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=notadmin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=expiryUser,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser3,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser4,ou=users,ou=tst,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser5,ou=users,ou=tst,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser6,ou=users,ou=tst,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=App,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: App | ||
description: All hyperledeger fabric apps | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=nonrevoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=nonrevoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=testUser3,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Auditor,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Auditor | ||
description: All hyperledeger fabric auditors | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=revoker2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=expiryUser,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
|
||
dn: cn=Validator,ou=groups,dc=example,dc=com | ||
objectClass: groupOfNames | ||
cn: Validator | ||
description: All hyperledeger fabric validators | ||
member: uid=rootadmin,dc=example,dc=com | ||
member: uid=admin,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com | ||
member: uid=admin2,ou=users,ou=fabric,dc=hyperledeger,dc=example,dc=com |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dn: cn=module,cn=config | ||
cn: module | ||
objectclass: olcModuleList | ||
objectclass: top | ||
olcmoduleload: memberof.la | ||
olcmodulepath: /usr/lib/ldap | ||
|
||
dn: olcOverlay={0}memberof,olcDatabase={1}mdb,cn=config | ||
objectClass: olcConfig | ||
objectClass: olcMemberOf | ||
objectClass: olcOverlayConfig | ||
objectClass: top | ||
olcOverlay: memberof |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
dn: cn=module,cn=config | ||
cn: module | ||
objectclass: olcModuleList | ||
objectclass: top | ||
olcmoduleload: refint.la | ||
olcmodulepath: /usr/lib/ldap | ||
|
||
dn: olcOverlay={1}refint,olcDatabase={1}mdb,cn=config | ||
objectClass: olcConfig | ||
objectClass: olcOverlayConfig | ||
objectClass: olcRefintConfig | ||
objectClass: top | ||
olcOverlay: {1}refint | ||
olcRefintAttribute: memberof member manager owner |
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.