Holger Weiß | 6 Feb 22:54 2015
Picon
Picon

MAM support for ejabberd

There's now a public module that implements XEP-0313: Message Archive
Management (MAM) for ejabberd.  MAM provides server-side storage of
messages, which allows for proper synchronization of multiple clients:

https://github.com/processone/ejabberd-contrib/tree/master/mod_mam

The module requires ejabberd 14.12 though; and Mnesia is currently the
only supported storage backend.

Debian and Ubuntu users can install packages both of ejabberd 14.12 and
of mod_mam by using this external repository:

https://www.jabber.at/en/apt-repository

Others users can use the offical ejabberd 14.12 installer and build
mod_mam from the "ejabberd-contrib" repository.

Thanks a lot to Mathias Ertl for providing the Debian/Ubuntu packages.
Special thanks also go to Matthias Rieber, who (stress) tested the
module quite extensively and provided lots of useful feedback.

Let me know if you stumble over anything!

Holger
hensem | 5 Feb 05:42 2015
Picon

Block user

I am using mysql for ejabberd.

When I block user I see that 3 tables are populated:

privacy_default_list
privacy_list
privacy_list_data

so can anyone tell me:
1. what are each tables for and the order the tables are populated?
2. privacy_default_list.value is block. what other values are possible, and
what each value means?
3. what are column t, action, ord, match_all, match_message,
match_presence_in, match_presence_out in table privacy_list_data for?
4. the table privacy_list, is it the same as table privacy_default_list,
with id of privacy_list_data and created_at added to it?

Thanks

--
View this message in context: http://jabber.996255.n3.nabble.com/Block-user-tp34483.html
Sent from the ejabberd mailing list archive at Nabble.com.
ricky gutierrez | 2 Feb 18:13 2015
Picon

some points last version

Hi list, I have some points I want to mention the latest version of ejabberd.

I have two users Alice and Bob both are online and chat well , alice
loses connection and bob still looks online. Usually this occurs in
wifi or 3G networks .

I realize that there was a disconnection, because you send a message
and she did not receive.

ejabberd documentation tells me mod ping is my friend Connection
issues and statements of my buddy , although such connections exceeds
mod_ping!

the second ejabberd does not store offline messages from my buddy ,
alice did not receive the message bob at the time of disconnection.

I have the mod_offline module working, but not working for me

look:

access:
  ## Maximum number of simultaneous sessions allowed for a single user:
  max_user_sessions:
    all: 10
  ## Maximum number of offline messages that users can have:
  max_user_offline_messages:
    admin: 5000
    all: 100

 mod_offline:
(Continue reading)

Gaurav Jain | 28 Jan 03:04 2015
Picon

set "vcard-temp" with photo data takes time

Hi,

If I have a binary photo-data in my "vard-temp" stanza, the "result stanza" from server comes after a delay ( 20 - 30 secs)

If I DO NOT have a binary photo data in my "vard-temp" stanza, the "result stanza" from server comes as expected


I run ejabberd with default configuration.


Would you be able to tell the reason for the delay?


Regards,


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Stefan Schlesinger | 27 Jan 07:05 2015
Picon

MUC Vhost/ACL

Hello,

anyone knows whether there is a way to configure ACLs for MUC on a per vhost basis?

I would like to restrict certain rooms from public access on one vhost and have another for public ones. 

Thanks,
Stefan. 
Jeronimo | 21 Jan 21:23 2015
Picon

mod_shared_roster_ldap and MS AD

I'm trying to configure mod_shared_roster_ldap against MS AD.

This is the configuration of the module:

{mod_shared_roster_ldap,[
    {ldap_user_cache_validity,7200},
    {ldap_group_cache_validity,7200},
    {ldap_base, "ou=CPD,dc=ad,dc=ufrgs,dc=br"},
    {ldap_rfilter, "(&(objectClass=group)(cn=CPD-DRS Funcionários))"},
    {ldap_groupattr, "cn"},
    {ldap_groupdesc, "name"},
    {ldap_memberattr, "member"},
    {ldap_ufilter, "(&(objectClass=organizationalPerson)(distinguishedName=%D))"},
    {ldap_memberattr_format, "%D"},
    {ldap_useruid, "distinguishedName"},
    {ldap_userdec, "name"}
  ]},

The group contains a lot of members:

root <at> xmpp:~# ldapsearch -D "manager" -w secret -p 389 -h hostname -b "ou=CPD,dc=ad,dc=ufrgs,dc=br" -s sub "(&(objectClass=group)(cn=CPD-DRS Funcionários))"
# extended LDIF
#
# LDAPv3
# base <ou=CPD,dc=ad,dc=ufrgs,dc=br> with scope subtree
# filter: (&(objectClass=group)(cn=CPD-DRS Funcionários))
# requesting: ALL
#

