summaryrefslogtreecommitdiff
path: root/www/admin/administrator/admin.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/administrator/admin.php.in')
-rw-r--r--www/admin/administrator/admin.php.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/admin/administrator/admin.php.in b/www/admin/administrator/admin.php.in
index d62ee8f..d3b5bab 100644
--- a/www/admin/administrator/admin.php.in
+++ b/www/admin/administrator/admin.php.in
@@ -179,6 +179,7 @@ switch( $action ) {
if( $form->isSubmitted() ) {
if( !$form->validate() ) {
$form->setValues();
+ if ($action != "firstsave") fill_form_for_modify( $form, $ldap_object );
$content = $form->outputForm();
} else {
debug("Process...");
@@ -246,6 +247,7 @@ switch( $action ) {
$form->entries['password_0']['value'] = '';
$form->entries['password_1']['value'] = '';
$form->entries['action']['value'] = 'save';
+ $form->entries['uid']['attrs'] = 'readonly';
$content = $form->outputForm();
break;
} else {