Skip to content

When using User Domains, global template user is used instead of the configured domain template user #3240

Description

@arno-st

when multiple LDAP authentication are created, and group is mandatory, the code copy the default user template, not the one define into the 'User Domain' settings.

on Cacti 1.2.8
Looking into the code I think the error is on auth_login.php, line 505 and following:
If it's the first time the user login in, we go enter the IF function
on Line 500 we where able to qet the right 'template_user' from the 'User Domain' definition.
But on line 509 it make a query on the DB using the get_template_account() function (taken from functions.php line 2358) and this one look into the setting, so the simple LDAP auth. This record is not even visible on Cacti GUI when selecting multip LDAP auth.

Changing the line 512: array(get_template_account()));
to : array($template_user));

I think It will fix the problem!

Metadata

Metadata

Assignees

Labels

bugUndesired behaviourresolvedA fixed issue

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions