Thread:Extension talk:LDAP Authentication/Pre-add users from LDAP/reply (2)

You could use

my $date = time2str('%Y%m%d%H%M%S', time); print "INSERT INTO `user` (user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_registration,user_editcount) VALUES ('$uc_username','$cn','$mail','$date','$MD5SUM','$date','$date',0);\n";

Anthony Worrall