Loading...
 
LDAP / Active directory

LDAP / Active directory


pear::Auth via LDAP returns blank screen at tiki-login.php

I'm trying to configure pear::Auth so I can use LDAP authentication.

I currently have apache2/tiki 1.9.2 on a debian testing server.

I have changed the configuration in the login admin tab to use tiki/pear
Auth and submitted the correct details into the pear
Auth configuration.


At this point I can no longer login as a user, though it works still for admin as I have "tiki auth for admin" set.

I attempt to login and I get sent to the tiki-login.php page which has no content, not even empty <html> tags, just completely empty.

I can tail the logfiles on my LDAP server and see that there is no connection being made from the seperate tikiwiki server. The LDAP details are correct. I have tried hostname and IP address.

I have also added:
ini_set('display_errors','1');
error_reporting (E_ALL);
to the top of tiki-install.php but still get no errors.

The database is populated and has been in use with tiki auth for some time so it should have something to display.

Any suggestionswill be most appreciated,
Dave

My version is 1.9.3.1

I can not set LDAP either, it is also a blank login page.
What I did is:

Modify the PHP.ini to enable
extension=php_ldap.dll

modify
LDAP.php
function fetchData($username, $password)
from
// make search filter
$filter = sprintf('(&(objectClass=No value assigneds=%s))', $this->options'useroc', $this->options'userattr', $username);
to

$filter = "alias=".$username;

modify
auth.php
function login()
from
if (true === $this->storage->fetchData($this->username, $this->password)) {

to

if (true == $this->storage->fetchData($this->username, $this->password)) {


modify
userslib.php
from
if ($create_tiki) {
..
}
else
return false;

to
if ($create_tiki) {
..
}
else
// otherwise
{ // just say no!
if ($userAuth && $userAuthPresent)
{
return true;
}
else
return false;
}

Modify the
userslib.php
function is_due($user)
from

if ($this->get_preference('auth_method', 'tiki') 'cas'
$change_password != 'y') {
return false;
to
if ($this->get_preference('auth_method', 'tiki') 'auth'
$this->get_preference('auth_method', 'tiki') == 'cas' || $change_password != 'y') {

return false;



after these, I can login with LDAP.

However, I can not access myTiki.

set

Create user if not in Tiki?

to checked

in the admin form,

we can access myTiki,

However, I am wondering modifying LDAP password will cause user can not login in tikiwiki.

Since we checked
Create user if not in Tiki?

The following are NOT needed.

modify
userslib.php
from
if ($create_tiki) {
..
}
else
return false;

to
if ($create_tiki) {
..
}
else
// otherwise
{ // just say no!
if ($userAuth && $userAuthPresent)
{
return true;
}
else
return false;
}

Since the previous change, the following are NOT needed.

Modify the
userslib.php
function is_due($user)
from
if ($this->get_preference('auth_method', 'tiki') == 'cas' $change_password != 'y') {
return false;
to
if ($this->get_preference('auth_method', 'tiki') == 'auth'
$this->get_preference('auth_method', 'tiki') == 'cas' || $change_password != 'y') {
return false;



So basically, just change = to
And I tested the situation that changing LDAP password will NOT cause any problem during login tiki.

also

set

LDAP User OC:

to *

then you do NOT need following

modify
LDAP.php
function fetchData($username, $password)
from
// make search filter
$filter = sprintf('(&(objectClass=NaVs=%s))', $this->options'useroc', $this->options'userattr', $username);
to

$filter = "alias=".$username;


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting