LDAP authentication using a personalized user template

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
Mikf
Posts: 47
Joined: Fri Aug 13, 2004 11:35 am
Location: Paris, France

LDAP authentication using a personalized user template

Post by Mikf »

Hi !

As in cacti, all users authenticated with ldap used the default "user template" (defined in global settings "authentication") to define the rights of the user.
We have written a patch to use a LDAP attribut that is containing the name of the user template to use.

Now, a user aaa can use the template template_admin
and a user bbb can use the template template_view_only. (as defined in the ldap attribut)

This patch add 2 options in the Authentication settings tab: (see picture)
a ldap attribut name : to set the name of the ldap attribut that will contain the name of the user template.
an option (on/off) : to overwrite the user created from the user template at each login, or not. (if we change the value of the attribut in the ldap for a user, the rights of this user are overwrited with the new template)

Jerome.
Attachments
options added to Authentication settings tab
options added to Authentication settings tab
ldap-options.jpg (38.03 KiB) Viewed 4880 times
ldap_template_attr.patch
Version 1.0 for cacti 0.8.7 -> 0.8.7b
12/Mar/2008
(3.35 KiB) Downloaded 466 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest