Browse files

Merge "Explicitly add cosine and inetorgperson schemas on Fedora"

  • Loading branch information...
2 parents 341f9b3 + 0c2c3fc commit 5e482c9ea27e9ba1b5518c37972e36d6c0e5a2cc Jenkins committed with openstack-gerrit Mar 22, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 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"

0 comments on commit 5e482c9

Please sign in to comment.