From 081cedd89f24ca96095536be334b6687f0058d5f Mon Sep 17 00:00:00 2001 From: mrclemrkz Date: Mon, 5 Nov 2018 00:39:41 +0530 Subject: [PATCH] DefaultRealm changed. --- docker-compose.yml | 2 -- is/config/user-mgt.xml | 4 ++-- start.sh | 16 ++++++++-------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 030e17f..50c1760 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,8 +23,6 @@ services: ports: - "389:389" - "636:636" - # domainname: "copper-openldap" # important: same as hostname - # hostname: "copper-openldap" # cn=admin,dc=copper,dc=opensource,dc=lk diff --git a/is/config/user-mgt.xml b/is/config/user-mgt.xml index 4a341c5..12b1b90 100644 --- a/is/config/user-mgt.xml +++ b/is/config/user-mgt.xml @@ -170,7 +170,7 @@ --> org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager - ldap://copper-openldap:389 + ldap://openldap:389 cn=admin,dc=copper,dc=opensource,dc=lk admin false @@ -205,7 +205,7 @@ 100 100 false - WSO2.ORG + openldap true false 5000 diff --git a/start.sh b/start.sh index 3928a41..cbda9d5 100644 --- a/start.sh +++ b/start.sh @@ -2,17 +2,17 @@ docker-compose up --build -d -STATUS="0" +# STATUS="0" -until [[ ${STATUS} == *"ok"* ]]; do - echo " wating until slpd is started" - STATUS=`docker exec -ti copper-openldap sh -c "service slapd status"` - sleep 5 -done +# until [[ ${STATUS} == *"ok"* ]]; do +# echo " wating until slpd is started" +# STATUS=`docker exec -ti copper-openldap sh -c "service slapd status"` +# sleep 5 +# done -echo " slapd has started!" +# echo " slapd has started!" -# sleep 30 +sleep 20 docker exec -it copper-openldap /usr/bin/ldapadd -Y EXTERNAL -H ldapi:// -f /home/97-wso2Person.ldif docker exec -it copper-openldap /usr/bin/ldapadd -Y EXTERNAL -H ldapi:// -f /home/98-scimPerson.ldif