Larsluph
Larsluph
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
I think I copied the one from authentik directly, it does include a slash there. I just always forgot that the trailing slash mean something for some parsers
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
@Tag I just created a PR to clarify the URI in the docs https://github.com/homarr-labs/documentation/pull/126
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
Yep tested for myself and a friend of mine's credentials, thanks for your time!
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
:facepalm:
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
I had a trailing slash for the AUTH_OIDC_URI URL
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
Ok well I think I found the issue
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
No description
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
yup
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
Well I had "https://homarr.domain.tld/.*" setup, even with a fixed path it doesn't work :c
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
Well now I have the 301
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
oh ok
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
I have these two envs
AUTH_OIDC_URI: ${AUTHENTIK_BASE_URL}
NEXTAUTH_URL: ${HOMARR_BASE_URL}
AUTH_OIDC_URI: ${AUTHENTIK_BASE_URL}
NEXTAUTH_URL: ${HOMARR_BASE_URL}
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
I looked at other threads and I don't have the same error from logs, seems like I got 404 instead of the classic 302
[next-auth][error][SIGNIN_OAUTH_ERROR]
homarr | https://next-auth.js.org/errors#signin_oauth_error expected 200 OK, got: 404 Not Found {
homarr | error: {
homarr | message: 'expected 200 OK, got: 404 Not Found',
homarr | stack: 'OPError: expected 200 OK, got: 404 Not Found\n' +
homarr | ' at processResponse (/app/node_modules/openid-client/lib/helpers/process_response.js:41:11)\n' +
homarr | ' at Issuer.discover (/app/node_modules/openid-client/lib/issuer.js:152:20)\n' +
homarr | ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
homarr | ' at async openidClient (/app/node_modules/next-auth/core/lib/oauth/client.js:16:14)\n' +
homarr | ' at async getAuthorizationUrl (/app/node_modules/next-auth/core/lib/oauth/authorization-url.js:70:18)\n' +
homarr | ' at async Object.signin (/app/node_modules/next-auth/core/routes/signin.js:38:24)\n' +
homarr | ' at async AuthHandler (/app/node_modules/next-auth/core/index.js:260:26)\n' +
homarr | ' at async NextAuthApiHandler (/app/node_modules/next-auth/next/index.js:22:19)\n' +
homarr | ' at async auth (/app/.next/server/pages/api/auth/[...nextauth].js:143:12)',
homarr | name: 'OPError'
homarr | },
homarr | providerId: 'oidc',
homarr | message: 'expected 200 OK, got: 404 Not Found'
homarr | }
[next-auth][error][SIGNIN_OAUTH_ERROR]
homarr | https://next-auth.js.org/errors#signin_oauth_error expected 200 OK, got: 404 Not Found {
homarr | error: {
homarr | message: 'expected 200 OK, got: 404 Not Found',
homarr | stack: 'OPError: expected 200 OK, got: 404 Not Found\n' +
homarr | ' at processResponse (/app/node_modules/openid-client/lib/helpers/process_response.js:41:11)\n' +
homarr | ' at Issuer.discover (/app/node_modules/openid-client/lib/issuer.js:152:20)\n' +
homarr | ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
homarr | ' at async openidClient (/app/node_modules/next-auth/core/lib/oauth/client.js:16:14)\n' +
homarr | ' at async getAuthorizationUrl (/app/node_modules/next-auth/core/lib/oauth/authorization-url.js:70:18)\n' +
homarr | ' at async Object.signin (/app/node_modules/next-auth/core/routes/signin.js:38:24)\n' +
homarr | ' at async AuthHandler (/app/node_modules/next-auth/core/index.js:260:26)\n' +
homarr | ' at async NextAuthApiHandler (/app/node_modules/next-auth/next/index.js:22:19)\n' +
homarr | ' at async auth (/app/.next/server/pages/api/auth/[...nextauth].js:143:12)',
homarr | name: 'OPError'
homarr | },
homarr | providerId: 'oidc',
homarr | message: 'expected 200 OK, got: 404 Not Found'
homarr | }
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
ow it's not mentioned in the docs, what should I set it to ?
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
Okay so I tried to setup everything but it looks like I'm stuck in a redirection loop when accessing Homarr, whether I'm or not connected to Authentik (tried in Incognito mode and another browser)
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
gotcha, thanks
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
that's it yeah
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
That's great I was wondering if it was the case or not, then switching to OIDC seems like a great idea
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
no this is the password, username is just "test"
50 replies
HHomarr
Created by Larsluph on 10/28/2024 in #💬・get-help
Trouble setting up LDAP sync
It's a passphrase consisting of letters, numbers and dashes (-) so nothing too fancy I guess
50 replies