Generating Absolutely Unique Email Addresses
Novell Cool Solutions: Tip
By Subbu K.K.
Digg This -
Posted: 15 Jun 2001
Current versions: GroupWise 5.5 EP, GroupWise 6
There are some situations in which you absolutely need to ensure that all email addresses in a given directory are unique. For example, some companies use the customer's email address to authenticate their customers.
Various designs are possible but the appropriate one would depend on the scale of the problem. Here is one that should do the trick nicely.
Have a GUID generator that generates globally unique numbers. During signup, generate a guid and append it to the given email address and use that as a CN. E.g. if the email address is firstname.lastname@example.org, use email@example.com as the CN. During login, look up the directory for a sub-string match <emailaddress>.*, and use the password against the returned id.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com