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

After password change, user can't login #167

Open
romale opened this issue Jan 31, 2022 · 2 comments
Open

After password change, user can't login #167

romale opened this issue Jan 31, 2022 · 2 comments

Comments

@romale
Copy link

romale commented Jan 31, 2022

Hi,

NC ver: 23.0.0
user_sql ver: 4.7.1

I use iredmail as a source users DB.
First time users can login. But after user change their password from iredmail web interface, this user can't login to nexcloud.
Thanks

изображение

sql log:

SELECT u.username AS uid, u.username AS username, u.name AS name, u.username AS email, null AS quota, null AS home, u.active AS active, false AS avatar, null AS salt, u.password AS password FROM mailbox u WHERE u.username = '[email protected]';
+-----------------------+-----------------------+-------------------+-----------------------+-------+------+--------+--------+------+-----------------------------------------------------------------------------------------------------------+
| uid                   | username              | name              | email                 | quota | home | active | avatar | salt | password                                                                                                  |
+-----------------------+-----------------------+-------------------+-----------------------+-------+------+--------+--------+------+-----------------------------------------------------------------------------------------------------------+
| [email protected] | [email protected] | Jon Doe | [email protected] |  NULL | NULL |      1 |      0 | NULL | {ssha512}GwKgk+QpmGEUlGBWgXgr280nRoDapFZgCEHuedyLkPnClMqfuKDG |
+-----------------------+-----------------------+-------------------+-----------------------+-------+------+--------+--------+------+-----------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

nextcloud.log:

