I actually copied the new ticket page into it's own folder named internetsubmitter. Then I changed some of the things like adding an email field that requires an email of the client.
Then I ran there email through this function
pos1 = email.IndexOf("<"
pos2 = email.IndexOf(">"
(pos1 >= 0 && pos2 > pos1)
email.Substring(pos1 + 1, pos2 - pos1 - 1);
I then take that email string and put it in string username
Then I run a query to check the database to see if that username exists
if that username doesn't exist then I insert this new username and email I set there telephone to
555-555-5555 I guess you could get that info if you wanted but I'm not needing the telephone of the customer I set there sub_unit to 2 and is_admin to 0
insert into users ([userName],[phone],[email],[sub_unit],[is_admin]) values ('"
+ username +
+ username +
since this will add everyone that submits a ticket into the main username system you can exclude them by using the @ character since the
active directory entries don't have @.
then I get the new user
Also in IIS you create an application and use the new file you created. like this:
<div style="width: 690px"><iframe id="resizeframe" src=http://externalsite.com/internetsubmitter/default.aspx frameborder="0"
name="resizeframe" scrolling="no" style="width: 680px; height: 1670px"></iframe></div>
in you intranet
Also in IIS in the
Authentication and access control click edit and check the checkbox for "Enable anonymous access" Use a windows account for annonymous access so here you'll enter that windows account here plus password.
and also check the checkbox for "Integrated Windows authentication"
this will basically get the external user through with them using an actual website address and not an internal site address.