Skip to content

Commit

Permalink
DefaultRealm changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclemrkz committed Nov 4, 2018
1 parent e352f7b commit 081cedd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions is/config/user-mgt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
-->
<UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
<Property name="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
<Property name="ConnectionURL">ldap://copper-openldap:389</Property>
<Property name="ConnectionURL">ldap://openldap:389</Property>
<Property name="ConnectionName">cn=admin,dc=copper,dc=opensource,dc=lk</Property>
<Property name="ConnectionPassword">admin</Property>
<Property name="AnonymousBind">false</Property>
Expand Down Expand Up @@ -205,7 +205,7 @@
<Property name="MaxUserNameListLength">100</Property>
<Property name="MaxRoleNameListLength">100</Property>
<Property name="kdcEnabled">false</Property>
<Property name="defaultRealmName">WSO2.ORG</Property>
<Property name="defaultRealmName">openldap</Property>
<Property name="UserRolesCacheEnabled">true</Property>
<Property name="ConnectionPoolingEnabled">false</Property>
<Property name="LDAPConnectionTimeout">5000</Property>
Expand Down
16 changes: 8 additions & 8 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 081cedd

Please sign in to comment.