Giter Club home page Giter Club logo

Comments (6)

r0ckarong avatar r0ckarong commented on May 30, 2024

There seems to be a problem finding the admin user in the database with the attributes. I'm looking into this.

from doc-caasp.

otuominen avatar otuominen commented on May 30, 2024

Reopening.

from doc-caasp.

nanoscopic avatar nanoscopic commented on May 30, 2024

Assuming that there exists a cn=admin user in the LDAP DB, the following command would output the full DN of that user:
( executed from LDAP container context )
slapcat -n1 | grep "dn: cn=admin"

On a cluster configured with the default settings this command outputs the following:
dn: cn=admin,dc=infra,dc=caasp,dc=local

If nothing appears one could browse through the slapcat -n1 output to see everything that is there.

If there is no user present then something has gone wrong. When a cluster is first created the cn=admin user is created by Velum; so it should always be there.

My guess without interacting with the specific cluster having the problem is that the domain for the cn=admin user is different. The default domain context is "infra.caasp.local". It is possible for that domain to be configured differently for a user.

from doc-caasp.

r0ckarong avatar r0ckarong commented on May 30, 2024

@otuominen Try this:
Follow the instructions until you are in the bash of the LDAP container.
Then run: slapcat -n1 | grep uniqueMember
uniqueMember: uid=mnapp,ou=People,dc=infra,dc=caasp,dc=local <- this line will look different for you.

Then replace the uid in the password change command with the uid from the output.

So replace uid=test here with the uid from your output:

bash-4.3# ldappasswd -H ldaps:// -D "cn=admin,dc=infra,dc=caasp,dc=local" -w $(cat /var/lib/misc/infra-secrets/openldap-password) uid=test,ou=People,dc=infra,dc=caasp,dc=local -S

If any of the other attributes are different, change them too (should not be the case).

from doc-caasp.

otuominen avatar otuominen commented on May 30, 2024

@otuominen Try this:
Follow the instructions until you are in the bash of the LDAP container.
Then run: slapcat -n1 | grep uniqueMember
uniqueMember: uid=mnapp,ou=People,dc=infra,dc=caasp,dc=local <- this line will look different for you.

Then replace the uid in the password change command with the uid from the output.

So replace uid=test here with the uid from your output:

bash-4.3# ldappasswd -H ldaps:// -D "cn=admin,dc=infra,dc=caasp,dc=local" -w $(cat /var/lib/misc/infra-secrets/openldap-password) uid=test,ou=People,dc=infra,dc=caasp,dc=local -S

If any of the other attributes are different, change them too (should not be the case).

So yes, slapcat -n1 | grep uniqueMember` is essential that you capture correct uid!

bash-4.3# slapcat -n1 | grep uniqueMember
5c067044 mdb_monitor_db_open: monitoring disabled; configure monitor database to enable
uniqueMember: uid=admin,ou=People,dc=infra,dc=caasp,dc=local
bash-4.3# ldappasswd -H ldaps:// -D "cn=admin,dc=infra,dc=caasp,dc=local" -w $(cat /var/lib/misc/infra-secrets/openldap-password) uid=admin,ou=People,dc=infra,dc=caasp,dc=local -S
New password:
Re-enter new password:

That should be included as info. Thanks!

from doc-caasp.

r0ckarong avatar r0ckarong commented on May 30, 2024

I have already changed the instructions to extract this information and this will be updated with a future update of the docs. I'll close this issue.

from doc-caasp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.