Loading...
 
Skip to main content

History: Tiki Suite LDAP

Preview of version: 56

LDAP's role is central in ClearOS & Tiki Suite. So here is a page to centralize all documentation & issues. Everything related to LDAP and any component of Tiki Suite (Tiki, Prosody, Thunderbird, etc.) should be here or a link to it..

Configuring Tiki to work with ClearOS's LDAP

If Tiki is installed on the ClearOS which has OpenLDAP

Works with 12.2: A user enters his own username/password (which are managed in ClearOS), and the user is logged in to Tiki.

  • tiki-admin.php?page=login -> General preferences -> Authentication Method: Tiki and LDAP
  • tiki-admin.php?page=login -> LDAP ->check "Create user if not in Tiki"


For the other settings, no need to change when the Tiki is installed on the same machine as ClearOS

unconfirmed bug with 12.0 and 12.1: http://dev.tiki.org/item4816

If Tiki and ClearOS-LDAP are on different servers

tips from Peter 2014-02-25
Copy to clipboard
For security reasons, anonymous binds are only allowed from localhost. To allow anonymous binds from remote connections, change the last configuration block in /etc/openldap/slapd.conf from: access to * by self write by peername.ip=127.0.0.1 read by * none stop To: access to * by self write by * read by * none stop And restart LDAP: service slapd restart The Tiki configuration is almost the same as the attached screenshot. Changes: - Hostname - Port (636) - Use SSL (enabled) - Base DN (whatever it is on the remote LDAP server)


No such attachment on this page

Old info (still valid?) "If the site is accessible via LDAPS, you need to use the port 636, otherwise the port 389. In this situation you can still access from the same server ldaps via 389 "Publish Policy" to "Local Network". This will set LDAP to listen for incoming requests on your LAN interface. See also:
http://doc.tiki.org/LDAP+authentication#Certificate_Problems"

Peter Baldwin (2014-03-04) wrote:

TLS on http://demo.tiki.org

For some reason, I am unable to enable SSL support in the Tiki LDAP settings. I see a TLS error in the tikisuite.org LDAP logs, but I have no idea what's going on the client side. Any clues to what is happening on the client side? It has something to do with the client-side SSL/TLS settings (Ubuntu?). I can't duplicate this issue in my development environment (a ClearOS client).

Todos

Solve binding

Advice from Peter (ClearOS) wrote:

It does not look like the LDAP connector in Tiki Wiki includes native support for the "LDAP Bind Type". It uses the following format for authenticating users:

uid=test,ou=Users,ou=Accounts,dc=clear6,dc=lan

But ClearOS uses:

cn=test guy3,ou=Users,ou=Accounts,dc=clear6,dc=lan

Why does ClearOS use a full name instead of a username? The gory technical details are explained by David in this bug report:

http://tracker.clearfoundation.com/view.php?id=129

I can probably hack the code to add a new "LDAP Bind Type". I'll give it a try.



So it looks like we need a new ClearOS "bind_type" in lib/auth/ldap.php

Sync user data from ClearOS-LDAP to Tiki upon login

According to http://doc.tiki.org/LDAP+authentication#How_it_works, all this should work if properly configured. Perhaps by solving the binding above, it will all work? 😊

  • Users full name
  • Users email address
  • Users country information
  • Users group membership
  • Group name and description


Should there be a "create group if it doesn't exist" option? So Tiki wouldn't be polluted by unused groups from LDAP.

Self-registration via Tiki

A note from Peter (ClearOS)
Copy to clipboard
What happens with LDAP if it's a Tiki-powered site that users self-register? One option: hook into the ClearOS API. A code example looks something like: $user = User_Factory::create('test_user'); $user_info['core']['first_name'] = 'Test'; $user_info['core']['last_name'] = 'User'; $user->add($user_info, 'password'); You can add e-mail addresses, and whatever other data you see in the web-based interface. The API is agnostic to the accounts engine (notably, OpenLDAP and Samba 4 Directory).

Sync OpenLDAP & Tracker data

Prevent naming conflicts

In terms of sync of users/groups between ClearOS & Tiki, analyze & document any limitation to avoid future issues

  • See ClearOS conventions for usernames & passwords
  • In Tiki, groups can have the same name as a user, but not in ClearOS
  • In TIki, restrictions on usernames are configurable. See tiki-admin.php?page=login -> General preferences -> Username
    • Use email as username
    • Minimum & Maximum length
    • Force lowercase
    • Username pattern

Make a Tiki Suite profile

With all the optional configuration at tiki-admin.php?page=login (LDAP tab), improve Tiki Suite profile.

FreeSWITCH

This is for later. Here are some notes

Documentation

Feature requests & bug reports

Developer info

Any development should be done in trunk, and backported to 12.x LTS and/or 13.x if relevant. See Where to commit

https://www.openhub.net/p/compare?project_0=phpLDAPadmin&project_1=LDAP+Account+Manager&project_2=LdapSaisie






History

Information Version
Marc Laporte Removing all references to tikisuite.org since domain has been deleted (now everything is WikiSuite.org) 79
View
Marc Laporte Thank you Michael Faille for this suggestion 78
View
Marc Laporte 77
View
Marc Laporte Prosody -> Openfire and Zarafa -> Kolab+Roundcube 76
View
Marc Laporte 75
View
Marc Laporte Image Plugin modified by editor. 74
View
Marc Laporte 73
View
Marc Laporte 72
View
Marc Laporte 71
View
Marc Laporte Moving Self-registration via Tiki to lower spot 70
View
Marc Laporte 69
View
Marc Laporte 68
View
Marc Laporte 67
View
Marc Laporte 66
View
Marc Laporte 65
View
Marc Laporte 64
View
Marc Laporte 63
View
Marc Laporte 62
View
Marc Laporte already on page 61
View
Marc Laporte 60
View
Marc Laporte SabreDAV 59
View
Marc Laporte 58
View
Marc Laporte 57
View
Marc Laporte 56
View
Marc Laporte 55
View
  • «
  • 1 (current)
  • 2