Mickael Remond | 13 Jan 14:39 2004

vcard API ?

Hello,

I am trying to access the vcard management code directly. What I want to
do is to be able to programmatically create users (I already did this),
but also fill up there vcard with existing data.

I look into the ejabberd code, but it does not manage to find a
convenient way to do this. It seems that it is assumed that an XML
message respecting the Jabber formalism has to be received.

Do you know how I could change the email on the user vcard easily ?

Thank you in advance for your help

--

-- 
Mickaël Rémond
 http://www.erlang-projects.org/

Mickael Remond | 13 Jan 16:28 2004

Crash with digest authentication

Hello,

I am encoutering the following crash during digest authentification:

-=-=-
=INFO REPORT==== 13-Jan-2004::16:25:25 ===
I(<0.245.0>:ejabberd_listener:64): (#Port<0.386>) Accepted connection
{{10,68,140,40},42749} -> {{10,68,140,40},5222}
AUTH: {"mremond",[],"e94621e8aac4d59e62306e32b140d1c90df02025","Gabber"}

=ERROR REPORT==== 13-Jan-2004::16:25:25 ===
** State machine <0.343.0> terminating
** Last event in was {xmlstreamelement,
                         {xmlelement,"iq",
                                     [{"id","j3"},{"type","set"}],
                                     [{xmlelement,
                                          "query",
                                          [{"xmlns","jabber:iq:auth"}],
                                          [{xmlelement,
                                               "username",
                                               [],
                                               [{xmlcdata,"mremond"}]},
                                           {xmlelement,
                                               "resource",
                                               [],
                                               [{xmlcdata,"Gabber"}]},
                                           {xmlelement,
                                               "digest",
                                               [],
                                               [{xmlcdata,
(Continue reading)

Alexey Shchepin | 16 Jan 23:31 2004
Picon

Re: vcard API ?

Hello, Mickael!

On Tue, 13 Jan 2004 14:39:08 +0100, you said:

 MR> Hello, I am trying to access the vcard management code directly. What I
 MR> want to do is to be able to programmatically create users (I already did
 MR> this), but also fill up there vcard with existing data.

 MR> I look into the ejabberd code, but it does not manage to find a convenient
 MR> way to do this. It seems that it is assumed that an XML message respecting
 MR> the Jabber formalism has to be received.

Yes, in "vcard" table all vCards are stored in XML format.

 MR> Do you know how I could change the email on the user vcard easily ?

You can find {xmlelement, "EMAIL", _, _} in the list of vCard subelements and
replace it with different one.  Also you may want to call reindex_vcards/0 to
update JUD search indexes.

 MR> Thank you in advance for your help

Alexey Shchepin | 16 Jan 23:24 2004
Picon

Re: Crash with digest authentication

Hello, Mickael!

On Tue, 13 Jan 2004 16:28:49 +0100, you said:

 MR> Hello, I am encoutering the following crash during digest
 MR> authentification:

[...]

 MR> ** {badarg,[{erlang,port_control,[#Port<0.262>,5,"1739784314aze"]},
 MR>             {crypto,control,2},
 MR>             {sha,sha,1},

Looks like something bad with crypto driver.

[...]

 MR> I do not had time to investigate it further yet, but I thought you might
 MR> be interested.

Try to run these commands in erl session:

crypto:start().
crypto:sha("abc").

You should get this if all ok:

<<169,153,62,54,71,6,129,106,186,62,37,113,120,80,194,108,156,208,216,157>>

(Continue reading)

Mickael Remond | 20 Jan 15:35 2004

Re: Crash with digest authentication

* Alexey Shchepin <alexey <at> sevcom.net> [2004-01-17 00:24:06 +0200]:

> Hello, Mickael!
> 
> On Tue, 13 Jan 2004 16:28:49 +0100, you said:
> 
>  MR> Hello, I am encoutering the following crash during digest
>  MR> authentification:
> 
> [...]
> 
>  MR> ** {badarg,[{erlang,port_control,[#Port<0.262>,5,"1739784314aze"]},
>  MR>             {crypto,control,2},
>  MR>             {sha,sha,1},
> 
> Looks like something bad with crypto driver.

You are right. When I issued the crypto command manual it happens that
the priv dir containing the crypto_drv.so where not installed.

I did not know why the crypto things compiled but not the crypto_drv.so
(at least not installed).
Maybe missing libs at that time on my machine.

> Try to run these commands in erl session:
> 
> crypto:start().
> crypto:sha("abc").
> 
> You should get this if all ok:
(Continue reading)

Christophe Romain | 22 Jan 19:37 2004

debian package

Hi all

ejabberd is now debianized.
the package is into the debian pipe and will be soon available on debian 
repositories. it's intended for debian sid. no woody version (but a non 
official package can be build if needed, any woody users in here ?)

until the package is not available on debian mirrors, you can get it here:
http://www.erlang-projects.org/Public/rpmdeb
(Thanks to Mickaël Rémond)

best regards.

Frank Bauer | 23 Jan 07:50 2004
Picon

Re: debian package

--- Christophe Romain <cro <at> tuxfamily.org> wrote:
> ejabberd is now debianized.
> the package is into the debian pipe and will be soon available on
> debian 

That's great news!

> repositories. it's intended for debian sid. no woody version (but a
> non 
> official package can be build if needed, any woody users in here ?)

We are here, but we run on bleeding edge CVS :-)

Frank Bauer

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


Gmane