Page 1 of 1

Email error 1200 with LDAP account

Posted: 17 Oct 2007, 08:12
by foobar47
Hello,

I recently connect my mantis 1.0.7 to our LDAP (AD 2K3) and connection works like a charm.
So, i can connect to mantis with my LDAP account and when i go to "My account" page, my email is retrieve correctly.
To be sure, i change it in LDAP and change take effect immediatly.

The problem is, when i click on "Update User" mantis gives me this error :
APPLICATION ERROR #1200
Invalid email
Where is the problem ?
I look in the code and it appear than this error is called when email_ensure_valid function is called :

Code: Select all

	# --------------------
	# Check if the email address is valid
	#  return true if it is, trigger an ERROR if it isn't
	function email_ensure_valid( $p_email ) {
		if ( !email_is_valid( $p_email ) ) {
			trigger_error( ERROR_EMAIL_INVALID, ERROR );
		}
	}
	# --------------------
One solution (which is not one) is to let email in MySQL database by turning $g_use_ldap_email to OFF

Is it a bug ?
Did anybody have this problem ?

Thanks in advance.
Regards.

Posted: 17 Oct 2007, 10:10
by deboutv
Do you look into the config_defaults_inc.php file to see if the email feats the requirements?

Posted: 17 Oct 2007, 12:51
by foobar47
Ok, this reported and hacked here :
http://www.mantisbt.org/bugs/view.php?id=4974
:roll:

Work like a charm !
I do the same for username ( http://www.mantisbt.org/bugs/view.php?id=7731 )

Reagrds