| 12 | |
| 13 | === Getting started === |
| 14 | Every HPC site has its own service account, which can be used both for LDAP access and REST calls. E.g. for the JSC the LDAP bind DN is {{{o=FZJ,ou=sites,dc=hbp,dc=eu}}} and the username for the Rest API is {{{FZJ}}}. For both APIs the same password is used. After your first login, we recommend to change your password for the service account. You can do that with the following REST call: |
| 15 | |
| 16 | {{{ |
| 17 | curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: text/html' 'https://hbpacc.zam.kfa-juelich.de/hpcmanagement/v1/ldapaccess/serviceaccounts/FZJ?oldpassword=AAABBB&newpassword=cccddd&newpasswordrepeated=cccddd' |
| 18 | }}} |
| 19 | Note, that you need to replace FZJ with the name of your site, and the oldpassword parameter with your real password. Otherwise, the call will fail. We also recommend to use the Swagger UI at https://hbpacc.zam.kfa-juelich.de/hpcmanagement/v1/doc to run this call, which is much simpler than calling the curl command. On the Swagger UI, login with your initial site account (FZJ,BSC, and so forth) and password. Then click on Administration followed by {{{patch /ldapaccess/serviceaccounts/{site} }}}. Fill in your credentials and your new password. |