There is code in the LDAP Provisioning module[1] which you could use to do this, though the whole module is only really useful if you're going to be tying into LDAP for authentication. Perhaps the user name assigning part could be extracted out?<br>
<br><br>Cheers,<br>Dan<br><br><div class="gmail_quote">On Thu, Mar 13, 2008 at 8:59 AM, Larry Garfield <<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi folks. I've a question that's come up on a number of my sites now. I'd<br>
like to be able to disallow users from selecting their own usernames, ever,<br>
even on signup. Instead, I want to expose various profile fields (or custom<br>
fields via form-alter if necessary) and then base the username off of that.<br>
E.g., first intial and last name, all lower-case. Does anyone know of an<br>
existing module or mechanism for that, or a common pattern that could be<br>
turned into a module?<br>
<br>
--<br>
Larry Garfield AIM: LOLG42<br>
<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a> ICQ: 6817012<br>
<br>
"If nature has made any one thing less susceptible than all others of<br>
exclusive property, it is the action of the thinking power called an idea,<br>
which an individual may exclusively possess as long as he keeps it to<br>
himself; but the moment it is divulged, it forces itself into the possession<br>
of every one, and the receiver cannot dispossess himself of it." -- Thomas<br>
Jefferson<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Dan Karran<br><a href="mailto:dan@karran.net">dan@karran.net</a><br><a href="http://www.dankarran.com">www.dankarran.com</a>