Hi all,
Our team wants to add jabber functionality to a community site, which we
-
don’'t own
-
don’'t have access to its database
-
authenticates with e-mail address + password.
We’'ve successfully managed to implement a custom AuthProvider with Jakarta HTTPClient class, which logs in to the site, and decides if password is wrong or not.
First, we tried to replace the \40 charactersequence (which is sent by Spark if you want to login with email@address), thought that caused an internal problem to wildfire, now we use a % replacement (so, email%address), but still does not work.
We cannot implement a user provider which can give back list of all users, since there’‘s no enumeration page for them, and it’'s a huge number anyway.
We can check if a given user with given e-mail address exists or not.
There’‘s no unique username, that’'s why we want to use email%address@jabberserver or similliar.
Below is the error.log file, which is produced when I tried we tried to add each other with one of the developers.
We want to expand jabber practice to such scenarios, it’'s not a corporate project.
Thanks for the answers in advance
2006.12.02 18:30:59 org.jivesoftware.wildfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java: 119) Internal server error
org.jivesoftware.wildfire.auth.UnauthorizedException: org.jivesoftware.wildfire.user.UserNotFoundException
at org.jivesoftware.wildfire.handler.IQRosterHandler.manageRoster(IQRosterHandler. java:221)
at org.jivesoftware.wildfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java :104)
at org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:48)
at org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:268)
at org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96)
at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67)
at org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:250)
at org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.j ava:51)
at org.jivesoftware.wildfire.net.SocketReader.process(SocketReader.java:216)
at org.jivesoftware.wildfire.net.BlockingReadingMode.readStream(BlockingReadingMod e.java:156)
at org.jivesoftware.wildfire.net.BlockingReadingMode.run(BlockingReadingMode.java: 62)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:123)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jivesoftware.wildfire.user.UserNotFoundException
at org.jivesoftware.wildfire.user.DefaultUserProvider.loadUser(DefaultUserProvider .java:79)
at org.jivesoftware.wildfire.user.UserManager.getUser(UserManager.java:186)
at org.jivesoftware.wildfire.handler.IQRosterHandler.manageRoster(IQRosterHandler. java:187)
… 12 more