Ubuntu – put custom phpldapadmin templates on Ubuntu

ldaptemplatesUbuntu

I have a server running Ubuntu 9.10, openLDAP and phpldapadmin. The latter has the ability to use templates to streamline node creation and I want to use a custom template as described here.

My installation (which was done by apt-get) seems to be located at /usr/share/phpldapadmin/, but instead of containing a templates subdirectory, it contains a symlink to /etc/phpldapadmin/templates. True to form, this directory is locked down. When I break in, I'm greeted with a stark absence of any actual templates, let alone the example.xml file I've been instructed to crib from.

Does anybody know where I ought to place my custom templates? (Bonus points if you can tell me where to find example.xml.)

Best Answer

I'm an idiot. The permissions were all whack, but the templates were in two subdirectories: creation and modification.

After changing the permissions, it's possible to copy example.xml (or any template) and create new ones.

Be sure to set the permissions on the new file correctly though. Oh, and purge the cache!