Loading...
 
Skip to main content

LDAP / Active directory


Re: Re: Need help in setting up LDAP with Active Directory

Well i've managed to get it working with these settings, but there was some bug.
Even if i've found a user and it's password is correct, parames returned from list($isvalid, $user, $error) = $userlib->validate_user($user, $pass, $challenge, $response); $isvalid was always false. in userlib function validate_user there was no check that user is authenticated by ldap and it always returned false. I've fixed it by adding
elseif ($userAuth && $userAuthPresent)
return array($userAuth, $user, $result);
in branch // if the user was logged into Auth but not found in Tiki
elseif ($userAuth && !$userTikiPresent)

LDAP Host: Server IP
LDAP Port: 389
LDAP Scope: sub
LDAP Base DN: cn=Users,dc=company,dc=com
LDAP User Attribute: sAMAccountName
LDAP User OC: User
LDAP Member Is DN: n
LDAP Admin User: username (display name)
LDAP Admin Pwd: password
LDAP Version: 3
LDAP Realname Attribute: displayName


-

If i understood the configuration correct TikiWiki created a new user in its db by copying it from LDAP if Create user if not in Tiki? is false, then a user couldn't login in system by using LDAP.