Zentyal Forum, Linux Small Business Server
Zentyal Server => Other modules => Topic started by: segelfreak on January 02, 2020, 09:49:18 am
-
Dears,
I'm looking at Jabber module and was playing around a bit with it over the past days.
After having solved this issue (https://forum.zentyal.org/index.php/topic,34817.0.html (https://forum.zentyal.org/index.php/topic,34817.0.html)) with the kind help of doncamilo, it still appears things are not as they should be with this module.
I basically unchecked all setting in the module admin page, with the exception of multi-user chat. Thus, no shared roster or vcard info has been enabled.
Now, when I add the an account to Trillian, I (still!) see a complete contact list, including users with deactivated jabber accounts.
Obviously the admin options are not taking effect and also the generated list is just picking all domain users.
How to patch this best way? Any ideas?
-
:)
I have done some trials and I'm not able to reproduce this behavior. (I'm using Zentyal 6.1, and as client Pidgin on Windows 7).
I have enabled the vcard and users list options and it runs correctly. Afterwards I disabled these features and Pidgin showed the old cached list but not the new users I created after disabling the user list option.
Could be a cache problem?
PS: I have'nt check for disabled accounts. I'll update this. :-[
Cheers!
-
I had the same in mind and completely removed the account from Trillian, before reinstalling it.
The complete list with all domain users was instantly back.
-
:)
It's bizarre because the webadmin changes actually the ejabberd configuration file.
(https://i.ibb.co/ZHQCrFk/ejabberd-options.png)
root@zen61:/etc/ejabberd# cat ejabberd.yml
loglevel: 4
log_rotate_size: 0
log_rotate_date: ""
log_rate_limit: 100
hosts:
- "lab61.lan"
certfiles:
- "/etc/ejabberd/ejabberd.pem"
define_macro:
'TLS_CIPHERS': "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
'TLS_OPTIONS':
- "no_sslv3"
- "no_tlsv1"
- "cipher_server_preference"
- "no_compression"
c2s_ciphers: 'TLS_CIPHERS'
s2s_ciphers: 'TLS_CIPHERS'
c2s_protocol_options: 'TLS_OPTIONS'
s2s_protocol_options: 'TLS_OPTIONS'
s2s_use_starttls: required
auth_method: ldap
ldap_servers:
- "127.0.0.1"
ldap_port: 389
ldap_rootdn: "CN=zentyal-jabber-zen61,CN=Users,DC=lab61,DC=lan"
ldap_password: "Mp8zZPMwyh@SLjuGAPMH"
ldap_base: "DC=lab61,DC=lan"
ldap_uids:
- "jabberUid": "%u"
listen:
-
port: 5222
ip: "0.0.0.0"
module: ejabberd_c2s
starttls: true
starttls_required: true
protocol_options: 'TLS_OPTIONS'
max_stanza_size: 65536
shaper: c2s_shaper
access: c2s
zlib: true
shaper:
normal: 1000
fast: 50000
acl:
local:
user_regexp: ""
access:
max_user_sessions:
all: 10
max_user_offline_messages:
admin: 5000
all: 100
local:
local: allow
c2s:
blocked: deny
all: allow
c2s_shaper:
admin: none
all: normal
s2s_shaper:
all: fast
announce:
admin: allow
configure:
admin: allow
muc_admin:
admin: allow
muc:
all: allow
pubsub_createnode:
local: allow
language: "en"
modules:
mod_adhoc: {}
mod_announce:
access: announce
mod_caps: {}
mod_configure: {}
mod_admin_extra: {}
mod_disco: {}
mod_last: {}
mod_offline:
access_max_user_messages: max_user_offline_messages
mod_pres_counter:
count: 5
interval: 60
mod_privacy: {}
mod_private: {}
mod_pubsub:
access_createnode: pubsub_createnode
ignore_pep_from_offline: true
last_item_cache: false
plugins:
- "flat"
- "hometree"
- "pep"
mod_roster: {}
mod_shared_roster_ldap:
ldap_rfilter: "(&(objectClass=user)(!(isCriticalSystemObject=*)))"
ldap_ufilter: "(&(objectClass=userJabberAccount)(distinguishedName=%u))"
ldap_groupattr: "cn"
ldap_groupdesc: "cn"
ldap_memberattr: "sAMAccountName"
ldap_useruid: "jabberUid"
ldap_userdesc: "sAMAccountName"
mod_sic: {}
mod_stats: {}
mod_time: {}
mod_vcard: {}
mod_vcard:
db_type: ldap
search: true
allow_return_all: true
ldap_vcard_map:
"NICKNAME": {"%u": []}
"FIRST": {"%s": ["givenName"]}
"LAST": {"%s": ["sn"]}
"FN": {"%s, %s": ["sn", "givenName"]}
"EMAIL": {"%s": ["mail"]}
"ORGNAME": {"%s": ["company"]}
"ORGUNIT": {"%s": ["department"]}
"CTRY": {"%s": ["c"]}
"LOCALITY": {"%s": ["l"]}
"STREET": {"%s": ["streetAddress"]}
"REGION": {"%s": ["st"]}
"PCODE": {"%s": ["postalCode"]}
"TITLE": {"%s": ["title"]}
"URL": {"%s": ["wWWHomePage"]}
"DESC": {"%s": ["description"]}
"TEL/CELL": {"%s": ["mobile"]}
"TEL/NUMBER": {"%s": ["telephoneNumber"]}
## Search form
ldap_search_fields:
"User": "%u"
"Name": "givenName"
"Family Name": "sn"
"Email": "mail"
"Company": "company"
"Department": "department"
"Role": "title"
"Description": "description"
"Phone": "telephoneNumber"
## vCard fields to be reported
## Note that JID is always returned with search results
ldap_search_reported:
"Full Name": "FN"
"Nickname": "NICKNAME"
"Email": "EMAIL"
mod_stream_mgmt:
resend_on_timeout: if_offline
mod_version: {}
(https://i.ibb.co/YZH3rbY/ejabberd-options-b.png)
root@zen61:/etc/ejabberd# cat ejabberd.yml
loglevel: 4
log_rotate_size: 0
log_rotate_date: ""
log_rate_limit: 100
hosts:
- "lab61.lan"
certfiles:
- "/etc/ejabberd/ejabberd.pem"
define_macro:
'TLS_CIPHERS': "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
'TLS_OPTIONS':
- "no_sslv3"
- "no_tlsv1"
- "cipher_server_preference"
- "no_compression"
c2s_ciphers: 'TLS_CIPHERS'
s2s_ciphers: 'TLS_CIPHERS'
c2s_protocol_options: 'TLS_OPTIONS'
s2s_protocol_options: 'TLS_OPTIONS'
s2s_use_starttls: required
auth_method: ldap
ldap_servers:
- "127.0.0.1"
ldap_port: 389
ldap_rootdn: "CN=zentyal-jabber-zen61,CN=Users,DC=lab61,DC=lan"
ldap_password: "Mp8zZPMwyh@SLjuGAPMH"
ldap_base: "DC=lab61,DC=lan"
ldap_uids:
- "jabberUid": "%u"
listen:
-
port: 5222
ip: "0.0.0.0"
module: ejabberd_c2s
starttls: true
starttls_required: true
protocol_options: 'TLS_OPTIONS'
max_stanza_size: 65536
shaper: c2s_shaper
access: c2s
zlib: true
shaper:
normal: 1000
fast: 50000
acl:
local:
user_regexp: ""
access:
max_user_sessions:
all: 10
max_user_offline_messages:
admin: 5000
all: 100
local:
local: allow
c2s:
blocked: deny
all: allow
c2s_shaper:
admin: none
all: normal
s2s_shaper:
all: fast
announce:
admin: allow
configure:
admin: allow
muc_admin:
admin: allow
muc:
all: allow
pubsub_createnode:
local: allow
language: "en"
modules:
mod_adhoc: {}
mod_announce:
access: announce
mod_caps: {}
mod_configure: {}
mod_admin_extra: {}
mod_disco: {}
mod_last: {}
mod_muc:
host: "conference.@HOST@"
access: muc
access_create: muc
access_persistent: muc_admin
access_admin: muc_admin
mod_muc_admin: {}
mod_offline:
access_max_user_messages: max_user_offline_messages
mod_pres_counter:
count: 5
interval: 60
mod_privacy: {}
mod_private: {}
mod_pubsub:
access_createnode: pubsub_createnode
ignore_pep_from_offline: true
last_item_cache: false
plugins:
- "flat"
- "hometree"
- "pep"
mod_roster: {}
mod_sic: {}
mod_stats: {}
mod_time: {}
mod_vcard: {}
mod_stream_mgmt:
resend_on_timeout: if_offline
mod_version: {}
Did you check this config file?
Cheers!
-
Thanks doncamillo for your great help.
I also digged a bit more into all this and it seems that trillian is caching the contacts locally, even after removing the account. Not sure how this can happen, but when I removed all contacts and re-installed the account, they did not re-appear.
I also tested BoogieChat and all seems to behave well.
This being said, i think we can consider this being a trillian related mystery.
-
:)
If you discover some more information about it, please, tell us here!
Cheers!