I recently installed Paperless NGX in Docker and set up user authentication via LDAP. The server is reachable, and authentication starts correctly, but the connection keeps dropping. I can’t figure out why. Does anyone have any idea what I could check?
Here are my logs:
[2024/06/19 13:25:23.609239, 3] ../../lib/ldb-samba/ldb_wrap.c:332(ldb_wrap_connect)
ldb_wrap open of secrets.ldb
[2024/06/19 13:25:23.613473, 3] ../../source4/samba/service_stream.c:67(stream_terminate_connection)
stream_terminate_connection: Terminating connection - 'ldapsrv_accept_tls_loop: tstream_tls_accept_recv() - 32:Broken pipe'
[2024/06/19 13:25:23.617901, 3] ../../lib/ldb-samba/ldb_wrap.c:332(ldb_wrap_connect)
ldb_wrap open of secrets.ldb
[2024/06/19 13:25:23.715563, 3] ../../source4/auth/ntlm/auth.c:204(auth_check_password_send)
auth_check_password_send: Checking password for unmapped user [firma.DE][matthias]@[SAMBA]
auth_check_password_send: user is: [firma.DE][matthias]@[SAMBA]
[2024/06/19 13:25:23.727758, 3] ../../auth/auth_log.c:647(log_authentication_event_human_readable)
Auth: [LDAP,simple bind/TLS] user [firma.DE][[email protected]] at [Wed, 19 Jun 2024 13:25:23.727738 CEST] with [Plaintext] status [NT_STATUS_OK] workstation [SAMBA] remote host [ipv4:10.100.100.17:43693] became [firma.DE][matthias] [S-1-5-21-1856347220-1719576316-2154358202-1529]. local host [ipv4:192.168.100.22:636]
{"timestamp": "2024-06-19T13:25:23.727829+0200", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4624, "logonId": "0", "logonType": 8, "status": "NT_STATUS_OK", "localAddress": "ipv4:192.168.100.22:636", "remoteAddress": "ipv4:10.100.100.17:43693", "serviceDescription": "LDAP", "authDescription": "simple bind/TLS", "clientDomain": "firma.DE", "clientAccount": "[email protected]", "workstation": "SAMBA", "becameAccount": "matthias", "becameDomain": "firma.DE", "becameSid": "S-1-5-21-1036045820-1750975616-2752359902-1319", "mappedAccount": "matthias", "mappedDomain": "firma.DE", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "Plaintext", "duration": 14075}}
[2024/06/19 13:25:23.741307, 3] ../../lib/ldb-samba/ldb_wrap.c:332(ldb_wrap_connect)
ldb_wrap open of privilege.ldb
[2024/06/19 13:25:23.756797, 3] ../../source4/auth/ntlm/auth.c:204(auth_check_password_send)
auth_check_password_send: Checking password for unmapped user [firma.DE][Administrator]@[SAMBA]
auth_check_password_send: user is: [firma.DE][Administrator]@[SAMBA]
[2024/06/19 13:25:23.762825, 3] ../../auth/auth_log.c:647(log_authentication_event_human_readable)
Auth: [LDAP,simple bind/TLS] user [firma.DE][CN=Administrator,CN=Users,DC=samba,DC=firma,DC=DE] at [Wed, 19 Jun 2024 13:25:23.762807 CEST] with [Plaintext] status [NT_STATUS_OK] workstation [SAMBA] remote host [ipv4:10.100.100.17:43693] became [firma.DE][Administrator] [S-1-5-21-1036045820-1750975616-2752359902-500]. local host [ipv4:192.168.100.22:636]
{"timestamp": "2024-06-19T13:25:23.762882+0200", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4624, "logonId": "0", "logonType": 8, "status": "NT_STATUS_OK", "localAddress": "ipv4:192.168.100.22:636", "remoteAddress": "ipv4:10.100.100.17:43693", "serviceDescription": "LDAP", "authDescription": "simple bind/TLS", "clientDomain": "firma.DE", "clientAccount": "CN=Administrator,CN=Users,DC=samba,DC=firma,DC=DE", "workstation": "SAMBA", "becameAccount": "Administrator", "becameDomain": "firma.DE", "becameSid": "S-1-5-21-134555820-17332225616-272223455602-534", "mappedAccount": "Administrator", "mappedDomain": "firma.DE", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "Plaintext", "duration": 6906}}
[2024/06/19 13:25:23.770182, 3] ../../lib/ldb-samba/ldb_wrap.c:332(ldb_wrap_connect)
ldb_wrap open of privilege.ldb
[2024/06/19 13:25:23.796462, 3] ../../source4/samba/service_stream.c:67(stream_terminate_connection)
stream_terminate_connection: Terminating connection - 'ldapsrv_call_wait_done: call->wait_recv() - NT_STATUS_LOCAL_DISCONNECT'
When I log in on the Paperless website, I get the message “The username and/or password are incorrect.”
However, you see the logs.
I have checked the search filters.
New contributor
MattiYn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.