Comparing revisions for ActiveDirectory

Additions:
Using wikka as an Intranet knowledge management system...
ALTER TABLE `wikka_users` ADD `alias`...I have no access to my DB right now and cannot remember what I put (alias is similar to the name field);
"active_directory" => "1",
if (($this->config["active_directory"]) && (!$this->GetUser())) {
The current system of registration will still work for the users out of the ActiveDirectory with no alias in the users database . The capabilities can be set off by putting "active_directory" => "0" in the wikka.config.php.
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:
Using wikka as an Intranet knowledge management system, I don't want my user to signin in wikka because they already are known since they signed when booting their computer. However, we want to secure some pages through ACLs and we want to keep track of the modifications...
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
ALTER TABLE `wikka_users` ADD `alias` VARCHAR(75) NOT NULL
"user_identification" => "active_directory",
~&how about an entry like "user_identification" with the values "wikka" and "active_directory"? Would make it easier to add other systems --NilsLindenberg
~~&I agree - LDAP would be another option to add (some time) --JavaWoman
~~~&Truly true - and it is done, good idea --ChristianBarthelemy
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
The current system of registration will still work for the users out of the ActiveDirectory with no alias in the users database . The capabilities can be set off by putting "user_identification" => "wikka" (default value) in the wikka.config.php.
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