--- user.php.org	2007-02-20 15:31:22.000000000 +0100
+++ user.php	2007-02-20 15:43:52.000000000 +0100
@@ -257,7 +257,7 @@
   if(array_key_exists('uid',$form->entries))  $form->entries['uid']['value'] = $uid;
   // accttype
   $dncomp = split( ',', $dn );
-  if(array_key_exists('acctype',$form->entries)) {
+  if(array_key_exists('accttype',$form->entries)) {
 	  if( in_array('cn=groups',$dncomp) ) {
 		  $form->entries['accttype']['value'] = 2;
 	  } else if( in_array('cn=resources',$dncomp) ) {
