Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: string.charCodeAt is not a function #916

Open
BerryOsterlund opened this issue Feb 24, 2025 · 0 comments
Open

TypeError: string.charCodeAt is not a function #916

BerryOsterlund opened this issue Feb 24, 2025 · 0 comments

Comments

@BerryOsterlund
Copy link

Hi,

I'm setting up a new Backstage server and I would really like to use the ldap-authentication plugin. But I'm getting an error when I try to login. This is the body I get

"error": {
"name": "LdapAuthenticationError",
"message": "TypeError: string.charCodeAt is not a function",
"stack": "LdapAuthenticationError: TypeError: string.charCodeAt is not a function\n at authenticateWithAdmin (/home/xxx/mdlh/node_modules/ldap-authentication/index.js:179:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async authenticate (/home/xxx/mdlh/node_modules/ldap-authentication/index.js:388:12)\n at async ProviderLdapAuthProvider.defaultLDAPAuthentication (/home/xxx/mdlh/node_modules/@immobiliarelabs/backstage-plugin-ldap-auth-backend/src/ldap.ts:91:22)\n at async ProviderLdapAuthProvider.refresh (/home/xxx/mdlh/node_modules/@immobiliarelabs/backstage-plugin-ldap-auth-backend/src/provider.ts:89:33)"
},
"request": {
"method": "POST",
"url": "/ldap/refresh"
},

Any idea about what could be wrong here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant