diff --git a/admin/inc/class.uiaccounts.inc.php b/admin/inc/class.uiaccounts.inc.php
index dcc160d26f..920db39d35 100755
--- a/admin/inc/class.uiaccounts.inc.php
+++ b/admin/inc/class.uiaccounts.inc.php
@@ -1393,7 +1393,7 @@
{
$lang_homedir = lang('home directory');
$lang_shell = lang('login shell');
- $homedirectory = '';
+ $homedirectory = '';
$loginshell = '';
@@ -1594,6 +1594,11 @@
$response->addScript("alert('".addslashes(lang('That loginid has already been taken').': '.$account_lid)."'); document.getElementById('account').value='".
($account_id ? $GLOBALS['egw']->accounts->id2name($account_id) : '')."'; document.getElementById('account').focus();");
}
+ if ($GLOBALS['egw_info']['server']['ldap_extra_attributes'] &&
+ ($home = $GLOBALS['egw_info']['server']['ldap_account_home']) && $home != '/dev/null')
+ {
+ $response->addAssign('homedirectory','value',$home.'/'.$account_lid);
+ }
return $response->getXML();
}