Not overly familiar with UserDir, it looked like it just maps to a specific directory for the user if you request the ~user like sites used often years back.. Is this correct?
Is your challenge how to make the ~user to the users home directory? Or the actual UserDir mapping?
I haven't seen people ask for ~user in a long time, it wouldn't be too hard to write a module to look up the user and query his/her home folder (that's a standard property for users), the account your module runs as would have to have permission to get to this user data. Once you have the data appending the additional directory information would be easy.
Steve Radich
BitShop.com - BitShop IIS Cloud Hosting Coming Soon