rustdesk-server-pro icon indicating copy to clipboard operation
rustdesk-server-pro copied to clipboard

Unable to Log In to the RustDesk Web Console with My Account

Open jbarciat opened this issue 11 months ago • 10 comments

I am unable to log in to the web console with my account. Logins are configured using LDAP. It was working until yesterday. The user already existed, so it should not be trying to create it again.

image

jbarciat avatar Dec 13 '24 08:12 jbarciat

@fufesou

rustdesk avatar Dec 13 '24 08:12 rustdesk

@jbarciat Hi, is there any changes to your ldap account?

I've read the code.

RustDesk will only try to create a new user when the ldap bind dn is a new one.

fufesou avatar Dec 13 '24 09:12 fufesou

If your ldap account

  1. Base DN, dc=test1,dc=test2,dc=com.
  2. out ou=people
  3. uid uid=user1

Then the bind dn(identifier) is uid=user1,ou=people,dc=test1,dc=test2,dc=com in RustDesk db.

fufesou avatar Dec 13 '24 09:12 fufesou

We have changed the user's OU

What do we have to do now?

jbarciat avatar Dec 13 '24 10:12 jbarciat

Many users are affected?

Maybe you have to execute sql to keep users' ids for LDAP.

fufesou avatar Dec 13 '24 10:12 fufesou

You can find the users' identifier in table user_third_auth in the db file db.sqlite3.

fufesou avatar Dec 13 '24 10:12 fufesou

We have only moved one user to other OU.

jbarciat avatar Dec 13 '24 10:12 jbarciat

We have only moved one user from the OU.

If the user is willing to accept this, you can delete the account and let him log in again.

If he does not want to delete the account, you have to modify the indentifier field in this table to keep it consistent with the current one.

fufesou avatar Dec 13 '24 10:12 fufesou

Please backup the db files (db.sqlite3, db.sqlite3-shm, db.sqlite3-wal) first you're going to execute sql.

fufesou avatar Dec 13 '24 10:12 fufesou

Thank you, we will try to delete the user and recreate it.

And if I see that we can't, I'll reply to the issue again.

jbarciat avatar Dec 13 '24 10:12 jbarciat