Hi all,
I want to authenticate in a LDAP server using Extension:LDAP Authentication, but my "uid" is "first_lastname" (underline character). My LDAP server receive "first lastname" (space). If my uid doesn't have the underline, i can ogin without problem.
How can I send the correct uid to LDAP server?
Where are the "str_replace" stuuf that remove the underline and make a space?
Thanks.
catim wrote:
Hi all,
I want to authenticate in a LDAP server using Extension:LDAP Authentication, but my "uid" is "first_lastname" (underline character). My LDAP server receive "first lastname" (space). If my uid doesn't have the underline, i can ogin without problem.
How can I send the correct uid to LDAP server?
Where are the "str_replace" stuuf that remove the underline and make a space?
Thanks.
There's a correlation between usernames and page names. It's all in the Title class. You're better adding a str_replace() before sending to the LDAP server.
Hi all,
I want to authenticate in a LDAP server using Extension:LDAP Authentication, but my "uid" is "first_lastname" (underline
character).
My LDAP server receive "first lastname" (space). If my uid doesn't have the underline, i can ogin without problem.
How can I send the correct uid to LDAP server?
Where are the "str_replace" stuuf that remove the underline and make a space?
Thanks.
User names must be valid MediaWiki page names. As such, the wiki is going to replace underscores with spaces. If your usernames always have underscore, and never have spaces, then you can munge the username in the authenticate function.
Since there is no real fix for this, no support will be added to the LDAP plugin. You'll have to make this change manually.
You might also consider not using underscores (or any special characters) in usernames, as many applications have issues with special characters in usernames.
V/r,
Ryan Lane
Hum....
I can't change the "uid" because we have a considerable number of users.
I resolve the problem editing the database in Postgres inserting a underline in nichname and using this rules in Ldapplugin:
$this->mDbkeyform = $dbkey; $this->mUrlform = wfUrlencode( $dbkey ); $contador++; #$this->mTextform = str_replace( '_', ' ', $dbkey ); if($contador==3) $this->mTextform = $dbkey; else $this->mTextform = str_replace( '_', ' ', $dbkey ); return true;
Now I can create a user and login sucesfully :)
Thanks for everything =)
Lane, Ryan escreveu:
Hi all,
I want to authenticate in a LDAP server using Extension:LDAP Authentication, but my "uid" is "first_lastname" (underline
character).
My LDAP server receive "first lastname" (space). If my uid doesn't have the underline, i can ogin without problem.
How can I send the correct uid to LDAP server?
Where are the "str_replace" stuuf that remove the underline and make a space?
Thanks.
User names must be valid MediaWiki page names. As such, the wiki is going to replace underscores with spaces. If your usernames always have underscore, and never have spaces, then you can munge the username in the authenticate function.
Since there is no real fix for this, no support will be added to the LDAP plugin. You'll have to make this change manually.
You might also consider not using underscores (or any special characters) in usernames, as many applications have issues with special characters in usernames.
V/r,
Ryan Lane
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org