Skip to content

Instantly share code, notes, and snippets.

@mpstenson
Created July 15, 2020 14:43
Show Gist options
  • Save mpstenson/259a088945a4506f41120499d5c0b646 to your computer and use it in GitHub Desktop.
Save mpstenson/259a088945a4506f41120499d5c0b646 to your computer and use it in GitHub Desktop.
This blackbox portal file loads a different ldap configuration based on the portal you are visiting. Useful for if you need multiple configurations of adldap.php for different domains
if (cMULTIPORTAL == 1) {
//if in secondary portal id 1 load adLDAP-1.php
require_once("adLDAP-1.php");
}
else{
//if we are not in a secondary portal load the default file.
require_once("adLDAP.php");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment