Re: jabberd-2.4.0 release

2016-05-31 Thread li...@lazygranch.com
On Tue, 31 May 2016 09:52:38 +0200
Tomasz Sterna  wrote:

> W dniu 31.05.2016, wto o godzinie 00∶39 -0700, użytkownik
> li...@lazygranch.com napisał:
> > ./configure --with-extra-library-path /usr/local/lib --with-extra-
> > include-path /usr/local/include
> > yielded
> > 
> > checking build system type... /usr/local/lib
> > configure: error: invalid value of canonical build
> 
> Double-dash options format is:
> --long-option=value
> 
> So, you need:
> ./configure --with-extra-library-path=/usr/local/lib
> --with-extra-include-path=/usr/local/include
> 
> 

That works. It isn't finding the config files which I assume I can fix
on the command line. The point is the new binary is running. Thanks for
your help.





Re: jabberd-2.4.0 release

2016-05-31 Thread li...@lazygranch.com
On Sat, 28 May 2016 08:16:50 +0200
Tomasz Sterna  wrote:

> W dniu 27.05.2016, pią o godzinie 19∶14 -0700, użytkownik
> li...@lazygranch.com napisał:
> > Do you have both expat and its headers installed?
> > Verify headers:
> > /usr/local/include
> > 
> > So is this a flag or environment variable I need to set?
> 
> Yes.
> 
> $ ./configure --help
> [...]
>   --with-extra-include-path
>   use additional include paths
>   --with-extra-library-path
>   use additional library paths (remember to
> update
>   /etc/ld.so.conf too)

I'm guessing the library command you suggested is ldconfig.

In any event, 
./configure --with-extra-library-path /usr/local/lib --with-extra-include-path 
/usr/local/include
yielded

checking build system type... /usr/local/lib
configure: error: invalid value of canonical build

I'm just going to wait for the freebsd port. 




Re: jabberd-2.4.0 release

2016-05-27 Thread li...@lazygranch.com
On Fri, 27 May 2016 19:29:43 +0200
Tomasz Sterna  wrote:

> W dniu 27.05.2016, pią o godzinie 00∶09 -0700, użytkownik
> li...@lazygranch.com napisał:
> > Actually I had downloaded  jabberd-2.4.0.tar.gz. [...]
> > Doing some internet search, it is suggested the procedure should be:
> > aclocal
> > automake --add-missing
> > autoconf
> > ./configure
> 
> Using jabberd-2.4.0.tar.gz you do not need to do autotools stuff.
> Just:
> 
> ./configure
> make
> sudo make install
> 
> 
> > I get this error message:
> > --
> > checking for XML_ParserCreate in -lexpat... no
> > configure: error: Expat not found
> 
> configure cannot find Expat [1].
> Do you have both expat and its headers installed?
> 
> [1] http://www.libexpat.org/
> 

Verify headers:
-
# pwd
/usr/local/include
# ls expat*
expat.h expat_config.h  expat_external.h


Verify expat:
-
# pwd
/usr/local/lib
# ls libexpat*
libexpat.a  libexpat.so.1   libexpat.so.6
libexpat.so libexpat.so.1.6.0
--

So is this a flag or environment variable I need to set?





Re: jabberd-2.4.0 release

2016-05-27 Thread li...@lazygranch.com
On Fri, 27 May 2016 06:22:01 +0200
Tomasz Sterna  wrote:

> W dniu 26.05.2016, czw o godzinie 19∶46 -0700, użytkownik
> li...@lazygranch.com napisał:
> > This is from my attempt to compile the tar.gz file after doing
> > autoreconf -i
> > ./configure
> > 
> > I get
> > ./configure: 12735: Syntax error: word unexpected (expecting ")")
> 
> 
> Do not use the source labeled "Source code (tar.gz)" - this is plain
> git source dump, not ready for direct consumption.
> 
> Use the source labeled jabberd-2.4.0.tar.xz or jabberd-2.4.0.tar.gz
> (the ones with .asc signatures). These are prepared, with ./configure
> script etc. generated.
> 
> 
> 
> P.S. or install autoconf-archive package
> 

Actually I had downloaded  jabberd-2.4.0.tar.gz. However I downloaded
the xz file. I also installed autoconf-archive, though I don't know how
I'm supposed to use it.

Doing some internet search, it is suggested the procedure should be:
aclocal
automake --add-missing
autoconf
./configure

I get this error message:
--
checking for XML_ParserCreate in -lexpat... no
configure: error: Expat not found
--
I have expat, so it is a matter of configure not finding it.


Actually I had downloaded  jabberd-2.4.0.tar.gz. However I downloaded
the xz file. I also installed autoconf-archive, though I don't know how
I'm supposed to use it.

Doing some internet search, it is suggested the procedure should be:
aclocal
automake --add-missing
autoconf
./configure

I get this error message:
--
checking for XML_ParserCreate in -lexpat... no
configure: error: Expat not found
--
I have expat, so it is a matter of configure not finding it.




Re: jabberd-2.4.0 release

2016-05-26 Thread li...@lazygranch.com
On Mon, 23 May 2016 21:53:36 +0200
Tomasz Sterna  wrote:

> W dniu 23.05.2016, pon o godzinie 15∶38 -0400, użytkownik Greg Troxel
> napisał:
> > Does this imply that it should be safe, aside from cautions in NEWS,
> > to update a machine running 2.3.x to 2.4.0?
> 
> Yes. No breaking changes.
> 
> > Often a minor version change indicates something more dramatic than
> > bugfixes, so I thought I would ask.
> 
> I am attempting to follow http://semver.org/ so every release should
> bring up MINOR number, with PATCH reserved for fixing screw-ups in
> MINOR release.
> 
> 2.4.0 fixes bugs in XMPP/XEP/daemons implementation, not in the
> release process itself.
> 
> So, expect 2.5.0 to follow up, not 2.4.1.
> 
> 
> 

This is from my attempt to compile the tar.gz file after doing
autoreconf -i
./configure

I get
./configure: 12735: Syntax error: word unexpected (expecting ")")

