if (strstr($dc, ':')) list($dc, $port) = explode(':', $dc);
switch($enableSsl){
case 1:
$connection = ldap_connect($protocol.$dc);
break;
case 2:
case 0:
default:
if(isset($port)){
$connection = ldap_connect($dc,$port);
} else {
$connection = ldap_connect($dc);
}
break;
}
To this:
if (strstr($dc, ':')) list($dc, $port) = explode(':', $dc);
switch($enableSsl){
case 1:
if(isset($port)){
$connection = ldap_connect($protocol.$dc.':'.$port);
} else {
$connection = ldap_connect($protocol.$dc);
}
break;
case 2:
case 0:
default:
if(isset($port)){
$connection = ldap_connect($dc,$port);
} else {
$connection = ldap_connect($dc);
}
break;
}
I make this modification to this plugin every time I download an update to it. It works quite well (our LDAPS port is 10636).
Maybe consider including this modification into the official source (and removing the note later on about alternate ports not working)?
https://www.ads-software.com/plugins/wpdirauth/
]]>define('DB_HOST', 'localhost:81');
and everything seemed to be working fine for several days, but after a weekend of the computer being off now I am having issues connecting to the database.
I have been looking around for solutions and have made the following changes:
define('DB_HOST', 'localhost:3307');
None of these things seemed to work or change anything at all. I think it might have something to do with my xampp, which says “A MySQL server is not running or is blocked by a firewall!” on the https://localhost:81/security/index.php page. This is odd since the xampp control panel clearly shows that not only is MySQL running, but it is running on port 3307 just like I specified, and it is clear from my firewall changes that this should not be blocked in any way.
Does anyone have any clue what I’ve done wrong?
]]>This does not happen. What happens is that the wordpress at port 8888 then redirects to the same folder, but to the server running on port 80. It took me a while to realize what was happening, because there was not wordpress/ directory on the Mac, and it was giving a 404 error. I created that directory, and stuck a simple index.html page in to redirect back to the Ubuntu server. Of course, I got a nice redirect loop going on.
I’m guessing that the wordpress install doesn’t realize that to the outside world, it’s on port 8888, and some script tells it to return port 80, which sends the browser back to the Mac server. I don’t want to run wordpress on the Mac server. Is there any way to set it so that I can run wordpress on my Ubuntu server NAT routed on port 8888?
]]>The automatic update doesn’t have an option to supply an alternate port. Is there a way to specify this (other than hacking the source)?
]]>I am able to connect to the db, because if I remove the “:3307” from localhost, it immediately gives a db connection error. As it stands now, nothing ever loads.
My user, ncdiabetesgroup, has full rights to the db. To double check this, I even tried my root user, which of course has full permissions as well. NO change whatsoever using root versus ‘ncdiabetesgroup’
My actual db is still an empty schema as the installer never really does anything. I never even see the welcome screen.
I am beyond totally puzzled on this one. And with the famous 5 minute installation, I’ve been at it almost 3 hours. I have tried every combination of DB_HOST I can think of including: 127.0.0.1, 127.0.0.1:3306, 127.0.0.1:3307, localhost, localhost:3306, localhost:3307, 69.59.155.174, 69.59.155.174:3306, 69.59.155.174:3307 etc. Anything that does not have 3307 attached will fail immediately. But the others again just timeout with no error.
Alternately, I am running the MySQL ADBC connector and it works like a champ for everything else. Can WP run using a DSN?
You can view my page here: https://www.ncdiabetesgroup.org/ncblog/wp-admin/install.php
Any assistance would be **GREATLY** appreciated. Thanks so much community members.
]]>