Skip to content

Commit 97eb462

Browse files
authored
all variables enclosed in quotes (#297)
If the ldap realm name or ldap bind user contains spaces the playbook fails with the error: "WASX7017E: Exception received while running file \"/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/was_config_ldap.py\"; exception information: com.ibm.ws.scripting.ScriptingException: WASX8009E: Invalid parameter:" In the section "Create LDAP repository" all variables enclosed in quotes to avoid such errors.
1 parent c1856b6 commit 97eb462

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roles/third_party/ibm/wasnd/was-dmgr-config-ldap/templates/was_config_ldap.py.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#Create LDAP Repository
2-
AdminTask.createIdMgrLDAPRepository('[-default true -id {{ __ldap_repo }} -adapterClassName com.ibm.ws.wim.adapter.ldap.LdapAdapter -ldapServerType CUSTOM -sslConfiguration -certificateMapMode exactdn -supportChangeLog none -certificateFilter -loginProperties {{ __ldap_login_properties }}]')
2+
AdminTask.createIdMgrLDAPRepository('[-default true -id "{{ __ldap_repo }}" -adapterClassName com.ibm.ws.wim.adapter.ldap.LdapAdapter -ldapServerType CUSTOM -sslConfiguration -certificateMapMode exactdn -supportChangeLog none -certificateFilter -loginProperties "{{ __ldap_login_properties }}"]')
33
#Add LDAP Server
4-
AdminTask.addIdMgrLDAPServer('[-id {{ __ldap_repo }} -host {{ __ldap_server }} -bindDN {{ __ldap_bind_user }} -bindPassword {{ __ldap_bind_pass }} -referal ignore -sslEnabled false -ldapServerType CUSTOM -sslConfiguration -certificateMapMode exactdn -certificateFilter -authentication simple -port 389]')
4+
AdminTask.addIdMgrLDAPServer('[-id "{{ __ldap_repo }}" -host "{{ __ldap_server }}" -bindDN "{{ __ldap_bind_user }}" -bindPassword "{{ __ldap_bind_pass }}" -referal ignore -sslEnabled false -ldapServerType CUSTOM -sslConfiguration -certificateMapMode exactdn -certificateFilter -authentication simple -port 389]')
55

6-
AdminTask.addIdMgrRepositoryBaseEntry('[-id {{ __ldap_repo }} -name {{ __ldap_realm }} -nameInRepository {{ __ldap_realm }}]')
7-
AdminTask.addIdMgrRealmBaseEntry('[-name defaultWIMFileBasedRealm -baseEntry {{ __ldap_realm }}]')
6+
AdminTask.addIdMgrRepositoryBaseEntry('[-id "{{ __ldap_repo }}" -name "{{ __ldap_realm }}" -nameInRepository "{{ __ldap_realm }}"]')
7+
AdminTask.addIdMgrRealmBaseEntry('[-name defaultWIMFileBasedRealm -baseEntry "{{ __ldap_realm }}"]')
88

99
#Add Entity Types, Group attribute definition and external id attributes mapping
1010
{% if (cnx_setup_mt is defined | default(false) and cnx_setup_mt|bool) or (ldap_setup_internal is defined | default(false) and ldap_setup_internal|bool) %}

0 commit comments

Comments
 (0)