Last modified: 2011-03-13 18:04:48 UTC
wrong Username; "_" underline are not underline
I have a big problem with the LogIn. Everytime users LogIn with an "_" underline in the name, cant
LogIn. the system ignors the sign. For example the user Brockmeyer_S wants to log in and the system
answers "User Brockmeyer S unknown" why?
And where can it changed?
The underscore character isn't supported within usernames, as it is used to
denote spaces within page titles and so forth.
But how can i change it?
Usernames must accept underlines
The wiki's title normalization considers spaces and underscores
equivalent, and usernames are a subset of page titles. If you 'need'
underscores, this implies you are using some kind of external
authentication system. You'll need to modify that system to work correctly
within the wiki, or else make significant hacks to how your wiki works.
but in the Version 1.4 of MediaWiki Underscores in Names works.
Yes, and that's since been phased out in order to make the behaviour consistent
across the software. I don't see underscores in usernames being supported in a
future version. Can't you modify the authentication system you are using, as
No its an Global Authentication System of a company with more than 5.000
Accounts. in 4 countrys. And i dont belive that they change it for an access to
the own Wiki.
Mh than its esayer to change the MediaWiki i ll hope
As Brion said, you'll have to hack away at it to get it to work. Perhaps if
they're that large a company, and they want to use the software, they can use
some in-house coders to do the modifications? Regardless, the point here is
that it is not up to us to modify the software to fit the express request of any
organisation other than the Wikimedia foundation; the software is "provided
as-is in the hopes that it will be useful" remember. And I don't see us changing
the way we handle underscores and possibly crippling our own projects. Sorry.
*** Bug 19612 has been marked as a duplicate of this bug. ***
It is ok that mediawiki is not accepting underscore. My user name with underscore and mediawiki is working fine. i just have a problem with displaying them. For eg.
My Username is: Test_Account
If i tried login using that username it works fine with our LDAP code in mediawiki but when we are creating that users if it is not in mediawiki database it store as "Test Account" (without underscore) Now if i want to by pass that logic that is replacing _ in username what needs to be done and where?
If this is not possible to modify that logic then how can we just replace back the underscore in username with space at the time of display.
If you can help me to resolve this issue I will be thank full to you.