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

Granted role does not work with non-ascii username [CORE4743] #5048

Closed
firebird-issue-importer opened this issue Apr 9, 2015 · 9 comments
Closed

Comments

@firebird-issue-importer
Copy link

firebird-issue-importer commented Apr 9, 2015

Submitted by: Maxim Kuzmin (cybermax)

We using a user names in native, russian language. But using granted role not possible.
Example:
1. Executing GRANT USER_ROLE TO "DOMAIN\ПОЛЬЗОВАТЕЛЬ".

2. Work through isql:
c:\Program Files (x86)\Firebird\Firebird_2_5\bin>isql -ch win1251 -r user_role -tr
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect server:some_path_to_db.fdb;
Database: server:some_path_to_db.fdb, Role: USER_ROLE
SQL> select mon$user, mon$role from mon$attachments;

MON$USER MON$ROLE
=============================== ===============================
DOMAIN\ПОЛЬЗОВАТЕЛЬ NONE

If using user name in english language, its work - in MON$ROLE - USER_ROLE.

Commits: bab9ce6 FirebirdSQL/fbt-repository@6e3874f

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 9, 2015

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 18, 2015

Modified by: @AlexPeshkoff

summary: Windows trusted authentication and granted role not work with username in russian => Granted role does not work with non-ascii username

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 18, 2015

Commented by: @AlexPeshkoff

Maxim, please try 3.0 windows snapshot build (hope it will be ready for 20 od April).
With login/password authentication I get:

localhost bin #⁠ ./isql -user польз -pass 123 -role somerole localhost:employee
Database: localhost:employee, User: польз, Role: SOMEROLE
SQL> select mon$user, mon$role from mon$attachments;

MON$USER MON$ROLE
=============================== ===============================
ПОЛЬЗ SOMEROLE

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 19, 2015

Commented by: Maxim Kuzmin (cybermax)

Alex, now OK. I connected through TA (russian username) with custom role and it be used.
Patch for 2.5 wil be applied?

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 22, 2015

Commented by: @AlexPeshkoff

What about 2.5 - dumb backport does not work, and I do not think it's worth seriously changing stable branch.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 22, 2015

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 2 [ 10586 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 14, 2015

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Deferred

Test Details: Config parameter 'UserManager' need to be = 'Srp'. Currently all tests run under 'Legacy_UserManager'.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 11, 2021

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Deferred => Done successfully

Test Details: Config parameter 'UserManager' need to be = 'Srp'. Currently all tests run under 'Legacy_UserManager'. =>

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 11, 2021

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants