[imp] Vritual Domain what to use?
Wayne Catterton
ciscoswitch at putercom.org
Tue Sep 29 20:26:22 UTC 2009
Ok,
Now that I got my slowness problem resolved, I have yet another. I'm
using IMP for authentication, and it's authenticating via IMAP. If I
login with username at domain.com it works fine, but I want to be able to
just login with username. Squirrelmail had a plugin to do this where it
grabs the domain from the URL and appends it to the username
automatically. I can do the code for this without a problem, however I'm
confused on how to implement it, I've been reading up on hooks and stuff,
but it's still sorta cryptic, I don't know what to use for what and where,
if you know what I mean.
I turned on the vinfo hook in imp and modified it to suit my needs, so it
displays properly the @domain.com after the username box, but I think
that's all it does, it doesn't actually append that on to the username
that you enter, so that it can sucessfully login via IMAP. I looked at
and fiddled around with the username_hook_tobackend and frombackend hooks,
but couldn't get anything to do anything for me.
What's the best way to accomplish this?
Thanks,
--
Wayne Catterton CCNA
Network Engineer
Scappoose, OR
More information about the imp
mailing list