Si está definido.. al inicio .. donde dice mydomain esta puesto lo que
pasa es x un problema de privacidad sustitui el dominio real x
mydomain ....
Enviado desde mi Galaxy
-------- Mensaje original --------
De: Juan Carlos <jua...@psurcav.co.cu>
Fecha: 27/3/23 9:17 a. m. (GMT-05:00)
Para: gutl-l@listas.jovenclub.cu
Asunto: [Gutl-l] Re: probblemas con autenticacion de ejabberd con sql
El 23/03/2023 a las 18:42, Leanny escribió:
> hola, estoy tratando de configurar ejabberd con autenticacion contra
> sql, pero cuando le pongo la siguiente configuracion no me funciona, a
> ver si alguno me puede dar una mano ahi con el tema..
>
> en los logs me sale esto
>
>
> 2023-03-23 23:36:35.090 [info] <0.7.0> Application ejabberd exited
> with reason: call to undefined function
> ejabberd_auth_sql:start(<<"mydomain.cu">>)
>
> saludos
>
>
>
> loglevel: 4
> log_rotate_size: 0
> log_rotate_date: ""
> log_rate_limit: 100
> #######################
> hosts:
> - "mydomain.cu"
>
> listen:
> -
> port: 5222
> ip: "::"
> module: ejabberd_c2s
> protocol_options:
> - "no_sslv3"
> ## - "no_tlsv1"
> max_stanza_size: 65536
> shaper: c2s_shaper
> access: c2s
> zlib: true
> resend_on_timeout: if_offline
>
> -
> port: 5269
> ip: "::"
> module: ejabberd_s2s_in
>
>
>
> -
> port: 5280
> ip: "::"
> module: ejabberd_http
> request_handlers:
> "/websocket": ejabberd_http_ws
> ## "/pub/archive": mod_http_fileserver
> web_admin: true
> http_bind: true
> register: true
> captcha: true
> tls: false
> certfile: "/etc/ejabberd/ejabberd.pem"
>
> s2s_use_starttls: optional
>
> s2s_certfile: "/etc/ejabberd/ejabberd.pem"
> s2s_protocol_options:
> - "no_sslv3"
> ## - "no_tlsv1"
>
>
>
> auth_method: sql
> sql_type: mysql
> sql_server: "127.0.0.1"
> sql_database: "ejabberd"
> sql_username: "root"
> sql_password: "pass"
> sql_port: 3306
>
>
>
> auth_password_format: scram
> shaper:
> normal: 1000
> fast: 50000
> max_fsm_queue: 1000
> acl:
> admin:
> user:
> - "root": "mydomain"
>
>
> local:
> user_regexp: ""
> loopback:
> ip:
> - "127.0.0.0/8"
>
> 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
> ## This rule allows access only for local users:
> local:
> local: allow
> ## Only non-blocked users can use c2s connections:
> c2s:
> blocked: deny
> all: allow
> ## For C2S connections, all users except admins use the "normal"
shaper
> c2s_shaper:
> admin: none
> all: normal
> ## All S2S connections use the "fast" shaper
> s2s_shaper:
> all: fast
> ## Only admins can send announcement messages:
> announce:
> admin: allow
> ## Only admins can use the configuration interface:
> configure:
> admin: allow
> ## Admins of this server are also admins of the MUC service:
> muc_admin:
> admin: allow
> ## Only accounts of the local ejabberd server can create rooms:
> muc_create:
> local: allow
> ## All users are allowed to use the MUC service:
> muc:
> all: allow
> ## Only accounts on the local ejabberd server can create Pubsub nodes:
> pubsub_createnode:
> local: allow
> ## In-band registration allows registration of any possible username.
> ## To disable in-band registration, replace 'allow' with 'deny'.
> register:
> all: allow
> ## Only allow to register from localhost
> trusted_network:
> loopback: allow
> language: "es"
> modules:
> mod_adhoc: {}
> mod_admin_extra: {}
> mod_announce: # recommends mod_adhoc
> access: announce
> mod_blocking: {} # requires mod_privacy
> mod_caps: {}
> mod_carboncopy: {}
> mod_client_state: {}
> mod_configure: {} # requires mod_adhoc
> mod_disco: {}
> mod_echo: {}
> mod_irc: {}
> mod_http_bind: {}
> # mod_http_fileserver:
> # docroot: "/var/www/files"
> # accesslog: "/var/log/ejabberd/access.log"
> mod_last: {}
> mod_muc:
> host: "conferencia.@HOST@"
> access: muc
> access_create: muc_create
> access_persistent: muc_create
> access_admin: muc_admin
> mod_muc_log: {}
> mod_muc_admin: {}
> mod_multicast: {}
> mod_offline:
> access_max_user_messages: max_user_offline_messages
> mod_ping: {}
> # mod_pres_counter:
> # count: 5
> # interval: 60
> mod_privacy: {}
> mod_private: {}
> mod_proxy65: {}
> mod_pubsub:
> access_createnode: pubsub_createnode
> ## reduces resource comsumption, but XEP incompliant
> ignore_pep_from_offline: true
> ## XEP compliant, but increases resource comsumption
> ## ignore_pep_from_offline: false
> last_item_cache: false
> plugins:
> - "flat"
> - "hometree"
> - "pep" # pep requires mod_caps
> mod_register:
> welcome_message:
> subject: "Welcome!"
> body: |-
> Hi.
> Welcome to this XMPP server.
>
> ip_access: trusted_network
> access: register
> mod_roster: {}
> mod_shared_roster: {}
> mod_stats: {}
> mod_time: {}
> mod_vcard:
> search: true
> mod_version: {}
>
>
>
> allow_contrib_modules: true
>
>
>
>
>
>
>
> _______________________________________________
> Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
> To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu
no definiste tu dominio!!!
--
Juan Carlos Hernández Gallardo
Esp. C en Ciencias Informáticas
UPI Pedraplén Sur Ciego de Ávila
✉ jua...@psurcav.co.cu
_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu
_______________________________________________
Gutl-l mailing list --gutl-l@listas.jovenclub.cu
To unsubscribe send an email togutl-l-le...@listas.jovenclub.cu
_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu