Vieri | 2 Apr 15:07 2012
Picon

mod_muc fails and ejabberd doesn't start

Hi,

How can I pinpoint the configuration or installation error that produces the following message?

What does "undef" refer to? What have I forgotten to define?

C(<0.38.0>:gen_mod:75) : Problem starting the module mod_muc for host "localhost"
 options: [{access,muc},
           {access_create,muc_create},
           {access_persistent,muc_create},
           {access_admin,muc_admin}]
 error: undef

=ERROR REPORT==== 2012-04-02 15:43:01 ===
C(<0.38.0>:gen_mod:80) : ejabberd initialization was aborted because a module start failed.

Thanks,

Vieri
Badlop | 2 Apr 17:21 2012
Picon

Re: mod_muc fails and ejabberd doesn't start

On 2 April 2012 15:07, Vieri <rentorbuy <at> yahoo.com> wrote:
> How can I pinpoint the configuration or installation error that produces the following message?
>
> What does "undef" refer to? What have I forgotten to define?

I asked my magic ball, and it says you installed ejabberd from a
Gentoo package, and you didn't configure your package system to
compile the ejabberd MUC module.

---
Badlop
ProcessOne
Vieri | 2 Apr 19:09 2012
Picon

Re: mod_muc fails and ejabberd doesn't start


--- On Mon, 4/2/12, Badlop <badlop <at> gmail.com> wrote:

> On 2 April 2012 15:07, Vieri <rentorbuy <at> yahoo.com>
> wrote:
> > How can I pinpoint the configuration or installation
> error that produces the following message?
> >
> > What does "undef" refer to? What have I forgotten to
> define?
> 
> I asked my magic ball, and it says you installed ejabberd
> from a
> Gentoo package, and you didn't configure your package system
> to
> compile the ejabberd MUC module.

Where can I get one of those?
Impressive. Thanks.
You're right, of course. I'm re-emerging it.
Sorry for the noise.

Vieri
Theo Cushion | 11 Apr 12:04 2012

Re: How to maintain a global list of online users (Django + ejabberd)


On 28 Mar 2012, at 22:16, Badlop wrote:

On 26 March 2012 18:34, Pankaj Singh <singh.pankaj.iitkgp08 <at> gmail.com> wrote:
Hi,

I am writing a facebook application using django with one to one chat
feature. I am using a python script to authenticate users to ejabberd
server  in background. Once user is connected to xmpp server, I want
to recommend him 10 online users to chat with. But I am not able to
come up with a nice implementation.

Check the ejabberd Guide about mod_shared_roster
and try the <at> online <at> special member.

To satisfy your requirement, you would only need to modify the source code
to show in the roster only 10 online users, instead of all the online users.

We use https://github.com/theozaurus/mod_eventful to make a call out to our web app every time someone goes on or offline. It's not as clean as modifying mod_shared_roster, but it might help you out.


One method can be to store updated list of JID of all online users in
memcached or redis and recommend from here. Here I need to update the
list whenever some one comes online or goes offline. Is there a way to
get JID of user after authenticating from python script ?


---
Badlop

Theo
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Ben Bradley | 12 Apr 01:32 2012
Picon

single roster of all ldap users... mod_shared_roster_ldap?

Hi everyone

I have a small installation of 20 users that authenticate through LDAP and I would like to automatically populate a roster of all the other LDAP users.
I could just use mod_shared_roster in the ejabberd web interface and keep that updated manually but I'd prefer to have it done automatically from our LDAP directory.
I've been looking at mod_shared_roster_ldap to do this.

From looking through the docs for mod_shared_roster_ldap it seems that you need to have groups defined in your LDAP schema to act as the different rosters.
Is that correct?

Is there a way to have a roster from an LDAP directory which is purely the results of a single LDAP filter?

Cheers, B

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Łukasz Jagiełło | 12 Apr 06:38 2012
Picon

Re: single roster of all ldap users... mod_shared_roster_ldap?

2012/4/12 Ben Bradley <batfastad <at> gmail.com>:
> From looking through the docs for mod_shared_roster_ldap it seems that you
> need to have groups defined in your LDAP schema to act as the different
> rosters.
> Is that correct?
>
> Is there a way to have a roster from an LDAP directory which is purely the
> results of a single LDAP filter?

You looking something like that ?

#v+
{mod_shared_roster_ldap, [
    { ldap_servers, ["10.X.Y.Z"] },
    { ldap_rootdn, "cn=PAM,ou=System,dc=domain,dc=com" },
    { ldap_password, "password" },
    { ldap_port, 636 },
    { ldap_encrypt, tls },
    { ldap_base, "ou=accounts,dc=domain,dc=com" },
    { ldap_filter, "" },
    { ldap_gfilter, "(&(objectClass=employee)(ou=%g))" },
    { ldap_rfilter, "(&(objectClass=employee)(!(o=fire)))" },
    { ldap_ufilter, "(&(objectClass=employee)(cn=%u))" },
    { ldap_groupdesc, "ou" },
    { ldap_memberattr, "uid" },
    { ldap_userdesc, "displayName" },
    { ldap_auth_check, off }
  ]},
#v-

--

-- 
Łukasz Jagiełło
lukasz<at>jagiello<dot>org
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Vineet Naik | 12 Apr 12:50 2012
Picon

getting only partial web admin interface

Hello, 


