Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: palw3ey/rfc2307bis
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: latest
Choose a base ref
...
head repository: palw3ey/rfc2307bis
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 7 commits
  • 2 files changed
  • 3 contributors

Commits on Sep 26, 2022

  1. Update README.md

    palw3ey authored Sep 26, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f2570a0 View commit details
  2. Create LICENSE.txt

    palw3ey authored Sep 26, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6e30a02 View commit details

Commits on Apr 8, 2023

  1. Update README.md

    palw3ey authored Apr 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5f2c1a0 View commit details

Commits on Apr 9, 2023

  1. Update README.md

    palw3ey authored Apr 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cfb0c97 View commit details

Commits on Apr 14, 2023

  1. Update LICENSE.txt

    palw3ey authored Apr 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ca52012 View commit details

Commits on Dec 23, 2023

  1. Update README.md

    palw3ey authored Dec 23, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    87e04b5 View commit details

Commits on Jan 2, 2025

  1. Update README.md

    palw3ey authored Jan 2, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4b0c264 View commit details
Showing with 95 additions and 1 deletion.
  1. +21 −0 LICENSE.txt
  2. +74 −1 README.md
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 palw3ey

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
75 changes: 74 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,74 @@
# rfc2307bis
# rfc2307bis

nis rfc2307 is obsolete, this README will help you replace it with the new rfc2307bis.ldif

# 1 - Install openldap and utils
```bash
sudo apt install slapd ldap-utils
```

# 2 - Download rfc2307bis.ldif
```bash
sudo wget https://github.com/palw3ey/rfc2307bis/releases/download/latest/rfc2307bis.ldif -O /etc/ldap/schema/rfc2307bis.ldif
```

# 3 - Edit slapd.init.ldif to replace rfc2307
```bash
sudo vi /usr/share/slapd/slapd.init.ldif
```

find this line :
```bash
include: file:///etc/ldap/schema/nis.ldif
```
append a # at the beginning of the line, to make it as a comment.
And just below this commented line, add :
```bash
include: file:///etc/ldap/schema/rfc2307bis.ldif
```

# 4 - Start the configuration of OpenLDAP
```bash
sudo dpkg-reconfigure slapd
```

# 5 - Verify that rfc2307bis is enabled
```bash
sudo ldapsearch -LLL -Y external -H ldapi:/// -b cn=schema,cn=config -s one dn
```
If everything is OK, then you should see this line in the output :
```bash
dn: cn={2}rfc2307bis,cn=schema,cn=config
```

# 6 - memberof overlay (optional)
Enable memberof overlay : To automatically add (or remove) a "memberof" attribute to the user entry, when the user is added (or removed) to a groupofnames.

Check if memberof is already enabled :
```bash
sudo slapcat -n 0 | grep "olcModuleLoad.*memberof"
```

Otherwise load memberof module :
```bash
sudo ldapmodify -Y EXTERNAL -H ldapi:/// <<!
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: memberof.la
!
```
Check if memberof overlay is already enabled :
```bash
sudo slapcat -n 0 | grep "olcOverlay.*memberof"
```
Otherwise apply overlay :
```bash
sudo ldapmodify -a -Y EXTERNAL -H ldapi:/// <<!
dn: olcOverlay=memberof,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcMemberOf
olcOverlay: memberof
olcMemberOfRefint: TRUE
!
```