index e7c13fefd0ac3d6397a473ce29f20c7cc69f7b71..46ecbc77d434db966131cb7fe6910dbc588d2228 100644 (file)
} else {
} else {
- /* User doesn't exists, create it when pw_storage is kerberos. */
- if ($this->pw_storage == "kerberos"){
+ /* User doesn't exists, create it when pw_storage is kerberos or SASL. */
+ if ($this->pw_storage == "kerberos" || $this->pw_storage == "sasl" ){
$ret= kadm5_create_principal ( $handle, $principal);
if ($ret === FALSE){
$ret= kadm5_create_principal ( $handle, $principal);
if ($ret === FALSE){
$message= plugin::check();
/* Assemble cn */
$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"){
/* Permissions for that base? */
if (isset($this->config->current['DNMODE']) && $this->config->current['DNMODE'] == "uid"){