[xmppd-dev] Restricting registration
Andriy Lesyuk
s-andy at in.if.ua
Sun Jun 29 12:55:16 CEST 2008
No way?..
Andriy Lesyuk wrote:
> Hello,
>
> We have a local Jabber server (based on jabberd14 from official Debian
> repository) in our company. I would like to open it for a world. But I
> would like to deny registration to the world. That is I want our
> company users to be able to login from outside. The registration
> should be allowed only from LAN however. As far as I understand this
> is impossible to do with current Jabberd configuration file so I
> decided to write a module...
>
> Currently I'm trying to determine how can I access client's IP address
> from module's function. My current module looks like:
>
> mreturn mod_reglimit_register(mapi m, void *arg) {
> xmlnode reg;
>
> //if (jpacket_subtype(m->packet) != JPACKET__SET) return M_PASS;
>
> if ((reg = js_config(m->si, "io/register")) != NULL) {
> }
>
> return M_PASS;
> }
>
> void mod_reglimit(jsmi si) {
> log_debug("mod_reglimit", "init");
> if (js_config(si, "register") != NULL) js_mapi_register(si,
> e_REGISTER, mod_reglimit_register, NULL);
> }
>
> Is there any way to get client's IP address from m (mapi)?
>
> Thanks,
> Andriy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xmppd.org/pipermail/dev/attachments/20080629/106a5326/attachment.htm
More information about the dev
mailing list