rabbit_ldap_seed: Remove 'memberOf' annotation for "peter" seed user

In openldap 2.5, `memberOf` seems to be a read-only annotation. Instead
the LDAPWiki recommends adding the user's name to the member attribute
on the relevant group objects:
<https://ldapwiki.com/wiki/Wiki.jsp?page=MemberOf>

We already do that when setting up the group objects, so this annotation
is safe to remove.
This commit is contained in:
Michael Davis 2024-05-01 11:11:47 -04:00
parent 30ef8fbe19
commit 8c5cf257df
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -158,10 +158,7 @@ peter() ->
"organizationalPerson",
"person"]},
{"loginShell", ["/bin/bash"]},
{"userPassword", ["password"]},
{"memberOf", ["cn=wheel,ou=groups,dc=rabbitmq,dc=com",
"cn=staff,ou=groups,dc=rabbitmq,dc=com",
"cn=people,ou=groups,dc=rabbitmq,dc=com"]}]}.
{"userPassword", ["password"]}]}.
carol() ->
{"uid=carol,ou=people,dc=rabbitmq,dc=com",