[Freeipa-devel] UID and email address suggestion algorithms

Rob Crittenden rcritten at redhat.com
Thu Sep 6 12:50:20 UTC 2007


Kevin McCarthy wrote:
> This code was committed previously, but deserves some discussion before
> it sees the light of day.  Right now the code is in controllers.py:
> suggest_uid and suggest_email.
> 
> The uid tries in the following order:
> - givenname[0] + sn[:7]
> - givenname[:7] + sn[0]
> - (givenname + sn)[:8]
> - sn[:8]
> - lastly, it appends an incrementing counter to givenname[0] + sn[:7]
> 
> For the email address, the code isn't activated yet, but I suggest
> trying:
> - "%s.%s@%s" % (givenname, sn, domain)
> - the result of suggest_uid() @domain
> 
> Comments?  Do you think the ordering is good?

Should it enforce a minimum uid length?

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070906/09a9888b/attachment.bin>


More information about the Freeipa-devel mailing list