I am creating Active Directory requests for Distribution Lists, Generic Mailboxes, Service Accounts etc.. For the all these accounts - some are of type user and some of type group - I am supposed to limit the account length to 20 characters. I also have a list of characters that are not allowed. I am using a custom process that fires when an update occurs on the personwantsorg table. The second step in the process sets the Active Directory attributes and pushed them to the ADSAccounts table. In the ITShop I have an associated resource and request properties. The request properties show up when the user adds the AD Request to their shopping cart.
I do not know where to put the logic for limiting the name to 20 characters and preventing the use of the special characters. I could truncate the name in the back end when it comes in and I guess I could strip the characters out of the name as well. But I would rather interact with the user and make them retype the name.
Any ideas or examples would be greatly appreciated.