Cannot reset private key


#1

Have an LDAP user that after she changed her password she's getting a invalid private encryption key. When she attempts to recreate the key, it sits and spins on "saving...". The logs show

{"reqId":"Wjppbh0AaTSvQQg4xAy3lgAAAAg","remoteAddr":"10.0.6.33","app":"no app in context","message":"Could not decrypt the private key from user \"2E63BA06-45EB-49F8-9B7C-9E2824BD554A\"\" during login. Assume password change on the user back-end. Error message: Bad Signature","level":2,"time":"2017-12-20T13:45:18+00:00","method":"POST","url":"\/index.php","user":"2E63BA06-45EB-49F8-9B7C-9E2824BD554A"}
{"reqId":"WjppkNp@Bcs7IojMORocfwAAAAI","remoteAddr":"10.0.6.33","app":"user_ldap","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"No user available for the given login name.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php(120): OCA\\\\user_ldap\\\\USER_LDAP->getLDAPUserByLoginName('2E63BA06-45EB-4...')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/user\\\/manager.php(189): OCA\\\\user_ldap\\\\USER_LDAP->checkPassword(*** username and password replaced ***)\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/encryption\\\/controller\\\/settingscontroller.php(113): OC\\\\User\\\\Manager->checkPassword(*** username and password replaced ***)\\n#3 [internal function]: OCA\\\\Encryption\\\\Controller\\\\SettingsController->updatePrivateKeyPassword(*** username and password replaced ***)\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Encryption\\\\Controller\\\\SettingsController), 'updatePrivateKe...')\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Encryption\\\\Controller\\\\SettingsController), 'updatePrivateKe...')\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('SettingsControl...', 'updatePrivateKe...', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#8 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(907): OC\\\\Route\\\\Router->match('\\\/apps\\\/encryptio...')\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(47): OC::handleRequest()\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php\",\"Line\":105}","level":3,"time":"2017-12-20T13:45:52+00:00","method":"POST","url":"\/index.php\/apps\/encryption\/ajax\/updatePrivateKeyPassword","user":"2E63BA06-45EB-49F8-9B7C-9E2824BD554A"}
{"reqId":"WjppkNp@Bcs7IojMORocfwAAAAI","remoteAddr":"10.0.6.33","app":"core","message":"Login failed: '2E63BA06-45EB-49F8-9B7C-9E2824BD554A' (Remote IP: '10.0.6.33')","level":2,"time":"2017-12-20T13:45:52+00:00","method":"POST","url":"\/index.php\/apps\/encryption\/ajax\/updatePrivateKeyPassword","user":"2E63BA06-45EB-49F8-9B7C-9E2824BD554A"}
{"reqId":"Wjppwh0AaTSvQQg4xAy3pgAAAAg","remoteAddr":"10.0.6.33","app":"user_ldap","message":"Bind failed: 49: Invalid credentials","level":2,"time":"2017-12-20T13:46:43+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Wjppwh0AaTSvQQg4xAy3pgAAAAg","remoteAddr":"10.0.6.33","app":"core","message":"Login failed: 'hevans' (Remote IP: '10.0.6.33')","level":2,"time":"2017-12-20T13:46:43+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Wjpp0UXWCluGVRhKd9JN4wAAAAU","remoteAddr":"10.0.6.33","app":"no app in context","message":"Could not decrypt the private key from user \"2E63BA06-45EB-49F8-9B7C-9E2824BD554A\"\" during login. Assume password change on the user back-end. Error message: Bad Signature","level":2,"time":"2017-12-20T13:46:57+00:00","method":"POST","url":"\/index.php","user":"2E63BA06-45EB-49F8-9B7C-9E2824BD554A"}
{"reqId":"Wjpp7z30WJYIBC9OrzSiHQAAAAQ","remoteAddr":"10.0.6.33","app":"user_ldap","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"No user available for the given login name.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php(120): OCA\\\\user_ldap\\\\USER_LDAP->getLDAPUserByLoginName('2E63BA06-45EB-4...')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/user\\\/manager.php(189): OCA\\\\user_ldap\\\\USER_LDAP->checkPassword(*** username and password replaced ***)\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/encryption\\\/controller\\\/settingscontroller.php(113): OC\\\\User\\\\Manager->checkPassword(*** username and password replaced ***)\\n#3 [internal function]: OCA\\\\Encryption\\\\Controller\\\\SettingsController->updatePrivateKeyPassword(*** username and password replaced ***)\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Encryption\\\\Controller\\\\SettingsController), 'updatePrivateKe...')\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Encryption\\\\Controller\\\\SettingsController), 'updatePrivateKe...')\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('SettingsControl...', 'updatePrivateKe...', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#8 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(907): OC\\\\Route\\\\Router->match('\\\/apps\\\/encryptio...')\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(47): OC::handleRequest()\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php\",\"Line\":105}","level":3,"time":"2017-12-20T13:47:27+00:00","method":"POST","url":"\/index.php\/apps\/encryption\/ajax\/updatePrivateKeyPassword","user":"2E63BA06-45EB-49F8-9B7C-9E2824BD554A"}
{"reqId":"Wjpp7z30WJYIBC9OrzSiHQAAAAQ","remoteAddr":"10.0.6.33","app":"core","message":"Login failed: '2E63BA06-45EB-49F8-9B7C-9E2824BD554A' (Remote IP: '10.0.6.33')","level":2,"time":"2017-12-20T13:47:27+00:00","method":"POST","url":"\/index.php\/apps\/encryption\/ajax\/updatePrivateKeyPassword","user":"2E63BA06-45EB-49F8-9B7C-9E2824BD554A"}

I'm not sure where to look. Her user is listed in users. Thanks for the help


#2

This issue was solved after I upgraded to 9.1.7