From d44eec81f3e1508bccbb1d307dbbe58a6908981c Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Tue, 8 Feb 2022 12:02:32 +0100 Subject: [PATCH] Adjustments --- changepassword.ldif | 4 ++++ config.json.example | 13 +++++++------ ou.ldif | 17 +++++++++++++++++ user.ldif | 24 ++++++++++++++++++++++++ 4 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 changepassword.ldif create mode 100644 ou.ldif create mode 100644 user.ldif diff --git a/changepassword.ldif b/changepassword.ldif new file mode 100644 index 0000000..6f6f8c0 --- /dev/null +++ b/changepassword.ldif @@ -0,0 +1,4 @@ +dn: uid=john.lemon,ou=People,dc=earthnet,dc=local +changetype: modify +replace: userPassword +userPassword: {SSHA}ag22A7i2XavJYvYriYwpj+ZHI3+JA28x diff --git a/config.json.example b/config.json.example index a1840db..fc9deb1 100644 --- a/config.json.example +++ b/config.json.example @@ -1,13 +1,14 @@ { - "suffix": "dc=bottin,dc=eu", + "suffix": "dc=earthnet,dc=local", "bind": "127.0.0.1:1389", "acl": [ - "ANONYMOUS::bind:*,ou=users,dc=bottin,dc=eu:", - "ANONYMOUS::bind:cn=admin,dc=bottin,dc=eu:", - "*,dc=bottin,dc=eu::read:*:* !userpassword", + "ANONYMOUS::bind:*,ou=users,dc=earthnet,dc=local:", + "ANONYMOUS::bind:*,ou=People,dc=earthnet,dc=local:", + "ANONYMOUS::bind:cn=admin,dc=earthnet,dc=local:", + "*,dc=earthnet,dc=local::read:*:* !userpassword", "*::read modify:SELF:*", - "cn=admin,dc=bottin,dc=eu::read add modify delete:*:*", - "*:cn=admin,ou=groups,dc=bottin,dc=eu:read add modify delete:*:*" + "cn=admin,dc=earthnet,dc=local::read add modify delete:*:*", + "*:cn=admin,ou=groups,dc=earthnet,dc=local:read add modify delete:*:*" ] } diff --git a/ou.ldif b/ou.ldif new file mode 100644 index 0000000..52b6b7a --- /dev/null +++ b/ou.ldif @@ -0,0 +1,17 @@ + +# LDIF Export for ou=People,dc=earthnet,dc=local +# Server: ldap (ldap) +# Search Scope: base +# Search Filter: (objectClass=*) +# Total Entries: 1 +# +# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on February 8, 2022 10:39 am +# Version: 1.2.5 + +version: 1 + +# Entry 1: ou=People,dc=earthnet,dc=local +dn: ou=People,dc=earthnet,dc=local +objectclass: top +objectclass: organizationalunit +ou: People diff --git a/user.ldif b/user.ldif new file mode 100644 index 0000000..f1ca42d --- /dev/null +++ b/user.ldif @@ -0,0 +1,24 @@ +# LDIF Export for uid=john.lemon,ou=People,dc=earthnet,dc=local +# Server: ldap (ldap) +# Search Scope: base +# Search Filter: (objectClass=*) +# Total Entries: 1 +# +# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on February 8, 2022 10:36 am +# Version: 1.2.5 + +version: 1 + +# Entry 1: uid=john.lemon,ou=People,dc=earthnet,dc=local +dn: uid=john.lemon,ou=People,dc=earthnet,dc=local +cn: John Lemon +givenname: John +mail: john.lemon@earthnet.ch +objectclass: top +objectclass: inetOrgPerson +objectclass: organizationalPerson +objectclass: person +sn: Lemon +uid: john.lemon +userpassword: {SSHA512}j18l2W+Sa9wlka6u5dyITbO4CiCO99bTH0piiQuqM2iTo14l6DTpU + y+jaR2LbO29yNshFN5ejZh/gGIL2eBXH94/efrvGEKf