Good day!
I have a little problem with ejabberd. My ejabberd version:
mx# pkg_info | grep eja
ejabberd-2.1.8_2 Free and Open Source distributed fault-tolerant Jabber serv
mx# uname -a
FreeBSD mx.domain.ru 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Mon Oct 3 14:36:58 MSD 2011 root@mx.domain.ru:/usr/obj/usr/src/sys/GENERIC amd64
mx#My ejabberd.cfg:
override_global.
override_local.
override_acls.
{loglevel, 5}.
{hosts, ["jabber.domain.ru"]}.
{listen,
[
{5222, ejabberd_c2s, [
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
]},
{5269, ejabberd_s2s_in, [
{shaper, s2s_shaper},
{max_stanza_size, 131072}
]},
{5280, ejabberd_http, [
%%{request_handlers,
%% [
%% {["pub", "archive"], mod_http_fileserver}
%% ]},
captcha,
http_bind,
http_poll,
web_admin
]}
]}.
{s2s_default_policy, allow}.
{outgoing_s2s_options, [ipv4, ipv6], 10000}.
{auth_method, external}.
{extauth_program, "/usr/local/etc/ejabberd/ad-auth.pl"}.
{extauth_instances, 10}.
{odbc_server, {pgsql, "127.0.0.1", 5432, "ejabberd", "ejabberd", "password"}}.
{odbc_pool_size, 50}.
{odbc_keepalive_interval, 3600}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{max_fsm_queue, 1000}.
{acl, admin, {user, "ozerovvasiliy", "jabber.domain.ru"}}.
{acl, admin, {user, "klimovichsergey", "jabber.domain.ru"}}.
{acl, admin, {user, "volkovmihail", "jabber.domain.ru"}}.
{acl, local, {user_regexp, ""}}.
{access, max_user_sessions, [{10, all}]}.
{access, max_user_offline_messages, [{5000, admin}, {100, all}]}.
{access, local, [{allow, local}]}.
{access, c2s, [{deny, blocked},
{allow, all}]}.
{access, c2s_shaper, [{none, admin},
{normal, all}]}.
{access, s2s_shaper, [{fast, all}]}.
{access, announce, [{allow, admin}]}.
{access, configure, [{allow, admin}]}.
{access, muc_admin, [{allow, admin}]}.
{access, muc_create, [{allow, admin}]}.
{access, muc, [{allow, all}]}.
{access, pubsub_createnode, [{allow, local}]}.
{access, register, [{deny, all}]}.
{language, "ru"}.
{modules,
[
{mod_adhoc, []},
{mod_announce, [{access, announce}]}, % recommends mod_adhoc
{mod_caps, []},
{mod_configure,[]}, % requires mod_adhoc
{mod_disco, []},
%%{mod_echo, [{host, "echo.localhost"}]},
{mod_irc, []},
{mod_http_bind, []},
{mod_last_odbc, []},
{mod_muc, [
%%{host, "conference.@HOST@"},
{access, muc},
{access_create, muc_create},
{access_persistent, muc_create},
{access_admin, muc_admin}
]},
{mod_offline_odbc, [{access_max_user_messages, max_user_offline_messages}]},
{mod_ping, []},
{mod_privacy, []},
{mod_private_odbc, []},
{mod_pubsub_odbc, [
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
%%{ignore_pep_from_offline, false}, % XEP compliant, but increases resource comsumption
{last_item_cache, false},
{plugins, ["flat_odbc", "hometree_odbc", "pep_odbc"]} % pep requires mod_caps
]},
{mod_register, [
{welcome_message, {"Welcome!",
"Hi.\nWelcome to this XMPP server."}},
{access, register}
]},
{mod_roster_odbc, []},
{mod_shared_roster,[]},
{mod_stats, []},
{mod_time, []},
{mod_admin_extra, []},
{mod_vcard_ldap, [
{hosts, ["users.jabber.domain.ru"]},
{ldap_servers, ["10.0.1.50"]},
{ldap_port, 3268},
{ldap_base, "DC=kalevanet,DC=ru"},
{ldap_rootdn, "CN=mail,OU=Kaleva Groups and Main Users,DC=kalevanet,DC=ru"},
{ldap_password, "89AvsUlP"},
{ldap_uids, [{"jabberID","%u"}]},
{ldap_filter, "(&(jabberActive=TRUE)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))"},
{ldap_vcard_map, [
{"NICKNAME", "%u", []},
{"GIVEN", "%s", ["givenName"]},
{"MIDDLE", "%s", ["initials"]},
{"FAMILY", "%s", ["sn"]},
{"FN", "%s", ["displayName"]},
{"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", "%s", ["telephoneNumber"]}]},
{ldap_search_fields, [
{"NickName", "%u"},
{"Name", "givenname"},
{"Familiya", "sn"},
{"email", "mail"}
]},
{ldap_search_reported, [
{"first", "FN"},
{"last", "FAMILY"},
{"nick", "%u"},
{"email", "EMAIL"}
]}
]},
{mod_version, []}
]}.And when I want to get all registered users, I get whis error:
mx# ejabberdctl registered-users jabber.domain.ru
Problem 'exit {aborted,
{no_exists,
[passwd,
[{{passwd,'$1','_'},
[{'==',{element,2,'$1'},"jabber.domain.ru"}],
['$1']}]]}}' occurred executing the command.
Stacktrace: [{mnesia,abort,1},
{lists,flatmap,2},
{ejabberd_admin,registered_users,1},
{ejabberd_ctl,call_command,3},
{ejabberd_ctl,try_call_command,3},
{ejabberd_ctl,process2,3},
{ejabberd_ctl,process,1},
{rpc,'-handle_call_call/6-fun-0-',5}]
mx#First of all I thought that the problem is in external auth script, but when I want to get all registered users ejabberd don't ask anything from auth script... That is why I don't know what to do...
Help me please :)
WBR, Ozerov Vasiliy
ejabberd does not support to
ejabberd does not support to get the list of registered accounts when using extauth.