ejabberd

ejabberd - LDAP authentication

Hi I'm trying to configure an ejabberd installation, using LDAP authentication, but I just can't login, even with the admin user. This is part of my ejabberd.cfg file: %... {auth_method, ldap}. {ldap_servers, ["server2000.tek2000.local"]}. {ldap_port,389}. {ldap_uidattr, "uid"}. {ldap_base, "dc=server2000,dc=tek2000,dc=com"}. {ldap_roo...

ejabberd node

While installation I am using user:admin ..domain:Admin-PC.I am able to start it.But it says that current node is : 'The name of the current ejabberd node is ejabberd@localhost'.I thought current node should be admin@localhost .Also I am not able to login to web interface usin user : admin@Admin-PC ...

Is there a way to manually register a user with a py-transport server-side?

I'm trying to write some scripts to migrate my users to ejabberd, but the only way that's been suggested for me to register a user with a transport is to have them use their client and discover the service. Certainly there is a way, right? ...

ejabberd compile error

I'm a huge erlang noob, and while compiling ejabberd, I get this error: make[1]: Entering directory `/usr/src/ejabberd-2.0.5/src/mod_muc' /usr/local/bin/erlc -W -I .. -pz .. -o .. mod_muc_room.erl Function: '-process_admin_items_set/4-fun-0-'/2 ./mod_muc_room.erl:none: internal error in v3_codegen; crash reason: {{case_clause, ...

How to turn off autosignin of registered transports in Openfire ?

This is regarding the gateway XEP 0100 support in Openfire. I have noticed that for some transports, they are auto-signed in once a connection to openfire succeeds (via the xmpp user). This applies specifically to QQ. How does one turn off this auto-signin feature ? Basically from a client perspective, I want to be able to signin select...

Jabber auto-login with random name

I'm building a live chat using JSJaC and ejabberd . It's all working except that all site visitors are given the account 'guest'. If two visitors try to livechat at the same time the responses get muddled or the first user is logged out. I can randomly set the guest name but then I need to check whether that name is registered or auto-r...

XMPP SASL authentication on Ejabberd with PHP

I'm trying to authenticate with an XMPP server using SASL. /** * Send Authentication, SASL * @return Bool * @param $username String * @param $password String */ function authenticate($username, $password) { $this->username = $username; $this->password = $password; var_dump($username, $passwo...

Sync'ing ejabberd nodes at startup

I am running into an issue that appears to be un-resolvable. I have a need to pass in the function mnesia:change_table_copy_type(schema, node(), disc_copies). at the command line whe the db is created from the master node. the erl start is: erl -name NODE1 -mnesia extra_db_nodes \"['MASTER']\" -s mnesia When I start the shell then enter...

Terminate hook processing in ejabberd module

Hi, I'm writing an ejabberd module. What it does is saving some messages into a queue. It actually works very good, there is only one thing I can't find in any documentation. I need to stop hook processing if I find a message coming from a particular user. I.e. a message is sent to ejabberd, from user A to user B, my module (hooked to u...

Xmpp ejabberd and add-user command

Hello Xmpp warriors, I have two ejabberd servers, one local one distant online on foobar.com. Using xmpp pidgin console i can send iq stanzas for tests: Local server hostname is eepc <iq to='eeepc' from='greg@eeepc' id='get-registred-users-num-1' type='set'> <command xmlns='http://jabber.org/protocol/commands' action='execute' no...

ejabberd: Difference between "disco_local_identity" and "disco_sm_identity" ?

What is the difference between "disco_local_identity" and "disco_sm_identity" module API methods? ...

ejabberd: is there a way to configure a different "cookie" than "ejabberd" ?

I am building an ejabberd module. I require this module to perform RPC calls to another node on the same LAN (sname). From what I understand, ejabberd configures it owns "cookie" which, of course, will differ from the cookie I use for my other nodes. Is there a way to force ejabberd to use another cookie? EDIT: ejabberd starts its dae...

ejabberd: is there a way to determine if a user is an admin?

I've browsed the module development documentation but I can't find an API that would help me determine if 'user' (i.e. identified through a JID) is allowed administrative access. I understand there is the module 'acl' which looks promising (or probably the answer altogether) but no public API is documented. Should I just assume that th...

Mochiweb Port 80

Hello - I am attempting to run BeepBeep through Mochiweb on Port 80. It works if I type sudo ./start_server.sh. Are there any security risks with running Mochiweb like this? If so how to remedy? Thanks! ...

Mochiweb mnesia requests

I'm trying to link Mochiweb with my ejabberd mnesia db and am unable to do any mnesia transactions in my controllers. I test my controllers without the mnesia transactions and they work fine. I am using application:start(mnesia) inside the start function. On the browser, I see "Internal server error" and on Mochiweb's log I see, "=ERR...

Create ejabberd user from PHP

I need to create an ejabberd user from a PHP script. I also need to be able to add the new user to a predefined shared roster. Should I just call ejabberdctl using exec() or is there a better way? ...

Erlang Ets tables between Nodes

I've got an ejabberd server with a good amount of custom modules running. I have several mnesia tables and I know these can be easily copied between nodes without any change to the code at all. I was wondering if there's a similar way with ets tables? Ideally it'd be nice to be able to have several machines running with exactly the sa...

ejabberd ip address

Does anyone know if there's a direct way to map an IP address to a user logged into ejabberd? I found an indirect way by modifying ejabberd_receiver.erl and calling inet:peername(Socket) from here: http://stackoverflow.com/questions/1240312/determining-ip-address-and-port-of-an-incoming-tcp-ip-connection-in-erlang but there doesn't see...

Mochiweb debug (like ejabberd debug)

I was wonderng if anyone knows of a way to get into Mochiweb like ejabberd does when you run /sbin/ejabberdctl debug? ...

Erlang Front-End Admin Panel

We're looking for a framework in which we can assign multiple roles to different users and allow those users to in turn manipulate certain data (based on their role). We have an ejabberd backend and a Mochiweb (BeepBeep framework) front end, and the nodes are connected so Mochiweb can manipulate ejabberd's mnesia tables. Does a direc...