Comparing revisions for ActiveDirectory

Additions:
So here is a quick and dirty solution that works but still as a prototype.
if (($this->config["user_identification"]="active_directory") && (!$this->GetUser())) {
First, the users have to be somehow created (I would expect this do be done through a batch import of an ActiveDirectory). To test it quickly, simply fill the alias field with your ActiveDirectory alias and its done. You will not have to sign again and the system will recognise you.
Deletions:
So here is a quick and dirty solution that works but still as a prototype and it is only checking the computer name for now.
===Prerequisites===
You must allow php_ldap
Shouldn't it be Wakka.class.php now??? /AndreasHeintze
if (($this->config["user_identification"]=="active_directory") && (!$this->GetUser()))
{
~&Christian, I changed
~&%%(php)
if (($this->config["user_identification"]="active_directory") && (!$this->GetUser()))
%% to
~&%%(php)
if (($this->config["user_identification"]=="active_directory") && (!$this->GetUser()))%%
~&--NilsLindenberg
~~&I found that in my intranet environment I needed to modify the function ""GetUserName()"" in wikka.php to use the AUTH_USER server variable:
~~&%%(php)
function GetUserName() {
if ($user = $this->GetUser())
$name = $user["name"];
// start of new code
else if (!$name = $_SERVER["AUTH_USER"])
$name = $_SERVER["AUTH_USER"];
//end of new code
else if (!$name = gethostbyaddr($_SERVER["REMOTE_ADDR"]))
$name = $_SERVER["REMOTE_ADDR"];
return $name;
}
~~&--JulianElve
First, the users have to be somehow created (I would expect this do be done through a batch import of an ActiveDirectory). To test it quickly, simply fill the alias field with your computer name alias and its done. You will not have to sign again and the system will recognise your machine.
Identify the ActiveDirectory ID of the user (not only the computer).
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki