diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 1b9a8711647190677d9076e98bcc039c7a55f4e9..b85d9c834acfad10647d435721ebd3500e23d48e 100644 (file)
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Do we represent a valid server? */
if (!$this->is_account && $this->parent == NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
$ldap->add($this->attrs);
$mode= "add";
} else {
- if ($this->orig_dn != $this->dn){
- $this->move($this->orig_dn, $this->dn);
- plugin::save();
+
+ /* cn is not case sensitive for ldap, but for php it is!! */
+ if($this->config->current['DNMODE'] == "cn"){
+ if (strtolower($this->orig_dn) != (strtolower($this->dn))){
+ $this->move($this->orig_dn, $this->dn);
+ plugin::save();
+ }
+ }else{
+ if ($this->orig_dn != $this->dn){
+ $this->move($this->orig_dn, $this->dn);
+ plugin::save();
+ }
}
-
+
$ldap->cd($this->dn);
$ldap->modify($this->attrs);
$mode= "modify";