Code

Include personal title in cn/dn
[gosa.git] / plugins / personal / generic / class_user.inc
index 93fd5f77d10709fbf7e0e098b5d6aeb542e9f0b7..46ecbc77d434db966131cb7fe6910dbc588d2228 100644 (file)
@@ -993,7 +993,12 @@ class user extends plugin
     $message= plugin::check();
 
     /* Assemble cn */
-    $this->cn= $this->givenName." ".$this->sn;
+    if ($this->personalTitle == ""){
+      $pt= "";
+    } else {
+      $pt= $this->personalTitle." ";
+    }
+    $this->cn= $pt.$this->givenName." ".$this->sn;
 
     /* Permissions for that base? */
     if (isset($this->config->current['DNMODE']) && $this->config->current['DNMODE'] == "uid"){