I am using ejabberd 2.1.10 on ubuntu desktop. I have configured it to work with localhost and 2 other hosts. When I log into the admin interface, I can only view the Virtual Hosts menu on the left side.  A colleague of mine has ejabberd setup on windows and he gets menus such as "Access control Lists", "Access Rules", "Nodes" etc. 

here is the listen section for ejabberd_http from my ejabberd config file  -

{5280, ejabberd_http, [
%%{request_handlers,
%% [
%%  {["pub", "archive"], mod_http_fileserver}
%% ]},
%%captcha,
http_bind,
http_poll,
web_admin
]}

Is there anything else I need to add to get all the menus in the web admin ? 

Thanks, 
Vineet Naik


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
郎咸武 | 12 Apr 13:27 2012
Picon

Re: getting only partial web admin interface

375 {acl, admin, {user, "admin", "192.168.1.73"}}.
Are you config this option?


2012/4/12 Vineet Naik <naikvin <at> gmail.com>
Hello, 

I am using ejabberd 2.1.10 on ubuntu desktop. I have configured it to work with localhost and 2 other hosts. When I log into the admin interface, I can only view the Virtual Hosts menu on the left side.  A colleague of mine has ejabberd setup on windows and he gets menus such as "Access control Lists", "Access Rules", "Nodes" etc. 

here is the listen section for ejabberd_http from my ejabberd config file  -

{5280, ejabberd_http, [
%%{request_handlers,
%% [
%%  {["pub", "archive"], mod_http_fileserver}
%% ]},
%%captcha,
http_bind,
http_poll,
web_admin
]}

Is there anything else I need to add to get all the menus in the web admin ? 

Thanks, 
Vineet Naik



_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd




--
只为成功找方法,不为失败找理由
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Vineet Naik | 12 Apr 13:36 2012
Picon

Re: getting only partial web admin interface

Oh! I had not added this. Thanks a ton


Regards,
Vineet

2012/4/12 郎咸武 <langxianzhe <at> gmail.com>
375 {acl, admin, {user, "admin", "192.168.1.73"}}.
Are you config this option?


2012/4/12 Vineet Naik <naikvin <at> gmail.com>
Hello, 

I am using ejabberd 2.1.10 on ubuntu desktop. I have configured it to work with localhost and 2 other hosts. When I log into the admin interface, I can only view the Virtual Hosts menu on the left side.  A colleague of mine has ejabberd setup on windows and he gets menus such as "Access control Lists", "Access Rules", "Nodes" etc. 

here is the listen section for ejabberd_http from my ejabberd config file  -

{5280, ejabberd_http, [
%%{request_handlers,
%% [
%%  {["pub", "archive"], mod_http_fileserver}
%% ]},
%%captcha,
http_bind,
http_poll,
web_admin
]}

Is there anything else I need to add to get all the menus in the web admin ? 

Thanks, 
Vineet Naik



_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd




--
只为成功找方法,不为失败找理由

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd




--
Vineet Naik


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Ben Bradley | 13 Apr 03:36 2012

Re: single roster of all ldap users... mod_shared_roster_ldap?

2012/4/12 Łukasz Jagiełło <jagiello.lukasz <at> gmail.com>
2012/4/12 Ben Bradley <batfastad <at> gmail.com>:
> From looking through the docs for mod_shared_roster_ldap it seems that you
> need to have groups defined in your LDAP schema to act as the different
> rosters.
> Is that correct?
>
> Is there a way to have a roster from an LDAP directory which is purely the
> results of a single LDAP filter?

You looking something like that ?

#v+
{mod_shared_roster_ldap, [
   { ldap_servers, ["10.X.Y.Z"] },
   { ldap_rootdn, "cn=PAM,ou=System,dc=domain,dc=com" },
   { ldap_password, "password" },
   { ldap_port, 636 },
   { ldap_encrypt, tls },
   { ldap_base, "ou=accounts,dc=domain,dc=com" },
   { ldap_filter, "" },
   { ldap_gfilter, "(&(objectClass=employee)(ou=%g))" },
   { ldap_rfilter, "(&(objectClass=employee)(!(o=fire)))" },
   { ldap_ufilter, "(&(objectClass=employee)(cn=%u))" },
   { ldap_groupdesc, "ou" },
   { ldap_memberattr, "uid" },
   { ldap_userdesc, "displayName" },
   { ldap_auth_check, off }
 ]},
#v-

I'm not sure that's quite what I'm looking for.

Here's my LDAP tree... http://pastebin.com/pfHim8Uh

To explain, I have 2 domains in the directory (domain1.com and domain2.com) but possibly more in the future.
Under each domain branch, there's a single ou=people branch and each user branch is listed under that.

I'd like a single roster for domain1.com users containing all other users under domain1.
So dave's roster will show laura, steve and phil.

And a single roster for domain2.com users containing all other users under domain2.
So alan's roster will show ian, martin, jane.

The roster membership of each uid is defined by an attribute called zimbraMailDeliveryAddress which has a value in the format of uid <at> domain1.com or uid <at> domain2.com
This should be matched against the zimbraDomainName attribute under each domain branch.

So far I've got this...
{mod_shared_roster_ldap, [
    %% LDAP server settings are set up by my auth_method declaration
    {ldap_base, ""},
    {ldap_auth_check, off},
    {ldap_filter, ""},

    {ldap_groupdesc, "zimbraDomainName"},
    {ldap_userdesc, "displayName"}
]},

But I've no idea what the rest needs to be. I'm really confused by the use of %g in the attr parameters.

Any ideas?

Cheers, B
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

Gmane