Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.3
-
None
-
a59dab3c6785b7db38f2f43a2fcd8e29c96775af, 43d4faf686da7d553171d7c8894c2825b4572dd6(4.8), f74ff46c7a333d771b07d8ff38df10d9fd13bbcf(5.0)
Description
If the user name is given as 'domain\user', then it is parsed correctly.
But when user name looks like 'user@domain', it is parsed wrong.
This is fragment from file network\kernel\qauthenticator.cpp (with line numbers)
223> } else if((separatorPosn = user.indexOf(QLatin1String("@"))) != -1) { 224> //domain name is present 225> d->realm.clear(); 226> d->userDomain = user.left(separatorPosn); 227> d->extractedUser = user.left(separatorPosn); 228> d->user = user; 229> }
The problem is in line 226.
Attachments
Issue Links
- replaces
-
QTBUG-20965 When calling setUser() in QAuthenticator for an Md5digest auth then the realm is cleared, preventing the authentication
- Closed
For Gerrit Dashboard: QTBUG-19894 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
507,1 | QAuthenticator::setUser() parse user name in form user@domain | master | qt/qtbase | Status: MERGED | +2 | 0 |
10873,1 | Fix NTLM authentication with email address | master | qt/qtbase | Status: MERGED | +2 | 0 |