summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 338a7b0)
raw | patch | inline | side by side (parent: 338a7b0)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Nov 2009 17:06:32 +0000 (17:06 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Nov 2009 17:06:32 +0000 (17:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14790 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index 764dc1409bd770c2e0dded2b2dc6a6b30f07eb77..9ae31c78e8f69c3a6e98abefc202e336933dfacb 100644 (file)
if ($ldap->count() == 0){
$groupcn = $this->uid;
- $groupdn= preg_replace ('/^'.$this->config->get_cfg_value("accountPrimaryAttribute").'=[^,]+,'.get_people_ou().'/i',
+ $groupdn= preg_replace ('/^'.preg_quote($this->config->get_cfg_value("accountPrimaryAttribute").'=[^,]+,'.get_people_ou(), '/').'/i',
'cn='.$groupcn.','.get_groups_ou(), $this->dn);
/* Request a new and uniqe gidNumber, if required */
while($ldap->dn_exists($groupdn)){
$cnt ++;
$groupcn = $this->uid."_".$cnt;
- $groupdn= preg_replace ('/^'.$this->config->get_cfg_value("accountPrimaryAttribute").'=[^,]+,'.get_people_ou().'/i',
+ $groupdn= preg_replace ('/^'.preg_quote($this->config->get_cfg_value("accountPrimaryAttribute").'=[^,]+,'.get_people_ou(), '/').'/i',
'cn='.$groupcn.','.get_groups_ou(), $this->dn);
}
}
diff --git a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc
index 7889e6d10a3743d434544f8aaa1971fca8e9cf81..bb6bcad4ca7d90699e0586b091d7fa0417297ae8 100644 (file)
$this->base= dn2base($ui->dn);
$this->cn= "";
} else {
- $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("phoneRDN"), '/')."/", "", $this->dn);
+ $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("phoneRDN"), '/')."/i", "", $this->dn);
}
if($this->goFonMSN != ""){
diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc
index a4d8738ced737adccb4979ac1c8c6fc7842d69cc..aba310f90cb213ff46de04bb671160d7948d4905 100644 (file)
while($temp = $ldap->fetch($this->csvinfo['templates'])){
$tempvar ++;
- $this->csvinfo['arrtemplates'][$tempvar] = $temp['sn'][0]." - ".$this->config->idepartments[preg_replace("/^[^,]+,".get_people_ou()."/i", "", $temp['dn'])];
+ $this->csvinfo['arrtemplates'][$tempvar] = $temp['sn'][0]." - ".$this->config->idepartments[preg_replace("/^[^,]+,".preg_quote(get_people_ou(), '/')."/i", "", $temp['dn'])];
$this->csvinfo['arrtempls'] [$tempvar]['name'] = $temp['sn'][0];
$this->csvinfo['arrtempls'] [$tempvar]['dn'] = $temp['dn'];
}
diff --git a/gosa-plugins/netatalk/personal/netatalk/class_netatalk.inc b/gosa-plugins/netatalk/personal/netatalk/class_netatalk.inc
index c09a13a9eb3221448d96b380eaefdf119ad4f99e..4a74b7451a0cc8872d4fbedc9c5ec04adf146b60 100644 (file)
if($this->dn === "new" || $this->dn === NULL) {
$base = session::get('CurrentMainBase');
} else {
- $base = preg_replace("/^[^,]+,".preg_quote(get_people_ou(), '/')."/","",$this->dn);
+ $base = preg_replace("/^[^,]+,".preg_quote(get_people_ou(), '/')."/i","",$this->dn);
}
$ldap->cd($base);
diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc
index ca4c9074f568a6049d3f036794740bd61d5c69a5..6a907f6a0f0d0b12845845650b537e7d490cd681 100644 (file)
$this->base= dn2base($ui->dn);
$this->cn= "";
} else {
- $this->base= preg_replace ("/^[^,]+,".preg_quote(get_winstations_ou(), '/')."/", "", $this->dn);
+ $this->base= preg_replace ("/^[^,]+,".preg_quote(get_winstations_ou(), '/')."/i", "", $this->dn);
}
$this->cn= preg_replace("/\\\$\$/","",$this->cn);
diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc
index 766fe3b4be20ecf1a831d370aac74f577650bc1d..13f61c8f68276e1f2e5bb7f0416060e55cd11d8b 100644 (file)
$this->base= dn2base($ui->dn);
$this->cn= "";
} else {
- $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("componentRDN"), '/')."/", "", $this->dn);
+ $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("componentRDN"), '/')."/i", "", $this->dn);
}
$this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses, true);
/* Save dn for later references */
if(preg_match("/cn=dhcp,/",$attrs['dn'])){
continue;
}
- if ($attrs['dn'] != $this->orig_dn && preg_match("/".preg_quote(get_ou("componentRDN"), '/')."/",$attrs['dn'])){
+ if ($attrs['dn'] != $this->orig_dn && preg_match("/".preg_quote(get_ou("componentRDN"), '/')."/i",$attrs['dn'])){
$message[]= msgPool::duplicated(_("Component name"));
break;
}