summaryrefslogtreecommitdiff
path: root/www/admin/domainmaintainer/domainmaintainer.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/domainmaintainer/domainmaintainer.php.in')
-rw-r--r--www/admin/domainmaintainer/domainmaintainer.php.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/admin/domainmaintainer/domainmaintainer.php.in b/www/admin/domainmaintainer/domainmaintainer.php.in
index f6ba885..ff89675 100644
--- a/www/admin/domainmaintainer/domainmaintainer.php.in
+++ b/www/admin/domainmaintainer/domainmaintainer.php.in
@@ -158,6 +158,7 @@ $form =& new KolabForm( 'maintainer', 'createmaintainer.tpl', $entries );
switch( $action ) {
case 'firstsave':
debug("adding checkuniquemail to validation");
+ $ldap_object['objectClass'] = array( 'top', 'inetOrgPerson', 'kolabInetOrgPerson');
$form->entries['uid']['validation'] = 'checkuniquemail';
case 'save':
if( $form->isSubmitted() ) {
@@ -166,7 +167,6 @@ switch( $action ) {
$content = $form->outputForm();
} else {
$ldap_object = array();
- $ldap_object['objectClass'] = array( 'top', 'inetOrgPerson', 'kolabInetOrgPerson');
$ldap_object['sn'] = trim($_POST['lastname']);
$ldap_object['cn'] = trim($_POST['firstname']).' '.$ldap_object['sn'];
if( !empty( $_POST['password_0'] ) ) {