princemurphy
04/14/2024, 8:32 PMAuth failed
homeassistant | 2024-04-14 20:29:25.628 ERROR (MainThread) [homeassistant.auth.providers.command_line] User 'bmurphy88' failed to authenticate, command exited with code 1 Can someone help me get it working? Running Homeassistant in a Docker container.nitnelave
04/14/2024, 10:19 PMprincemurphy
04/14/2024, 10:54 PM2024-04-14T22:43:41.343115250+00:00 INFO i [info]: DB Cleanup Cron started
2024-04-14T22:44:11.385252477+00:00 INFO LDAP session [ 134µs | 48.94% / 100.00% ]
2024-04-14T22:44:11.385329582+00:00 INFO ┕━ LDAP request [ 68.6µs | 51.06% ]
2024-04-14T22:44:41.448954929+00:00 INFO LDAP session [ 134µs | 57.17% / 100.00% ]
2024-04-14T22:44:41.449016868+00:00 INFO ┕━ LDAP request [ 57.5µs | 42.83% ]
2024-04-14T22:45:11.512504399+00:00 INFO LDAP session [ 121µs | 51.58% / 100.00% ]
2024-04-14T22:45:11.512551925+00:00 INFO ┕━ LDAP request [ 58.7µs | 48.42% ]
2024-04-14T22:45:41.582221163+00:00 INFO LDAP session [ 108µs | 49.23% / 100.00% ]
2024-04-14T22:45:41.582261030+00:00 INFO ┕━ LDAP request [ 55.0µs | 50.77% ]
2024-04-14T22:46:11.647980397+00:00 INFO LDAP session [ 103µs | 41.63% / 100.00% ]
2024-04-14T22:46:11.648012025+00:00 INFO ┕━ LDAP request [ 60.1µs | 58.37% ]
2024-04-14T22:46:41.708995209+00:00 INFO LDAP session [ 112µs | 46.36% / 100.00% ]
2024-04-14T22:46:41.709032244+00:00 INFO ┕━ LDAP request [ 60.0µs | 53.64% ]
2024-04-14T22:47:11.794666113+00:00 INFO LDAP session [ 149µs | 37.53% / 100.00% ]
2024-04-14T22:47:11.794713166+00:00 INFO ┕━ LDAP request [ 92.8µs | 62.47% ]
2024-04-14T22:47:41.865688114+00:00 INFO LDAP session [ 111µs | 46.91% / 100.00% ]
2024-04-14T22:47:41.865742191+00:00 INFO ┕━ LDAP request [ 58.8µs | 53.09% ]
2024-04-14T22:48:11.934192616+00:00 INFO LDAP session [ 93.3µs | 42.12% / 100.00% ]
2024-04-14T22:48:11.934300722+00:00 INFO ┕━ LDAP request [ 54.0µs | 57.88% ]
2024-04-14T22:48:41.998917120+00:00 INFO LDAP session [ 95.9µs | 45.12% / 100.00% ]
2024-04-14T22:48:41.998955282+00:00 INFO ┕━ LDAP request [ 52.6µs | 54.88% ]
2024-04-14T22:49:12.070128406+00:00 INFO LDAP session [ 105µs | 46.54% / 100.00% ]princemurphy
04/14/2024, 11:41 PM2024-04-14T23:40:13.533103619+00:00 DEBUG ┝━ 🐛 [debug]: | response: SearchResultEntry(LdapSearchResultEntry { dn: "", attributes: [LdapPartialAttribute { atype: "objectClass", vals: ["top"] }, LdapPartialAttribute { atype: "vendorName", vals: ["LLDAP"] }, LdapPartialAttribute { atype: "vendorVersion", vals: ["lldap_0.5.0"] }, LdapPartialAttribute { atype: "supportedLDAPVersion", vals: ["3"] }, LdapPartialAttribute { atype: "supportedExtension", vals: ["1.3.6.1.4.1.4203.1.11.1"] }, LdapPartialAttribute { atype: "supportedControl", vals: [] }, LdapPartialAttribute { atype: "supportedFeatures", vals: ["1.3.6.1.4.1.4203.1.5.1"] }, LdapPartialAttribute { atype: "defaultNamingContext", vals: ["dc=lldap,dc=princemurphy,dc=net"] }, LdapPartialAttribute { atype: "namingContexts", vals: ["dc=lldap,dc=princemurphy,dc=net"] }, LdapPartialAttribute { atype: "isGlobalCatalogReady", vals: ["false"] }] })
2024-04-14T23:40:13.533131114+00:00 DEBUG ┕━ 🐛 [debug]: | response: SearchResultDone(LdapResult { code: Success, matcheddn: "", message: "", referral: [] })
2024-04-14T23:40:13.534101206+00:00 DEBUG HTTP request [ 9.01µs | 100.00% ] method: "GET" | uri: "/health"
2024-04-14T23:40:13.534112126+00:00 DEBUG ┕━ 🐛 [debug]: | status_code: 200nitnelave
04/15/2024, 3:46 AMnitnelave
04/15/2024, 3:46 AMprincemurphy
04/15/2024, 3:50 AMnitnelave
04/15/2024, 4:57 AMnitnelave
04/15/2024, 4:57 AMnitnelave
04/15/2024, 4:57 AMprincemurphy
04/15/2024, 4:58 AMnitnelave
04/15/2024, 5:01 AMnitnelave
04/15/2024, 5:01 AMnitnelave
04/15/2024, 5:01 AMnitnelave
04/15/2024, 5:02 AMnitnelave
04/15/2024, 5:02 AMnitnelave
04/16/2024, 6:22 AMprincemurphy
04/16/2024, 10:14 AMLogger: homeassistant.auth.providers.command_line
Source: auth/providers/command_line.py:84
First occurred: 6:08:33 AM (2 occurrences)
Last logged: 6:10:45 AM
User 'bmurphy88' failed to authenticate, command exited with code 1princemurphy
04/16/2024, 10:15 AMprincemurphy
04/16/2024, 10:16 AMnitnelave
04/16/2024, 10:16 AMprincemurphy
04/16/2024, 10:17 AMnitnelave
04/16/2024, 10:18 AMnitnelave
04/16/2024, 10:19 AMnitnelave
04/16/2024, 10:19 AMprincemurphy
04/16/2024, 10:20 AMprincemurphy
04/16/2024, 10:24 AMnitnelave
04/16/2024, 10:35 AMldap://container_name, like ldap://lldapprincemurphy
04/16/2024, 12:45 PMprincemurphy
04/16/2024, 12:46 PMnitnelave
04/16/2024, 12:53 PMprincemurphy
04/16/2024, 12:56 PMnitnelave
04/16/2024, 1:58 PMlog "Auth failed: $RESPONSE"princemurphy
04/16/2024, 3:41 PMnitnelave
04/16/2024, 3:43 PMnitnelave
04/16/2024, 3:43 PMprincemurphy
04/16/2024, 3:47 PMnitnelave
04/16/2024, 3:52 PMnitnelave
04/16/2024, 3:54 PMRESPONSE=$(curl -f -s -X POST -m "$TIMEOUT" -H "Content-type: application/json" -d '{"username":"'"$username"'","password":"'"$password"'"}' "$SERVER_URL/auth/simple/login" 2>/tmp/curl_err) and then log "Auth failed: $(cat /tmp/curl_err)"princemurphy
04/16/2024, 4:20 PMnitnelave
04/16/2024, 4:57 PMRES=$?
And you print $RES after auth failed?princemurphy
04/16/2024, 9:47 PMRESPONSE=$(curl -f -s -X POST -m "$TIMEOUT" -H "Content-type: application/json">
log "Auth failed:$RESPONSE"
exit 1nitnelave
04/16/2024, 10:32 PMnitnelave
04/18/2024, 9:47 AMsh
CMD="curl -f -s -X POST -m \"$TIMEOUT\" -H \"Content-type: application/json\" -d '{\"username\":\"'\"$username\"'\",\"password\":\"'\"$password\"'\"}' \"$SERVER_URL/auth/simple/login\""
log "Running: $CMD"
RESPONSE=$($CMD 2> /tmp/curl_err)
RES=$?
if [[ $RES -ne 0 ]]; then
log "Auth failed, RES=$RES, OUT=[$RESPONSE], ERR=[$(cat /tmp/curl_err)]"
exit 1
fiprincemurphy
04/18/2024, 11:05 AMAuth failed, RES=2, OUT=[], ERR=[curl: option -m: expected a proper numerical parameter
homeassistant | curl: try 'curl --help' or 'curl --manual' for more information]nitnelave
04/18/2024, 11:06 AMprincemurphy
04/18/2024, 11:07 AMnitnelave
04/18/2024, 11:08 AMprincemurphy
04/18/2024, 11:13 AMhomeassistant | 2024-04-18 11:03:47.929 ERROR (MainThread) [homeassistant.auth.providers.command_line] User 'bmurphy88' failed to authenticate, command exited with code 1
homeassistant | 2024-04-18 11:03:47.930 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from Murph-Laptop.princemurphy.net (192.168.20.101). Requested URL: '/auth/login_flow/eeead6d9b8636abd358c1bb812752605'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0)nitnelave
04/18/2024, 11:30 AMprincemurphy
04/18/2024, 11:50 AMRunning: curl -f -s -X POST -m "3" -H "Content-type: application/json" -d '{"username":"'"redacted"'","password":"'"redacted"'"}' "ldap://192.168.20.7:3890/auth/simple/login"nitnelave
04/18/2024, 11:51 AMprincemurphy
04/18/2024, 12:00 PMhomeassistant | Running: curl -f -s -X POST -m "3" -H "Content-type: application/json" -d '{"username":"'"REDACTED"'","password":"'"REDACTED"'"}' "ldap://192.168.20.7:3890/auth/simple/login"
homeassistant | Auth failed, RES=2, OUT=[], ERR=[curl: option -m: expected a proper numerical parameter
homeassistant | curl: try 'curl --help' or 'curl --manual' for more information]princemurphy
04/18/2024, 1:26 PMnitnelave
04/18/2024, 1:29 PMnitnelave
04/18/2024, 1:29 PMprincemurphy
04/18/2024, 2:00 PMnitnelave
04/18/2024, 2:14 PMhomeassistant | Running: curl -f -s -X POST -m 3