From 0c2c3fc20e99372f3fb54390f023ce5657feefbf Mon Sep 17 00:00:00 2001 From: Brad Topol Date: Tue, 19 Mar 2013 03:01:30 -0500 Subject: [PATCH] Explicitly add cosine and inetorgperson schemas on Fedora Fixes Bug1156651 Change-Id: I957a8cdc562a887b0def7bc07c6bb434ce0a0437 --- lib/ldap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ldap b/lib/ldap index 0a0d197df2..9d415c5a84 100644 --- a/lib/ldap +++ b/lib/ldap @@ -37,6 +37,12 @@ function install_ldap() { #update ldap olcdb sudo ldapmodify -Y EXTERNAL -H ldapi:/// -f $TMP_MGR_DIFF_FILE + # On fedora we need to manually add cosine and inetorgperson schemas + if is_fedora; then + sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif + sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif + fi + # add our top level ldap nodes if ldapsearch -x -w $LDAP_PASSWORD -H ldap://localhost -D dc=Manager,dc=openstack,dc=org -x -b dc=openstack,dc=org | grep -q "Success" ; then printf "LDAP already configured for OpenStack\n"