index 1b14539b8f284cdd4699703d7c1d714e88982d7a..c24f100f06db46e18e03179de982bf3b060dba37 100644 (file)
$message= plugin::check();
/* Assemble cn */
- if ($this->personalTitle == ""){
- $pt= "";
- } else {
- $pt= $this->personalTitle." ";
+ $pt= "";
+ if(isset($this->config->current['INCLUDE_PERSONAL_TITLE']) && preg_match("/true/i",$this->config->current['INCLUDE_PERSONAL_TITLE'])){
+ if(!empty($this->personalTitle)){
+ $pt = $this->personalTitle." ";
+ }
}
+
$this->cn= $pt.$this->givenName." ".$this->sn;
/* Permissions for that base? */