summaryrefslogtreecommitdiff
path: root/www/admin/maintainer/maintainer.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/maintainer/maintainer.php.in')
-rw-r--r--www/admin/maintainer/maintainer.php.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/admin/maintainer/maintainer.php.in b/www/admin/maintainer/maintainer.php.in
index 5786e3e..72037c6 100644
--- a/www/admin/maintainer/maintainer.php.in
+++ b/www/admin/maintainer/maintainer.php.in
@@ -172,6 +172,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() ) {
@@ -181,7 +182,6 @@ switch( $action ) {
} else {
debug("Process...");
$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'] ) ) {