Sorry to reply to my own thread again but I just had another idea - what if I just log every user in automatically with the default password that I'm setting them up with? Something like:
If User.IsAuthenticated
DNNLogin(ADUserID, DefaultPassword)
Else
[Retrieve AD info to fill ADUserID, ADEmail, ADFirstName, ADLastName]
NewDNNUser(ADUserID, ADEmail, ADFirstName, ADLastName, IsSuperUser)
DNNLogin(ADUserID, DefaultPassword)
End If
In a purely internal environment, I already know the user is logged in with their AD password so no need to authenticate them against AD again... Of course the psuedo code above assumes there's a single DNNLogin procedure that'll handle the login. Tell me there is such a thing please?