Patches

The multiple group patch and content length patches are now included in WB 2.7

LDAP Support

Adds LDAP support to Website Baker. The Multiple Groups patch must be applied before applying this patch. This patch must also be applied prior to running the WB install script.

Applying the patch creates a new 'Step 8 (LDAP)' in the WB install script which writes a ldap_config.php in the root of the site (which can modified at any stage). It will also add an additional option in the group admin page for 'ldap dn'. By entering the full distinguished name for the ldap group, members will automatically become part of that WB group.

Users are created and updated from LDAP to WB when logging in via the front end (account/login.php) so  'Login' must be enabed in the settings. The admin/login.php doesn't use ldap, but instead uses WBs usernames and passwords - this is important to note as removed ldap accounts will exist in WB and can be used from the admin login. To avoid this you could disable the admin login or point it to use the login_ldap.php.

I've only tested this on Novell's eDirectory but it should work with AD and open ldap. It'd be great to hear any feedback on this.

wb-ldap.patch (WB version 2.6.7)

wb2.7-ldap.patch (ldap patch for 2.7)

Install fields:

Hostname: The ldap server.
Search Base: The location in your directory to start searching.
Bind User DN: If you need to authenticate to search for the user logging in.
Bind Password: Password for above.

Username: ldap attribute to use for WB username.
Password: ldap attribute to use for WB password.
Given Name: ldap attribute to use to make up first part of WB full name.
Surname: ldap attribute to use to make up second part of WB full name.
Email: ldap attribute to use for WB email.
Group Membership: ldap attribute (of a user) containing the group DN.
Admin Username: ldap username to use as WB administrator.

Media Browse Enhancements

This is a very simple patch that makes the select boxes and browse pane of the 'Media' admin synchronise when changed (with javascript). This patch can be applied at any time.

 

wb-media-enhancements.patch (WB version 2.6.7 - may need a few modifications for 2.7)