Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

universal_password must be specified at install

Aperta
#490 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jandusek4 ci sta già lavorando.

Dal 18/9/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Installing CP4BA only selecting ODM and the optional tools.
Install failing at gitea section where it attempts to sync LDAP users and fails to authenticate with the LDAP service.

TASK [gitea : Sync LDAP Users] *************************************************
Wednesday 21 June 2023  12:20:07 +0000 (0:01:20.759)       0:08:27.103 ******** 
fatal: [localhost]: FAILED! => {"cache_control": "no-store, no-transform", "changed": false, "connection": "close", "content_length": "146", "content_type": "application/json;charset=utf-8", "date": "Wed, 21 Jun 2023 12:20:14 GMT", "elapsed": 6, "json": {"message": "token is required", "url": "https://gitea.pluto-01-f7d2a3e582d10670c7df1a3b36d5b194-0000.eu-de.containers.appdomain.cloud/api/swagger"}, "msg": "Status code was 401 and not [204]: HTTP Error 401: Unauthorized", "redirected": false, "set_cookie": "10e73728790f636df27fadfad33f18b0=ca831b395a91565b3e753f9e92f91e56; path=/; HttpOnly; Secure; SameSite=None", "status": 401, "url": "https://gitea.pluto-01-f7d2a3e582d10670c7df1a3b36d5b194-0000.eu-de.containers.appdomain.cloud/api/v1/admin/cron/sync_external_users", "x_content_type_options": "nosniff", "x_frame_options": "SAMEORIGIN"}

Link to slack thread on the issue and fix

We tested that the LDAP service was available and logged in using the cpadmin DN and the generated universal_password found in the logs. Proving LDAP and the credentials were valid. Example password __omit_place_holder__dc91d9ecca04b38c3cfa2a1873f305495e4eaae1

With increased logging -vvvvvv we then saw that the password being used for Basic Auth was null.

Specifying a strong password on the cmd line resolved this issue.
./cp-deploy.sh env apply --skip-infra --accept-all-licenses -v -e universal_password=

Conclusion is that something in that code section is not accepting the universal_password when auto generated, perhaps due to length as it is over 60 chars and it then reverts to using null causing the issue authenticating to LDAP.
Is the universal_password being generated incorrectly with omit_place_holder that then makes it too long?

Lingua principale
Jinja
Stelle
163
Fork
82
Merge medio
8m
PR unite (30g)
8

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IBM/cloud-pak-deployer

Tutte le issue di IBM/cloud-pak-deployer

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.