# ldapadd -x -h localhost -p 3389 -D "cn=admin,dc=test,dc=com" -w secret -f base.ldif dn: dc=test,dc=com objectClass: dcObject objectClass: organizationalUnit dc: test ou: Test dn: ou=people,dc=test,dc=com objectClass: organizationalUnit ou: people dn: ou=groups,dc=test,dc=com objectClass: organizationalUnit ou: groups # example.user@test.com, people, test.com dn: cn=example.user@test.com,ou=people,dc=test,dc=com objectClass: inetOrgPerson objectClass: authorizations sn: User uid: example_user mail: example.user@test.com cn: example.user@test.com authorizationRole: blogUser userPassword:: e1NTSEF9ZXRYaE9NcjRjOGFiTjlqYUxyczZKSll5MFlaZUF1NURCVWhhY0E9PQ= = # example.admin@test.com, people, test.com dn: cn=example.admin@test.com,ou=people,dc=test,dc=com objectClass: inetOrgPerson objectClass: authorizations objectClass: organizationalPerson objectClass: person objectClass: top sn: Admin uid: example_admin cn: example.admin@test.com authorizationRole: blogAdmin userPassword:: e1NIQX0wcUNXaERISGFwWmc3ekJxZWRRanBzNW1EUDA9 # users, groups, test.com dn: cn=users,ou=groups,dc=test,dc=com objectClass: groupOfUniqueNames objectClass: top uniqueMember: cn=example.user@test.com,ou=people,dc=test,dc=com cn: users # users, groups, test.com dn: cn=admins,ou=groups,dc=test,dc=com objectClass: groupOfUniqueNames objectClass: top uniqueMember: cn=example.admin@test.com,ou=people,dc=test,dc=com cn: admins