# CPD-DRS Funcion\C3\A1rios, DRS, CPD, ad.ufrgs.br
dn:: Q049Q1BELURSUyBGdW5jaW9uw6FyaW9zLE9VPURSUyxPVT1DUEQsREM9YWQsREM9dWZyZ3MsR
EM9YnI=
objectClass: top
objectClass: group
cn:: Q1BELURSUyBGdW5jaW9uw6FyaW9z
description:: R3J1cG8gRnVuY2lvbsOhcmlvcyBkYSBEUlM=
member: CN=Jose Silva,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
member: CN=Jeronimo Soares de Castro Menezes,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
member: CN=Ana Maria Braga,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
member: CN=Regina Case,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
member: CN=Luciano Huck,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
member: CN=Willian Bonner,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
member: CN=Fatima Bernardes,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
distinguishedName:: Q049Q1BELURSUyBGdW5jaW9uw6FyaW9zLE9VPURSUyxPVT1DUEQsREM9YW
QsREM9dWZyZ3MsREM9YnI=
displayName: Func_DRS

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
root <at> xmpp:~#

The result for a member:

root <at> xmpp:~# ldapsearch -D "manager" -w secret -p 389 -h hostname -b "ou=CPD,dc=ad,dc=ufrgs,dc=br" -s sub "(&(objectClass=organizationalPerson)(distinguishedName=CN=Jeronimo Soares de Castro Menezes,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br))"
# extended LDIF
#
# LDAPv3
# base <ou=CPD,dc=ad,dc=ufrgs,dc=br> with scope subtree
# filter: (&(objectClass=organizationalPerson)(sAMAccountname=jeronimo))
# requesting: ALL
#

# Jeronimo Soares de Castro Menezes, DRS, CPD, ad.ufrgs.br
dn: CN=Jeronimo Soares de Castro Menezes,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: Jeronimo Soares de Castro Menezes
sn: Soares de Castro Menezes
title:: RnVuY2lvbsOhcmlv
physicalDeliveryOfficeName: DRS
telephoneNumber: 5050
givenName: Jeronimo
distinguishedName: CN=Jeronimo Soares de Castro Menezes,OU=DRS,OU=CPD,DC=ad,DC
=ufrgs,DC=br
company: CPD - UFRGS
mailNickname: jeronimo
name: Jeronimo Soares de Castro Menezes
sAMAccountName: jeronimo

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
root <at> xmpp:~#

When I ssend a stanza querying the roster list:

<iq type='get' id='purple123b28e3'>
<query xmlns='jabber:iq:roster'/>

</iq>

The answer is an empty roster:

<iq from='jeronimo <at> ad.ufrgs.br' to='jeronimo <at> ad.ufrgs.br/vision' id='purple123b28e3' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>

And the log show me that the group "CPD-DRS Funcionários" were founded:

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.611.0>:ejabberd_receiver:320) : Received XML on stream = "<iq type='get' id='purple123b28e3'>\n\t\t<query xmlns='jabber:iq:roster'/>\n\n</iq>"

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.612.0>:ejabberd_router:313) : route
from {jid,"jeronimo","hostname","vision","jeronimo","hostname",
                  "vision"}
to {jid,"jeronimo","hostname",[],"jeronimo","hostname",[]}
packet {xmlelement,"iq",
                   [{"type","get"},{"id","purple123b28e3"}],
                   [{xmlcdata,<<"\n\t\t">>},
                    {xmlelement,"query",[{"xmlns","jabber:iq:roster"}],[]},
                    {xmlcdata,<<"\n\n">>}]}

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.442.0>:eldap:697) : {searchRequest,
                          {'SearchRequest',"ou=CPD,dc=ad,dc=ufrgs,dc=br",
                           wholeSubtree,neverDerefAliases,0,5,false,
                           {'and',
                            [{equalityMatch,
                              {'AttributeValueAssertion',"objectClass",
                               "group"}},
                             {equalityMatch,
                              {'AttributeValueAssertion',"cn",
                               "CPD-DRS Funcionários"}}]},
                           ["cn"]}}

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.442.0>:eldap:767) : {searchResEntry,
                             {'SearchResultEntry',
                                 "CN=CPD-DRS Funcionários,OU=DRS,OU=CPD,DC=ad,DC=ufrgs,DC=br",
                                 [{'PartialAttributeList_SEQOF',"cn",
                                      ["CPD-DRS Funcionários"]}]}}

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.442.0>:eldap:767) : {searchResDone,
                             {'LDAPResult',success,[],[],asn1_NOVALUE}}

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.440.0>:ejabberd_router:313) : route
from {jid,"jeronimo","hostname",[],"jeronimo","hostname",[]}
to {jid,"jeronimo","hostname","vision","jeronimo","hostname",
                "vision"}
