View Issue Details

IDProjectCategoryView StatusLast Update
0034835mantisbtauthenticationpublic2024-10-10 03:47
Reporterjayalal Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version2.27.0 
Summary0034835: when user logs in using LDAP - the email address and name are emptied at the database
Description

I have kept the following in the config file
$g_use_ldap_email = ON;
$g_use_ldap_real_name = ON;

But when the user logs in successfully using LDAP authentication, the email gets emptied.
where as if I keep the above off, the login itself is disabled.

TagsNo tags attached.

Activities

dregad

dregad

2024-10-10 03:47

developer   ~0069320

when the user logs in successfully using LDAP authentication, the email gets emptied

When $g_use_ldap_XXXX is ON, Mantis will retrieve the data (email or realname) from the directory based on the corresponding config $g_ldap_XXXX_field, then store that in the user table as a cache to limit the number of LDAP queries performed by MantisBT in day-to-day usage.

If the fields come back empty, then maybe you did not configure $g_ldap_XXXX_field. You can review what is being retrieved from LDAP by setting $g_log_level = LOG_LDAP; in your config_inc.php, and review the log file.

if I keep the above off, the login itself is disabled

That does not make sense. The $g_use_ldap_XXXX configs should have no impact on the login process.
Please clarify (detailed errors, full config state, step-by-step instructions to reproduce the problem).