Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
canvas-demo-techex17/deps/ldap/slapdconf/openldap_midpoint.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
35 lines (35 sloc)
1.44 KB
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
#!/bin/sh | |
# | |
# openldap_midpoint.sh, DESCRIPTION | |
# | |
# Copyright (C) 2017 Tom Jordan | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# $Id:$ | |
# Tom Jordan <tom.jordan@wisc.edu> | |
echo "Configuring LDAP for Midpoint.." | |
set -x | |
slapdconf add-module sssvlv | |
slapdconf add-overlay dc=example,dc=edu sssvlv | |
slapdconf add-module ppolicy | |
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif | |
slapdconf add-overlay dc=example,dc=edu ppolicy | |
slapdconf add-module memberof | |
slapdconf add-overlay dc=example,dc=edu memberof | |
slapdconf add-module refint | |
slapdconf add-overlay dc=example,dc=edu refint olcRefintConfig 'olcRefintAttribute:memberof member manager owner' | |
slapdconf set-suffix-prop dc=example,dc=edu 'olcLimits:dn.exact="cn=admin,dc=example,dc=edu" size.prtotal=unlimited' | |
ldapadd -Y EXTERNAL -H ldapi:/// -f /usr/local/bin/pwpolicy.ldif | |
rm /usr/local/bin/pwpolicy.ldif | |
slapdconf set-overlay-prop dc=example,dc=edu ppolicy olcPPolicyDefault:cn=pwpolicy,dc=example,dc=edu | |
set +x | |
echo "Done configuring LDAP for Midpoint" |