Using vim on configure:
# Colorized build output
AX_CHECK_COMPILE_FLAG(-fdiagnostics-color, CFLAGS="${CFLAGS} 
-fdiagnostics-color",
AX_CHECK_COMPILE_FLAG([-fcolor-diagnostics], [CFLAGS="${CFLAGS}
-fcolor-diagnostics"]))




self signed cert

2016-05-03 Thread li...@lazygranch.com
freebsd 10.2 
jabberd2 version(2.3.6)

I followed these instructions:
https://github.com/jabberd2/jabberd2/wiki/InstallGuide-OpenSSLConfiguration
other than renaming server.pem to jabber.pem since I had originally put
that in the XML files.

In the c2s.xml 
MYDOMAIN>ORG


Pulling some lines out of the debug with the usual sanitation to keep
out of the search engines: 

C2S : Tue May  3 08:54:56 2016 authreg.c:80 preloaded module 'mysql' (not 
initialized yet)
SM  : sx (ssl.c:992) Restricting TLS ciphers to 
!aNULL:!eNULL:!EXP:ALL:!EXPORT:!aNULL:!eNULL:!SSLv2
SM  : sx (ssl.c:1021) No CA chain specified. Loading SSL default CA certs: 
/etc/ssl/certs

SM  : sx (ssl.c:405) secure channel not established, handshake in progress
SM  : sx (ssl.c:59) verify error:num=18:self signed 
certificate:depth=0:/C=US/ST=state/L=city/O=none/OU=none
/CN=mydomain.org/emailAddress=webmas...@mydomain.org


How exactly do I specify the cachain for a self signed cert.

I get openssl error 18 meaning it can't be verified. Setting
verify-mode='0' didn't help.




Can't log in;starttls;freebsd 10.2 ; jabberd2 version(2.3.6)

2016-05-01 Thread li...@lazygranch.com
freebsd 10.2 
jabberd2 version(2.3.6)

I'm using mysql to hold the usernames and passwords. I have verified
that they are in the database by doing a select *. The usernames in the
mysql database are in plain text. 

I am setting up jabberd2 for a private messaging service, and thus
don't want users registering themselves, hence I used mysql because
that allows me to maintain all the accounts by logging into the server. 

PEM file is self signed. 
I have not loaded s2s since I don't want to link this to other XMPP
servers. 

I am not using port 5223 since I need no backwards compatibility. I
want to use TLS via starttls.

I am using profanity to test the jabberd2 server being logged into the
server rather than over the internet. [Profanity is a XMPP client that
doesn't need a gui.]

Relevant portions of c2s.xml:

MYDOMAIN.COM

  


  
  

/usr/local/lib/jabberd


mysql




  

  
  



  




  
  

  

  


  




what follows is the debug output once the program has initialized. That
is, I ran jabberd -D and let the program settle, then tried to log in.
I could supply more, but I'm trying to keep it relevant to the login
session. The file is sanitized of private data, which should be obvious
where applicable. I also wrapped the long lines.
-
C2S : sx (sx.c:115) freeing 5 env plugins
C2S : Mon May  2 01:08:12 2016 [notice] [7] [MYIP, port=43659] connect
C2S : Mon May  2 01:08:12 2016 c2s.c:563 accept action on fd 7
C2S : sx (sx.c:65) allocated new sx for 7
C2S : sx (server.c:260) doing server init for sx 7 
C2S : sx (server.c:272) waiting for stream header
C2S : sx (server.c:275) tag 7 event 0 data 0x0
C2S : Mon May  2 01:08:12 2016 c2s.c:37 want read
C2S : Mon May  2 01:08:12 2016 c2s.c:515 read action on fd 7
C2S : sx (io.c:206) 7 ready for reading
C2S : sx (io.c:212) tag 7 event 2 data 0x2e03940
C2S : Mon May  2 01:08:12 2016 c2s.c:47 reading from 7
C2S : Mon May  2 01:08:12 2016 c2s.c:106 read 156 bytes
C2S : sx (io.c:231) passed 156 read bytes
C2S : sx (chain.c:93) calling io read chain


C2S : sx (io.c:255) decoded read data (156 bytes): 
http://etherx.jabber.org/streams";>

C2S : sx (server.c:126) stream request: to MYDOMAIN.COM from (null) version 1.0
C2S : sx (server.c:141) 7 state change from 0 to 1
C2S : sx (server.c:159) stream id is LONGRANDOM
C2S : Mon May  2 01:08:12 2016 ack.c:34 hacking ack namespace decl onto stream 
header
C2S : sx (server.c:202) prepared stream response: 


C2S : sx (io.c:271) tag 7 event 1 data 0x0
C2S : Mon May  2 01:08:12 2016 c2s.c:42 want write
C2S : Mon May  2 01:08:12 2016 c2s.c:529 write action on fd 7
C2S : sx (io.c:343) 7 ready for writing
C2S : sx (io.c:301) encoding 250 bytes for writing: 


C2S : sx (chain.c:79) calling io write chain
C2S : sx (io.c:364) handing app 250 bytes to write
C2S : sx (io.c:365) tag 7 event 3 data 0x2e03970
C2S : Mon May  2 01:08:12 2016 c2s.c:113 writing to 7
C2S : Mon May  2 01:08:12 2016 c2s.c:117 250 bytes written
C2S : sx (server.c:29) stream established
C2S : sx (server.c:39) 7 state change from 1 to 3
C2S : sx (server.c:40) tag 7 event 4 data 0x0
C2S : sx (server.c:45) building features nad
C2S : sx (address.c:34) adding address feature
C2S : sx (sasl.c:260) ssl not established yet but the app requires it, not 
offering mechanisms
C2S : Mon May  2 01:08:12 2016 bind.c:38 not auth'd, offering auth and register
C2S : sx (io.c:398) tag 7 event 0 data 0x0
C2S : Mon May  2 01:08:12 2016 c2s.c:37 want read
C2S : Mon May  2 01:08:12 2016 c2s.c:529 write action on fd 7
C2S : sx (io.c:343) 7 ready for writing
C2S : sx (io.c:301) encoding 267 bytes for writing: MYIP

C2S : sx (chain.c:79) calling io write chain
C2S : sx (io.c:364) handing app 267 bytes to write
C2S : sx (io.c:365) tag 7 event 3 data 0x2e03970
C2S : Mon May  2 01:08:12 2016 c2s.c:113 writing to 7
C2S : Mon May  2 01:08:12 2016 c2s.c:117 267 bytes written
C2S : sx (io.c:398) tag 7 event 0 data 0x0
C2S : Mon May  2 01:08:12 2016 c2s.c:37 want read
C2S : Mon May  2 01:08:12 2016 c2s.c:515 read action on fd 7
C2S : Mon May  2 01:08:12 2016 [notice] [7] got pre STARTTLS packet, dropping
C2S : sx (io.c:206) 7 ready for reading
C2S : sx (io.c:212) tag 7 event 2 data 0x2e03970
C2S : Mon May  2 01:08:12 2016 c2s.c:47 reading from 7
C2S : Mon May  2 01:08:12 2016 c2s.c:106 read 176 bytes
C2S : sx (io.c:231) passed 176 read bytes
C2S : sx (chain.c:93) calling io read chain
C2S : sx (io.c:255) decoded read data (176 bytes): SOMEUSERPASSWORD
profanity

C2S : sx (io.c:96) completed nad: SOMEUSERPASSWORD
profanity

C2S : sx (chain.c:119) calling nad read chain
C2S : sx (io.c:167) tag 7 event 6 data 0x2dd6da0
C2S : Mon May  2 01:08:12 2016 c2s.c:392 pre STARTTLS packet, dropping

C2S : sx (error.c:79) prepared error: 


STARTTLS is required for this stream

C2S : sx (error.c:100) tag 7 event 1 data 0x0
C2S : Mon May  2 01:08:12 201