Email error 1200 with LDAP account

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
foobar47
Posts: 3
Joined: 16 Oct 2007, 16:19

Email error 1200 with LDAP account

Post 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.
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

Do you look into the config_defaults_inc.php file to see if the email feats the requirements?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
foobar47
Posts: 3
Joined: 16 Oct 2007, 16:19

Post 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
Post Reply