summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c742134)
raw | patch | inline | side by side (parent: c742134)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Jun 2007 12:37:20 +0000 (12:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Jun 2007 12:37:20 +0000 (12:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6627 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/scalix/class_scalixAccount.inc | patch | blob | history |
diff --git a/plugins/personal/scalix/class_scalixAccount.inc b/plugins/personal/scalix/class_scalixAccount.inc
index 7f41d7e7d0f1ec1075d510f2a4003359ecc456ea..b57cb93fa610106f5baeaa65cac9ebf3ec717e59 100644 (file)
var $scalixHideUserEntry= FALSE;
var $scalixMailboxClass= "";
+ var $uid ="";
var $default_permissions= "none";
var $member_permissions= "post";
var $members= array();
/* Load attributes */
if ($dn != "new"){
- $this->uid = $this->attrs['uid'];
+ /* Set user id */
+ if(isset($this->attrs['uid'][0])){
+ $this->uid = $this->attrs['uid'][0];
+ }
foreach ($this->fakeBooleanAttributes as $val){
if (isset($this->attrs["$val"][0])&&$this->attrs["$val"][0]=="TRUE"){
$ldap->cd($this->config->current['BASE']);
foreach($this->scalixEmailAddress as $k => $mail) {
- $ldap->search ("(&(!(objectClass=gosaUserTemplate))(objectClass=scalixUserClass)(|(scalixEmailAddress=".
- $mail."))(!(uid=".$this->uid."))(!(cn=".$this->uid.")))", array("uid"));
+ $ldap->search ("(&(!(objectClass=gosaUserTemplate))(objectClass=scalixUserClass)(scalixEmailAddress=".
+ $mail.")(!(uid=".$this->uid."))(!(cn=".$this->uid.")))", array("uid"));
+
if ($ldap->count() != 0){
$message[]= _("The email address '$mail' you've entered is already in use.");
}