ci.docker.websphere-traditional icon indicating copy to clipboard operation
ci.docker.websphere-traditional copied to clipboard

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

Open shareauto opened this issue 7 years ago • 1 comments

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

shareauto avatar Dec 06 '18 17:12 shareauto

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.

gerbil avatar Feb 15 '19 10:02 gerbil