[Kroupware] Web interface frontend
Brad Hards
kroupware@mail.kde.org
Thu, 26 Sep 2002 09:29:50 +1000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 26 Sep 2002 08:41, Andreas Jellinghaus wrote:
> what i have so far is:
> - login
> - logout
> - change password
>
> and for admins
> - create user
> - change users password
>
> and i need to port from php codebase to perl codebase:
> - vacation
> - list users
While I'm making random suggestions, the e-smith (http://www.e-smith.org) guys
have this down to a fine art. Most of the system is templated, and runs from
a central database. Its all in perl. GPLd. Allows for custom templates,
automatically merges it all. Very nice. It is somewhat tied to the redhat
system, but you could dump the internal parts, probably.
For example, in the templates for /etc/openldap/slapd.conf, there are a number
of different files.
Here is what the file 65Suffix looks like:
suffix "{ esmith::util::ldapBase ($DomainName); }"
And 70Directory
directory /var/lib/ldap
And here is 75Domain
rootdn "cn=root,{ esmith::util::ldapBase ($DomainName); }"
When the templates get processed, those files end up looking like the
following lines in /etc/openldap/slapd.conf:
suffix "dc=cuneata,dc=net"
directory /var/lib/ldap
rootdn "cn=root,dc=cuneata,dc=net"
[So ldapBase() munges the value of DomainName into LDAP form. DomainName is
set in the web front end]
The really magic part is that if the domain name (or IP address, or whatever)
changes, then you only update the central registry, and it gets reflected for
every application. Now the central registry isn't in LDAP, and LDAP can solve
some of the problem for you, but for application configuration that can't
live in LDAP, this is a nice approach.
The 5.5 version uses FormMagick, and you can i18n it fairly easy (well, unless
you're mono-lingual like me).
Brad
- --
http://conf.linux.org.au. 22-25Jan2003. Perth, Aust. Tickets booked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9kkbuW6pHgIdAuOMRAl3wAJ9wGbCU+NY6bTHA+fwlfRFLqBGj+QCggUOI
Np25iwq+mbVooxsPDwaEDN8=
=+AhE
-----END PGP SIGNATURE-----