WASdev / ci.docker.websphere-traditional

Dockerfiles for WebSphere Application Server traditional
Apache License 2.0
171 stars 192 forks source link

any scripts available for enabling security and configure federated repositories with LDAP #137

Open shareauto opened 5 years ago

shareauto commented 5 years ago

Does anybody have scripts available for enabling security and configure federated repositories?

gerbil commented 5 years ago

AdminTask.createIdMgrLDAPRepository(['-id', ldap_id, '-ldapServerType', ldap_server_type, '-sslConfiguration', ssl_configuration, '-certificateFilter', '-loginProperties', 'uid'])

AdminTask.addIdMgrLDAPServer(['-id', ldap_id, '-host', ldap_host, '-port', ldap_port, '-bindDN', ldap_binddn, '-bindPassword', ldap_bindpword, '-ldapServerType', ldap_server_type, '-sslConfiguration', ssl_configuration, '-certificateMapMode', "exactdn", '-certificateFilter', '-sslEnabled', ssl_enabled])

AdminTask.addIdMgrRepositoryBaseEntry(['-id', ldap_id, '-name', base_entry_name, '-nameInRepository', base_entry_dn])

AdminTask.addIdMgrRealmBaseEntry(['-name', was_realm, '-baseEntry', base_entry_name])

AdminTask.setGlobalSecurity ('[-enabled true]')

setApplicationSecurity("true")


The only problem is to restart server in order to fetch users after config apply.