Open JSuenram opened 2 years ago
The cookie error you have above is normal. There are two ways to encode a login cookie, the AESGCM way and the AESSHA way. By default, I always use AESGCM, but sometimes I ran into problems where GCM is not supported (like in C#) and I had to create an alternative way to create a cookie.
MeshCentral will try to decode using AESGCM, it failed and tried AESSHA and it worked. So, all is good.
Are you sure "user//bilbobob" is the correct user identifier? Obviously, if that user does not exist in the database, this will not work.
The cookie error you have above is normal. There are two ways to encode a login cookie, the AESGCM way and the AESSHA way. By default, I always use AESGCM, but sometimes I ran into problems where GCM is not supported (like in C#) and I had to create an alternative way to create a cookie.
MeshCentral will try to decode using AESGCM, it failed and tried AESSHA and it worked. So, all is good.
Are you sure "user//bilbobob" is the correct user identifier? Obviously, if that user does not exist in the database, this will not work.
Just replaced the Username before pasting..... Yes.... username is the one, which also exist in MC and comes from LDAP/ActiveDirectory....
Ok, if it matches the user identifier here:
Also, do you have this line in the settings section of the config.json?
"AllowLoginToken": true
Yes, Username matches and AllowLoginToken is true in config.json..... And all is in default domain.
Is there a way for me to debug the logon-progress?
For the sake of those who will face the issue: user ID for LDAP-based authentication does NOT match your login name.
The id will be something like user//01050000000000051500000026fd51fd6802fd66fdfd21fdfd070000
.
These digits are hex-encoded user's SID because a default value for ldapUserBinaryKey
in config.json is objectSid
(as stated here).
As we are using LDAP in config.json there seems to be in issue with token-usage. We generated a token with --logintokenkey but it does not get accepted and ends in the Login-Screen.
MC in DebugMode gives:
Related to https://github.com/wh1te909/tacticalrmm/issues/987