[JDEV] Authentication
Chris Pile
cpile at snoogans.co.uk
Wed May 8 10:36:18 CDT 2002
You could do this quite easily using the xdb_auth/check method. I have
some scripts that would be very easy to modify to suit your needs:
http://www.snoogans.co.uk/jabber/index.htm#xdb_auth_cpile
http://www.snoogans.co.uk/jabber/files/xdb_auth_cpile.tar.gz
Download the tar.gz file and have a read of the docs.
You'll need an experimental version of Jabber::Connection :
http://www.pipetree.com/jabber/jabberconnection/
Using these scripts, you can catch the username and authenticate
accordingly, but you will probably have to write some code to read in
the user.xml file and check the stored password. There is an example of
POP3 auth in my scripts.
It may be easier to migrate all users to one authentication platform.
Thanks,
Chris Pile.
Raistlin Tanis wrote:
>
> Hi all,
>
> I want to authenticate a user using both pop3 and the
> local jabber server based on the format of the
> username.
>
> If the user enters "name%host.com", he will be
> authenticated using pop3. If the user inputs "name",
> the local server will handle the validation.
>
> Has anyone tried this type of authentication before?
> Any help will be appreciated.
>
> TIA,
>
> Raist
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list