packet {xmlelement,"iq",
                   [{"id","purple123b28e3"},{"type","result"}],
                   [{xmlelement,"query",[{"xmlns","jabber:iq:roster"}],[]}]}

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.440.0>:ejabberd_sm:510) : sending to process <0.612.0>

=INFO REPORT==== 2015-01-21 15:11:53 ===
D(<0.612.0>:ejabberd_c2s:1553) : Send XML on stream = <<"<iq from='jeronimo <at> ad.ufrgs.br' to='jeronimo <at> ad.ufrgs.br/vision' id='purple123b28e3' type='result'><query xmlns='jabber:iq:roster'/></iq>">>

I can't understand why the mod_shared_roster_ldap isn't working for me and the roster is empty.
I can't find what is wrong in my configuration.

Can anyone help me?

Jeron

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
hensem | 16 Jan 08:33 2015
Picon

Set file transfer limit

Is it possible to limit the file size between 2 clients? Can we handle it at
server side?

Thank you.

--
View this message in context: http://jabber.996255.n3.nabble.com/Set-file-transfer-limit-tp34361.html
Sent from the ejabberd mailing list archive at Nabble.com.
Stefan Strigler | 15 Jan 09:32 2015
Picon

14.12 vs transient supervisors

Hey there,

since I upgraded from 13.12 to 14.12 'ejabberdctl outgoing_s2s_number' and 'ejabberdctl incoming_s2s_number' are not working anymore. They just show 0. I've learned through https://support.process-one.net/browse/EJAB-1700 that his happens when '--enable-transient_supervisors' is not given when compiling. 

Thing is I'm using the precompiled bundle from ProcessOne (ejabberd-14.12-linux-x86_64-installer.run). Is this known? Any plans to fix this? Is this actually intended or a bug?

Thanks, Stefan
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
ricky gutierrez | 12 Jan 21:14 2015
Picon

deploy ejabberd and crash kernel

Hello list'm trying to deploy ejabberd on centos 6.6 and I can not
install correctly

Crash dump was written to: /opt/ejabberd/logs/erl_crash_20150112-133613.dump
Kernel pid terminated (application_controller)
({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k

Crash dump was written to: /opt/ejabberd/logs/erl_crash_20150112-133613.dump
Kernel pid terminated (application_controller)
({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k

Crash dump was written to: /opt/ejabberd/logs/erl_crash_20150112-133613.dump
Kernel pid terminated (application_controller)
({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k

anyone knows of this problem?

libyaml-0.1.4-1.el6.rf.x86_64
libyaml-devel-0.1.4-1.el6.rf.x86_64

kernel
2.6.32-504.3.3.el6.x86_64

--

-- 
rickygm

http://gnuforever.homelinux.com
ricky gutierrez | 31 Dec 04:50 2014
Picon

Nat ejabberd

Hi, maybe this question is out of time, but I have a doubt as you can
treat NAT with ejabberd, I have my ejabberd server behind a firewall
and when I call a user who is remotely the call fails, internally in
the lan works .

my firewall have a ip public , ejabberd server ip private.

I redirection port from outside to inside and the connection works
fine, ok chat, file transfer ok, the presence ok

but no audio.

 any advice, suggestion?

--

-- 

rickygm

http://gnuforever.homelinux.com
Jérôme Sautret | 17 Dec 15:29 2014
Picon

[ANN] ejabberd Community 14.12

Hello.

We’re pleased to announce the last release of ejabberd for 2014!
Thanks to contributors, this release includes great improvements and
opens road to 2015.

ejabberd Community 14.12 includes many bugfixes, and a few new features:
– New module mod_client_state implements XEP-0352: Client State Indication
– New module mod_fail2ban to ban IPs that show malicious signs
– New option store_empty_body in mod_offline
– New option disable_sasl_mechanisms
– Improve option resend_on_timeout to support if_offline

Improvements mainly cover:
– More robust offline server
– Better charset support in XMLRPC
– Some PEP issues fixed

As usual, the release is tagged in the Git source code repository on github:
https://github.com/processone/ejabberd

The source package and binary installers are available at ProcessOne:
http://www.process-one.net/en/ejabberd/downloads/

If you suspect you found a bug, search or fill a bug report in Jira:
https://support.process-one.net/browse/EJAB

--
Jérôme Sautret
http://www.process-one.net/
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

Gmane