The question is why does
auth::create_user
need a conn in
the first place? Quite possibly it doesn't
really need one
at all, the code is just (incorrectly) structured such that it assumes
one. In which case your workaround could be to simply schedule a job
outside AOLserver which hits a page to run that
auth::create_user
stuff. Then you will be running it in
a conn thread and all will be well.
A better solution though, is to figure out what the problem really is.
Note that plenty of other OpenACS users do create users
non-interactively via various methods, and whatever they do apparently
works. So maybe using auth::create_user
isn't really the
right thing at all. Or if it is the right thing, maybe it has a
conn-dependency bug that it shouldn't have.