Tiki LDAP FAQ
Questions
Answers
normaly dc=yourDomain, dc=com
PHP Tiki LDAP User Authentication
Environment: IIS 5.0, PHP 4.3.3, Tiki 1.7.1.1, Windows 2000 SP 3 (German). Active Directory is on another server, also Windows 2000 SP3 (German).
Note that only the configuration changes from the default are described here. - activate extension php_ldap.dll in php.ini - copy all dll's from the PHP directory (e.g., c:\php\dlls) to a directory where Windows can find them (e.g., c:\winnt\system32) or add this directory to PATH or just copy the files ssleay32.dll and libeay32.dll (for PHP >= 4.3.0, or libsasl.dll for PHP < 4.3.0) where Windows can find them. See PHPs install.txt. - Login to Tiki as Admin and go to the Login configuration page accessed by selecting 'Admin (click!)' - in the 'User registration and login' section, set 'Authentication method' to 'Tiki and PEAR::Auth' - in the 'PEAR::Auth' section, activate 'Create user if not in Tiki?' - in the 'PEAR::Auth' section, set 'LDAP Host:' to the Active Directory server's name or IP address - in the 'PEAR::Auth' section, set 'LDAP Base DN:' to the LDAP version of the domain name as it appears in 'Active Directory Users and Computers'. E.g., if the domain is called my-domain.local, set this to 'dc=my-domain,dc=local' - in the 'PEAR::Auth' section, set 'LDAP User Attribute:' to 'sAMAccountName' - in the 'PEAR::Auth' section, set 'LDAP User OC:' to 'User'
By default, Active Directory does not allow anonymous ldap_search! Therefore, you have to make a small change in lib\pear\AUTH\Container\LDAP.php in order to ldap_bind with a user account that has the right to do so: in the function _connect(), change the line (189) if @ldap_bind($this->conn_id? == false) { to if @ldap_bind($this->conn_id,"someuser","somepassword"? == false) { where "someuser" is an existing Active Directory user with the password "somepassword". Specify the username as , if the domain is called my-company.local. Obviously, you best create a new user account for this.
I've found this listed twice in the "suggested questions" box, and have just done it to myself, as well. I think that three makes it officially a FAQ.
Does anyone know how I can reset the login perms and point to any docs on what needs to be done BEFORE turning on this authentication function? Thanks! Patrick Salsbury
Sidebar
Sidebar
Search by Page Name
Shoutbox
TikiTweets
- TikiWiki: Tiki Receives Best of Open Source Software Applications Award http://bit.ly/bXs2tY #TikiWiki
- TikiWiki: TikiFest New York: Countdown to Tiki 6 http://bit.ly/9qMf1i #TikiWiki
- TikiWiki: BigBlueButton and Multilingual Improvements Emerge from TikiFest Ottawa http://bit.ly/9krNJl #TikiWiki
- TikiWiki: Calling All Translators! http://bit.ly/bn7XkY #TikiWiki
- TikiWiki: Nominate Tiki for the Packt 2010 Open Source Awards http://bit.ly/bbbAw9 #TikiWiki
- TikiWiki: You're Invitated to the TikiFest / BigBlueButton Wine and Cheese Event http://bit.ly/c84PfM #TikiWiki
- TikiWiki: Tiki 5.1 Now Available http://bit.ly/dsu70R #TikiWiki
- TikiWiki: Tiki 5.1 RC1 Now Available http://bit.ly/bcaSI2 #TikiWiki
- TikiWiki: TikiFest Barcelona Wraps Up With Great Progress http://bit.ly/cPN9B1 #TikiWiki
- TikiWiki: Tiki Community Releases First Video Interview http://bit.ly/d7Yheg #TikiWiki