{
  "reqId": "aj5cEwnBSjPjw7YxW62n",
  "level": 3,
  "time": "2022-01-31T11:17:08+00:00",
  "remoteAddr": "10.10.10.10",
  "user": "--",
  "app": "user_sql",
  "method": "POST",
  "url": "/index.php/login",
  "message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
  "version": "23.0.0.10",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/custom_apps/user_sql/lib/AppInfo/Application.php",
        "line": 42,
        "function": "__construct",
        "class": "OCP\\AppFramework\\App",
        "type": "->",
        "args": [
          "user_sql",
          []
        ]
      },
      {
        "file": "/var/www/html/custom_apps/user_sql/appinfo/app.php",
        "line": 27,
        "function": "__construct",
        "class": "OCA\\UserSQL\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 304,
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/app.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 186,
        "function": "requireAppFile",
        "class": "OC_App",
        "type": "::",
        "args": [
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 140,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::",
        "args": [
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 979,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::",
        "args": [
          [
            "authentication"
          ]
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/public/AppFramework/App.php",
    "Line": 80,
    "CustomMessage": "--"
  }
}
{
  "reqId": "aj5cEwnBSjPjw7YxW62n",
  "level": 3,
  "time": "2022-01-31T11:17:08+00:00",
  "remoteAddr": "10.10.10.10",
  "user": "--",
  "app": "user_sql",
  "method": "POST",
  "url": "/index.php/login",
  "message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
  "version": "23.0.0.10",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/custom_apps/user_sql/lib/AppInfo/Application.php",
        "line": 42,
        "function": "__construct",
        "class": "OCP\\AppFramework\\App",
        "type": "->",
        "args": [
          "user_sql",
          []
        ]
      },
      {
        "file": "/var/www/html/custom_apps/user_sql/appinfo/routes.php",
        "line": 25,
        "function": "__construct",
        "class": "OCA\\UserSQL\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 407,
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/routes.php"
        ],
        "function": "include_once"
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 152,
        "function": "requireRouteFile",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/routes.php",
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 261,
        "function": "loadRoutes",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 294,
        "function": "findMatchingRoute",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/login"
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1006,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/login"
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/public/AppFramework/App.php",
    "Line": 80,
    "CustomMessage": "--"
  }
}
{
  "reqId": "wU0yQM7YLcdYUYmNpNHW",
  "level": 3,
  "time": "2022-01-31T11:17:08+00:00",
  "remoteAddr": "10.10.10.10",
  "user": "--",
  "app": "user_sql",
  "method": "GET",
  "url": "/index.php/login?direct=1&[email protected]",
  "message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
  "version": "23.0.0.10",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/custom_apps/user_sql/lib/AppInfo/Application.php",
        "line": 42,
        "function": "__construct",
        "class": "OCP\\AppFramework\\App",
        "type": "->",
        "args": [
          "user_sql",
          []
        ]
      },
      {
        "file": "/var/www/html/custom_apps/user_sql/appinfo/app.php",
        "line": 27,
        "function": "__construct",
        "class": "OCA\\UserSQL\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 304,
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/app.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 186,
        "function": "requireAppFile",
        "class": "OC_App",
        "type": "::",
        "args": [
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 140,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::",
        "args": [
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 979,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::",
        "args": [
          [
            "authentication"
          ]
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/public/AppFramework/App.php",
    "Line": 80,
    "CustomMessage": "--"
  }
}
{
  "reqId": "wU0yQM7YLcdYUYmNpNHW",
  "level": 3,
  "time": "2022-01-31T11:17:08+00:00",
  "remoteAddr": "10.10.10.10",
  "user": "--",
  "app": "user_sql",
  "method": "GET",
  "url": "/index.php/login?direct=1&[email protected]",
  "message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
  "version": "23.0.0.10",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/custom_apps/user_sql/lib/AppInfo/Application.php",
        "line": 42,
        "function": "__construct",
        "class": "OCP\\AppFramework\\App",
        "type": "->",
        "args": [
          "user_sql",
          []
        ]
      },
      {
        "file": "/var/www/html/custom_apps/user_sql/appinfo/routes.php",
        "line": 25,
        "function": "__construct",
        "class": "OCA\\UserSQL\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 407,
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/routes.php"
        ],
        "function": "include_once"
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 152,
        "function": "requireRouteFile",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/routes.php",
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 261,
        "function": "loadRoutes",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 294,
        "function": "findMatchingRoute",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/login"
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1006,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/login"
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/public/AppFramework/App.php",
    "Line": 80,
    "CustomMessage": "--"
  }
}
{
  "reqId": "Z1UqCIXL4KNSEadNblDo",
  "level": 3,
  "time": "2022-01-31T11:17:09+00:00",
  "remoteAddr": "10.10.10.10",
  "user": "--",
  "app": "user_sql",
  "method": "GET",
  "url": "/cron.php",
  "message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
  "version": "23.0.0.10",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/custom_apps/user_sql/lib/AppInfo/Application.php",
        "line": 42,
        "function": "__construct",
        "class": "OCP\\AppFramework\\App",
        "type": "->",
        "args": [
          "user_sql",
          []
        ]
      },
      {
        "file": "/var/www/html/custom_apps/user_sql/appinfo/app.php",
        "line": 27,
        "function": "__construct",
        "class": "OCA\\UserSQL\\AppInfo\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 304,
        "args": [
          "/var/www/html/custom_apps/user_sql/appinfo/app.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 186,
        "function": "requireAppFile",
        "class": "OC_App",
        "type": "::",
        "args": [
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 140,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::",
        "args": [
          "user_sql"
        ]
      },
      {
        "file": "/var/www/html/cron.php",
        "line": 55,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/public/AppFramework/App.php",
    "Line": 80,
    "CustomMessage": "--"
  }
}
@romale
Copy link
Author

romale commented Jan 31, 2022

Additional log part


{"reqId":"PEBeQj5k8vc9ZwESNlWT","level":2,"time":"2022-01-31T12:53:24+00:00","remoteAddr":"10.10.10.10","user":"--","app":"no app in context","method":"POST","url":"/index.php/login","message":"Login failed: [email protected] (Remote IP: 10.10.10.10)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"Mkl35zSoTjVuRQcLMwoG","level":3,"time":"2022-01-31T12:53:24+00:00","remoteAddr":"10.10.10.10","user":"--","app":"user_sql","method":"GET","url":"/index.php/login?direct=1&[email protected]","message":"App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10","exception":{"Exception":"RuntimeException","Message":"App class OCA\\UserSQL\\AppInfo\\Application is not setup via query() but directly","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/user_sql/lib/AppInfo/Application.php","line":42,"function":"__construct","class":"OCP\\AppFramework\\App","type":"->","args":["user_sql",[]]},{"file":"/var/www/html/custom_apps/user_sql/appinfo/app.php","line":27,"function":"__construct","class":"OCA\\UserSQL\\AppInfo\\Application","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":304,"args":["/var/www/html/custom_apps/user_sql/appinfo/app.php"],"function":"require_once"},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":186,"function":"requireAppFile","class":"OC_App","type":"::","args":["user_sql"]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":140,"function":"loadApp","class":"OC_App","type":"::","args":["user_sql"]},{"file":"/var/www/html/lib/base.php","line":979,"function":"loadApps","class":"OC_App","type":"::","args":[["authentication"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/public/AppFramework/App.php","Line":80,"CustomMessage":"--"}}

@romale
Copy link
Author

romale commented Feb 1, 2022

If mysql password line in lowercase "{ssha512}GwKgkK...", so login doesn't work.
If mysql password line in uppercase "{SSHA512}GwKgkK...", login works fine.

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