Hi everyone
We're running 1.6 of Mediawiki and 1.2b of LDAP Authentication extension and everything is working well, we can successfully login to our AD domain. Before we make it live however, I want to hide the AD domain from the login screen.
When you go to the Special:Userlogin page, you get options; Username, Password and Your Domain (which is a drop down list) In our case, there will only ever be one domain that the users will login to, so we'd like to hide it from login screen.
Could anyone point me in the right direction for the bit of code that generates this HTML field,and if you can stop this from being displayed?
Any help is gratefully received.
Thanks
John
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
John Gardner wrote:
Hi everyone
We're running 1.6 of Mediawiki and 1.2b of LDAP Authentication extension and everything is working well, we can successfully login to our AD domain. Before we make it live however, I want to hide the AD domain from the login screen.
When you go to the Special:Userlogin page, you get options; Username, Password and Your Domain (which is a drop down list) In our case, there will only ever be one domain that the users will login to, so we'd like to hide it from login screen.
Could anyone point me in the right direction for the bit of code that generates this HTML field,and if you can stop this from being displayed?
Any help is gratefully received.
Thanks
John
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
When I was messing around with this, I wanted to do the same thing, but I just used CSS to hide it.
- -- Regards,
Simon Walker User:Stwalkerster on all public Wikimedia Foundation wikis Administrator on the English Wikipedia Developer of Helpmebot, the ACC tool, and Nubio 2 FAQ repository
When I was messing around with this, I wanted to do the same thing, but I just used CSS to hide it.
Simon
That's what I've done, but obviously anyone who looked at the source would be able to see the domain name and I'd like to remove the knowledge from anyone. ;-)
Thanks anyway.
John
That's what I've done, but obviously anyone who looked at the source would be able to see the domain name and I'd like to remove the knowledge from anyone. ;-)
You can:
1. Hide it with CSS like mentioned, and 2. Use a fake domain name; it doesn't have to be your real domain name, it can be whatever you want
V/r,
Ryan Lane
Ryan Lane wrote:
You can:
- Use a fake domain name; it doesn't have to be your real domain
name, it can be whatever you want
Ryan
I'm sorry if I fail to understand this... When you say, "it doesn't have to be your real domain" do you mean edit the template so we display one domain and then set the variable to the real domain in the template code?
Thanks for your LDAP integration work by the way.
John
I'm sorry if I fail to understand this... When you say, "it doesn't have to be your real domain" do you mean edit the template so we display one domain and then set the variable to the real domain in the template code?
You can set:
$wgLDAPDomainNames = array( "mydomain" );
To any thing you want. It is shown to the user (or not shown in your case), and used for the options that proceed it, but it doesn't matter how you set it. It isn't used for authentication to the domain, and doesn't have to match your real domain name.
Thanks for your LDAP integration work by the way.
No problem. I'm glad you find it useful.
V/r,
Ryan Lane
You can set:
$wgLDAPDomainNames = array( "mydomain" );
To any thing you want. It is shown to the user (or not shown in your case), and used for the options that proceed it, but it doesn't matter how you set it. It isn't used for authentication to the domain, and doesn't have to match your real domain name.
Ryan
I've altered $wgLDAPDomainNames in LocalSettings.php to a made up domain, but I can't login and I get the following error;
Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Can't contact LDAP server in /wiki/extensions/LdapAuthentication.php on line 217 Log in / create account
From Wiki
Jump to: navigation, search Login error: Incorrect password entered. Please try again. Log in
Again, Im probably missing something very fundamental here.
John
I've altered $wgLDAPDomainNames in LocalSettings.php to a made up domain, but I can't login and I get the following error;
Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Can't contact LDAP server in /wiki/extensions/LdapAuthentication.php on line 217 Log in / create account From Wiki Jump to: navigation, search Login error: Incorrect password entered. Please try again. Log in
Again, Im probably missing something very fundamental here.
If it was working before, and it isn't working now, you are changing the wrong thing.
What I was saying was to change your configuration from something like:
$wgLDAPDomainNames = array( "realdomainname" ); $wgLDAPServerNames = array( "realdomainname" => "exampleserver1.example.com" ); $wgLDAPSearchStrings = array ( "realdomainname" => "USER-NAME@REALDOMAIN" );
To something like:
$wgLDAPDomainNames = array( "fakedomainname" ); $wgLDAPServerNames = array( "fakedomainname" => "exampleserver1.example.com" ); $wgLDAPSearchStrings = array ( "fakedomainname" => "USER-NAME@REALDOMAIN" );
Notice that USER-NAME@REALDOMAIN doesn't change, since that is something that is actually used for authentication, and not something just used for the configuration.
V/r,
Ryan Lane
mediawiki-l@lists.wikimedia.org