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&#39;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 &lt;<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>&gt; 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. &nbsp;I&#39;ve a question that&#39;s come up on a number of my sites now. &nbsp;I&#39;d<br>
like to be able to disallow users from selecting their own usernames, ever,<br>
even on signup. &nbsp;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. &nbsp;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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AIM: LOLG42<br>
<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ICQ: 6817012<br>
<br>
&quot;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.&quot; &nbsp;-- 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>