summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 91d4cb3)
raw | patch | inline | side by side (parent: 91d4cb3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Mar 2006 07:59:05 +0000 (07:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Mar 2006 07:59:05 +0000 (07:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2875 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/mail/class_mailAccount.inc | patch | blob | history |
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 13256a3cf56ddcb7a858c82e0b653cd5a9f7bbe4..3273d571155e0fe201c5188527595fe041284ed6 100644 (file)
unset($this->attrs['gosaSpamMailbox']);
}
+ $this->attrs['mail'] = strtolower($this->attrs['mail']);
+
/* Save data to LDAP */
$ldap->cd($this->dn);
$this->cleanup();
}
}
$ldap->cd($this->config->current['BASE']);
- echo "(&(!(objectClass=gosaUserTemplate))(objectClass=gosaMailAccount)(|(mail=".$this->mail.")(gosaMailAlternateAddress=".$this->mail."))(! (uid=".$this->uid."))(!(cn=".$this->uid.")))";
$ldap->search ("(&(!(objectClass=gosaUserTemplate))(objectClass=gosaMailAccount)(|(mail=".$this->mail.")(gosaMailAlternateAddress=".$this->mail."))(!(uid=".$this->uid."))(!(cn=".$this->uid.")))", array("uid"));
if ($ldap->count() != 0){
$message[]= _("The primary address you've entered is already in use.");