From nobody@FreeBSD.org  Tue Oct 23 12:10:07 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8BBA2EE3
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Oct 2012 12:10:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6A0178FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Oct 2012 12:10:07 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9NCA6FW086861
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Oct 2012 12:10:06 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9NCA6In086860;
	Tue, 23 Oct 2012 12:10:06 GMT
	(envelope-from nobody)
Message-Id: <201210231210.q9NCA6In086860@red.freebsd.org>
Date: Tue, 23 Oct 2012 12:10:06 GMT
From: Michael Letzgus <michael.letzgus@uni-bielefeld.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Upgrade from samba36 3.6.7 to 3.6.8 kills AD membership, "net ads join" segfaults
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172983
>Category:       ports
>Synopsis:       Upgrade from net/samba36 3.6.7 to 3.6.8 kills AD membership, "net ads join" segfaults
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    timur
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 12:20:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Fri Nov 09 01:01:33 UTC 2012
>Originator:     Michael Letzgus
>Release:        RELEASE 9.0 p3
>Organization:
Universitt Bielefeld
>Environment:
FreeBSD pc1.uni-bielefeld.de 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Hi,

after upgrading from Samba 3.6.7 to 3.6.8 "something" was wrong with the AD membership:

* net ads testjoin => OK
* wbinfo -P => failed
* wbinfo -t => failed


winbindd logs a lot of these messages:

winbindd/winbindd_cm.c:1015(cm_prepare_connection)
  failed tcon_X with NT_STATUS_ACCESS_DENIED


Oct 23 13:22:00 pc1 winbindd[42932]: [2012/10/23 13:22:00.194727,  0] winbindd/winbindd_util.c:635(init_domain_list)
Oct 23 13:22:00 pc1 winbindd[42932]:   Could not fetch our SID - did we join?
Oct 23 13:22:00 pc1 winbindd[42932]: [2012/10/23 13:22:00.194825,  0] winbindd/winbindd.c:1108(winbindd_register_handlers)
Oct 23 13:22:00 pc1 winbindd[42932]:   unable to initialize domain list




Joining the domain again failed because "net" segfaulted:

>How-To-Repeat:
Upgrade from Samba 3..6.7 to 3.6.8 on a machine which is ADS member...
>Fix:
go back to 3.6.7!

I'll try to reproduce that on a FreeBSD Bm for debugging...

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->timur 
Responsible-Changed-By: rm 
Responsible-Changed-When: Wed Oct 24 10:43:42 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172983 

From: "Timur I. Bakeyev" <timur@FreeBSD.org>
To: bug-followup@freebsd.org, michael.letzgus@uni-bielefeld.de
Cc:  
Subject: Re: ports/172983: Upgrade from samba36 3.6.7 to 3.6.8 kills AD
 membership, &quot;net ads join&quot; segfaults
Date: Wed, 24 Oct 2012 14:11:48 +0200

 --047d7bdc7deedd22cd04ccccfec1
 Content-Type: text/plain; charset=ISO-8859-1
 
 Neat... Well, I can't help much here, port wise there aren't many changes,
 except, maybe:
 
 http://svnweb.freebsd.org/ports/head/net/samba36/files/patch-source3__auth__user_util.c?view=log
 
 Try to recompile without this one - if it doesn't help - please, file a bug
 report to:
 
 https://bugzilla.samba.org/
 
 With best regards,
 Timur Bakeyev.
 
 --047d7bdc7deedd22cd04ccccfec1
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:1=
 3px;background-color:rgb(255,255,255)">Neat... Well, I can&#39;t help much =
 here, port wise there aren&#39;t many changes, except, maybe:</span><div st=
 yle=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;back=
 ground-color:rgb(255,255,255)">
 
 <br></div><div style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;fo=
 nt-size:13px;background-color:rgb(255,255,255)"><a href=3D"http://svnweb.fr=
 eebsd.org/ports/head/net/samba36/files/patch-source3__auth__user_util.c?vie=
 w=3Dlog" target=3D"_blank" style=3D"color:rgb(17,85,204)">http://svnweb.fre=
 ebsd.org/ports/head/net/samba36/files/patch-source3__auth__user_util.c?view=
 =3Dlog</a><div style=3D"width:16px;height:16px;display:inline-block">
 
 </div></div><div style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;=
 font-size:13px;background-color:rgb(255,255,255)"><br></div><div style=3D"c=
 olor:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-c=
 olor:rgb(255,255,255)">
 
 Try to recompile without this one - if it doesn&#39;t help - please, file a=
  bug report to:</div><div style=3D"color:rgb(34,34,34);font-family:arial,sa=
 ns-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div s=
 tyle=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;bac=
 kground-color:rgb(255,255,255)">
 
 <a href=3D"https://bugzilla.samba.org/" target=3D"_blank" style=3D"color:rg=
 b(17,85,204)">https://bugzilla.samba.org/</a><div style=3D"width:16px;heigh=
 t:16px;display:inline-block"></div></div><div style=3D"color:rgb(34,34,34);=
 font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,25=
 5)">
 
 <br></div><div style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;fo=
 nt-size:13px;background-color:rgb(255,255,255)">With best regards,</div><di=
 v style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;=
 background-color:rgb(255,255,255)">
 
 Timur Bakeyev.</div>
 
 --047d7bdc7deedd22cd04ccccfec1--

From: "Dr. Michael Letzgus" <michael.letzgus@uni-bielefeld.de>
To: "Timur I. Bakeyev" <timur@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/172983: Upgrade from samba36 3.6.7 to 3.6.8 kills AD
 membership, &quot;net ads join&quot; segfaults
Date: Wed, 24 Oct 2012 22:23:25 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enigE9B78CDD4E600F00C14E8C2D
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Hm, I'll try this on the failing machine...
 
 I tried to reproduce this in my testing VM with Samba 3.6.8 - without
 problems, the machine which has problems is a live system, so test are a
 bit difficult.
 
 There is one obvious difference between both builds:
 
 Failing machine:
 
 >make run-depends-list
 /usr/ports/converters/libiconv
 /usr/ports/databases/tdb
 /usr/ports/devel/gamin
 /usr/ports/devel/libexecinfo
 /usr/ports/devel/popt
 /usr/ports/devel/talloc
 /usr/ports/net/openldap24-sasl-client
 /usr/ports/sysutils/libsunacl
 
 Working machine:
 >make run-depends-list
 /usr/ports/converters/libiconv
 /usr/ports/databases/tdb
 /usr/ports/devel/gamin
 /usr/ports/devel/libexecinfo
 /usr/ports/devel/popt
 /usr/ports/devel/talloc
 /usr/ports/misc/e2fsprogs-libuuid
 /usr/ports/net/openldap24-client
 /usr/ports/sysutils/libsunacl
 
 The failing samba 3.6.8 is linked against the SASL version of the LDAP
 library. Hm, and the working version requires e2fsprogs-libuuid.. why
 that? *G*
 
 
 
 
 Best regards,
  Michael
 
 --=20
 
 Dr. Michael Letzgus
 
 Physikalische Chemie I
 Universit=E4t Bielefeld
 Universit=E4tsstr. 25
 D-33615 Bielefeld
 
 michael.letzgus@uni-bielefeld.de
 
 B=FCro: F2-118
 Tel:  0521-106-2190
 Fax:  0521-106-152190
 
 
 Am 24.10.2012 14:11, schrieb Timur I. Bakeyev:
 > Neat... Well, I can't help much here, port wise there aren't many chang=
 es,
 > except, maybe:
 >=20
 > http://svnweb.freebsd.org/ports/head/net/samba36/files/patch-source3__a=
 uth__user_util.c?view=3Dlog
 >=20
 > Try to recompile without this one - if it doesn't help - please, file a=
  bug
 > report to:
 >=20
 > https://bugzilla.samba.org/
 >=20
 > With best regards,
 > Timur Bakeyev.
 >=20
 
 
 --------------enigE9B78CDD4E600F00C14E8C2D
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
 
 iEYEARECAAYFAlCITkcACgkQNm8Vv8N21ZbUzgCgpikcX86XUT1aCLzjx843fY2B
 UiAAoIm1SLJZjCm8ENGhkSfRfNxE1+k0
 =0GUS
 -----END PGP SIGNATURE-----
 
 --------------enigE9B78CDD4E600F00C14E8C2D--

From: "Timur I. Bakeyev" <timur@FreeBSD.org>
To: "Dr. Michael Letzgus" <michael.letzgus@uni-bielefeld.de>
Cc: bug-followup@freebsd.org
Subject: Re: ports/172983: Upgrade from samba36 3.6.7 to 3.6.8 kills AD
 membership, &quot;net ads join&quot; segfaults
Date: Wed, 24 Oct 2012 23:40:08 +0200

 --005045017f906fda6c04ccd4efad
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Hi, Michael!
 
 That's interesting... libuuid is used for DDNS, IIRC, so check, that on
 both machines options are the same.
 
 I don't expect that there is a difference in behavior of LDAP and LDAP+SASL=
 .
 
 Please, try to remove the patch I mentioned - it is connected with username
 mapping, so it MAY result in that user (null). Otherwise I don't see any
 other reasons...
 
 With best regards,
 Timur.
 
 
 On Wed, Oct 24, 2012 at 10:23 PM, Dr. Michael Letzgus <
 michael.letzgus@uni-bielefeld.de> wrote:
 
 > Hm, I'll try this on the failing machine...
 >
 > I tried to reproduce this in my testing VM with Samba 3.6.8 - without
 > problems, the machine which has problems is a live system, so test are a
 > bit difficult.
 >
 > There is one obvious difference between both builds:
 >
 > Failing machine:
 >
 > >make run-depends-list
 > /usr/ports/converters/libiconv
 > /usr/ports/databases/tdb
 > /usr/ports/devel/gamin
 > /usr/ports/devel/libexecinfo
 > /usr/ports/devel/popt
 > /usr/ports/devel/talloc
 > /usr/ports/net/openldap24-sasl-client
 > /usr/ports/sysutils/libsunacl
 >
 > Working machine:
 > >make run-depends-list
 > /usr/ports/converters/libiconv
 > /usr/ports/databases/tdb
 > /usr/ports/devel/gamin
 > /usr/ports/devel/libexecinfo
 > /usr/ports/devel/popt
 > /usr/ports/devel/talloc
 > /usr/ports/misc/e2fsprogs-libuuid
 > /usr/ports/net/openldap24-client
 > /usr/ports/sysutils/libsunacl
 >
 > The failing samba 3.6.8 is linked against the SASL version of the LDAP
 > library. Hm, and the working version requires e2fsprogs-libuuid.. why
 > that? *G*
 >
 >
 >
 >
 > Best regards,
 >  Michael
 >
 > --
 >
 > Dr. Michael Letzgus
 >
 > Physikalische Chemie I
 > Universit=E4t Bielefeld
 > Universit=E4tsstr. 25
 > D-33615 Bielefeld
 >
 > michael.letzgus@uni-bielefeld.de
 >
 > B=FCro: F2-118
 > Tel:  0521-106-2190
 > Fax:  0521-106-152190
 >
 >
 > Am 24.10.2012 14:11, schrieb Timur I. Bakeyev:
 > > Neat... Well, I can't help much here, port wise there aren't many
 > changes,
 > > except, maybe:
 > >
 > >
 > http://svnweb.freebsd.org/ports/head/net/samba36/files/patch-source3__aut=
 h__user_util.c?view=3Dlog
 > >
 > > Try to recompile without this one - if it doesn't help - please, file a
 > bug
 > > report to:
 > >
 > > https://bugzilla.samba.org/
 > >
 > > With best regards,
 > > Timur Bakeyev.
 > >
 >
 >
 
 --005045017f906fda6c04ccd4efad
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div>Hi, Michael!</div><div><br></div>That&#39;s interesting... libuuid is =
 used for DDNS, IIRC, so check, that on both machines options are the same.<=
 div><br></div><div>I don&#39;t expect that there is a difference in behavio=
 r of LDAP and LDAP+SASL.</div>
 
 <div><br></div><div>Please, try to remove the patch I mentioned - it is con=
 nected with username mapping, so it MAY result in that user (null). Otherwi=
 se I don&#39;t see any other reasons...</div><div><br></div><div>With best =
 regards,</div>
 
 <div>Timur.<br><div><br><br><div class=3D"gmail_quote">On Wed, Oct 24, 2012=
  at 10:23 PM, Dr. Michael Letzgus <span dir=3D"ltr">&lt;<a href=3D"mailto:m=
 ichael.letzgus@uni-bielefeld.de" target=3D"_blank">michael.letzgus@uni-biel=
 efeld.de</a>&gt;</span> wrote:<br>
 
 <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
 x #ccc solid;padding-left:1ex">Hm, I&#39;ll try this on the failing machine=
 ...<br>
 <br>
 I tried to reproduce this in my testing VM with Samba 3.6.8 - without<br>
 problems, the machine which has problems is a live system, so test are a<br=
 >
 bit difficult.<br>
 <br>
 There is one obvious difference between both builds:<br>
 <br>
 Failing machine:<br>
 <br>
 &gt;make run-depends-list<br>
 /usr/ports/converters/libiconv<br>
 /usr/ports/databases/tdb<br>
 /usr/ports/devel/gamin<br>
 /usr/ports/devel/libexecinfo<br>
 /usr/ports/devel/popt<br>
 /usr/ports/devel/talloc<br>
 /usr/ports/net/openldap24-sasl-client<br>
 /usr/ports/sysutils/libsunacl<br>
 <br>
 Working machine:<br>
 &gt;make run-depends-list<br>
 /usr/ports/converters/libiconv<br>
 /usr/ports/databases/tdb<br>
 /usr/ports/devel/gamin<br>
 /usr/ports/devel/libexecinfo<br>
 /usr/ports/devel/popt<br>
 /usr/ports/devel/talloc<br>
 /usr/ports/misc/e2fsprogs-libuuid<br>
 /usr/ports/net/openldap24-client<br>
 /usr/ports/sysutils/libsunacl<br>
 <br>
 The failing samba 3.6.8 is linked against the SASL version of the LDAP<br>
 library. Hm, and the working version requires e2fsprogs-libuuid.. why<br>
 that? *G*<br>
 <br>
 <br>
 <br>
 <br>
 Best regards,<br>
 =A0Michael<br>
 <br>
 --<br>
 <br>
 Dr. Michael Letzgus<br>
 <br>
 Physikalische Chemie I<br>
 Universit=E4t Bielefeld<br>
 Universit=E4tsstr. 25<br>
 D-33615 Bielefeld<br>
 <br>
 <a href=3D"mailto:michael.letzgus@uni-bielefeld.de">michael.letzgus@uni-bie=
 lefeld.de</a><br>
 <br>
 B=FCro: F2-118<br>
 Tel: =A00521-106-2190<br>
 Fax: =A00521-106-152190<br>
 <br>
 <br>
 Am 24.10.2012 14:11, schrieb Timur I. Bakeyev:<br>
 <div class=3D"HOEnZb"><div class=3D"h5">&gt; Neat... Well, I can&#39;t help=
  much here, port wise there aren&#39;t many changes,<br>
 &gt; except, maybe:<br>
 &gt;<br>
 &gt; <a href=3D"http://svnweb.freebsd.org/ports/head/net/samba36/files/patc=
 h-source3__auth__user_util.c?view=3Dlog" target=3D"_blank">http://svnweb.fr=
 eebsd.org/ports/head/net/samba36/files/patch-source3__auth__user_util.c?vie=
 w=3Dlog</a><br>
 
 
 &gt;<br>
 &gt; Try to recompile without this one - if it doesn&#39;t help - please, f=
 ile a bug<br>
 &gt; report to:<br>
 &gt;<br>
 &gt; <a href=3D"https://bugzilla.samba.org/" target=3D"_blank">https://bugz=
 illa.samba.org/</a><br>
 &gt;<br>
 &gt; With best regards,<br>
 &gt; Timur Bakeyev.<br>
 &gt;<br>
 <br>
 </div></div></blockquote></div><br></div></div>
 
 --005045017f906fda6c04ccd4efad--

From: "Dr. Michael Letzgus" <michael.letzgus@uni-bielefeld.de>
To: "Timur I. Bakeyev" <timur@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/172983: Upgrade from samba36 3.6.7 to 3.6.8 kills AD
 membership, &quot;net ads join&quot; segfaults
Date: Thu, 25 Oct 2012 10:03:21 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig66CF5FB80A79DF7CCD26770D
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Hi Timur,
 
 I think the "(null)" user is caused by "su -l root" not setting LOGNAME v=
 ariable.
 
 I just compiled 3.6.8 (with the auth patch) in a VM, copied "net" to the =
 machine with problems and
 tried "net ads join" without problems. When building it on the ill machin=
 e it crashes....
 
 Best regards,
  Michael
 
 Am 24.10.2012 23:40, schrieb Timur I. Bakeyev:
 > Hi, Michael!
 >=20
 > That's interesting... libuuid is used for DDNS, IIRC, so check, that on=
  both machines options are
 > the same.
 >=20
 > I don't expect that there is a difference in behavior of LDAP and LDAP+=
 SASL.
 >=20
 > Please, try to remove the patch I mentioned - it is connected with user=
 name mapping, so it MAY
 > result in that user (null). Otherwise I don't see any other reasons...
 >=20
 > With best regards,
 > Timur.
 >=20
 >=20
 > On Wed, Oct 24, 2012 at 10:23 PM, Dr. Michael Letzgus <michael.letzgus@=
 uni-bielefeld.de
 > <mailto:michael.letzgus@uni-bielefeld.de>> wrote:
 >=20
 >     Hm, I'll try this on the failing machine...
 >=20
 >     I tried to reproduce this in my testing VM with Samba 3.6.8 - witho=
 ut
 >     problems, the machine which has problems is a live system, so test =
 are a
 >     bit difficult.
 >=20
 >     There is one obvious difference between both builds:
 >=20
 >     Failing machine:
 >=20
 >     >make run-depends-list
 >     /usr/ports/converters/libiconv
 >     /usr/ports/databases/tdb
 >     /usr/ports/devel/gamin
 >     /usr/ports/devel/libexecinfo
 >     /usr/ports/devel/popt
 >     /usr/ports/devel/talloc
 >     /usr/ports/net/openldap24-sasl-client
 >     /usr/ports/sysutils/libsunacl
 >=20
 >     Working machine:
 >     >make run-depends-list
 >     /usr/ports/converters/libiconv
 >     /usr/ports/databases/tdb
 >     /usr/ports/devel/gamin
 >     /usr/ports/devel/libexecinfo
 >     /usr/ports/devel/popt
 >     /usr/ports/devel/talloc
 >     /usr/ports/misc/e2fsprogs-libuuid
 >     /usr/ports/net/openldap24-client
 >     /usr/ports/sysutils/libsunacl
 >=20
 >     The failing samba 3.6.8 is linked against the SASL version of the L=
 DAP
 >     library. Hm, and the working version requires e2fsprogs-libuuid.. w=
 hy
 >     that? *G*
 >=20
 >=20
 >=20
 >=20
 >     Best regards,
 >      Michael
 >=20
 >     --
 >=20
 >     Dr. Michael Letzgus
 >=20
 >     Physikalische Chemie I
 >     Universit=E4t Bielefeld
 >     Universit=E4tsstr. 25
 >     D-33615 Bielefeld
 >=20
 >     michael.letzgus@uni-bielefeld.de <mailto:michael.letzgus@uni-bielef=
 eld.de>
 >=20
 >     B=FCro: F2-118
 >     Tel:  0521-106-2190
 >     Fax:  0521-106-152190
 >=20
 >=20
 >     Am 24.10.2012 14:11, schrieb Timur I. Bakeyev:
 >     > Neat... Well, I can't help much here, port wise there aren't many=
  changes,
 >     > except, maybe:
 >     >
 >     > http://svnweb.freebsd.org/ports/head/net/samba36/files/patch-sour=
 ce3__auth__user_util.c?view=3Dlog
 >     >
 >     > Try to recompile without this one - if it doesn't help - please, =
 file a bug
 >     > report to:
 >     >
 >     > https://bugzilla.samba.org/
 >     >
 >     > With best regards,
 >     > Timur Bakeyev.
 >     >
 >=20
 >=20
 
 --=20
 
 Dr. Michael Letzgus
 
 Physikalische Chemie I
 Universit=E4t Bielefeld
 Universit=E4tsstr. 25
 D-33615 Bielefeld
 
 michael.letzgus@uni-bielefeld.de
 
 B=FCro: F2-118
 Tel:  0521-106-2190
 Fax:  0521-106-152190
 
 
 --------------enig66CF5FB80A79DF7CCD26770D
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
 
 iEYEARECAAYFAlCI8k4ACgkQNm8Vv8N21ZYTfQCghg5MZR+CuuUKyZj72MdpuPxt
 JQcAmwVIMvCqLj93C0ve5wIJDnai59kP
 =1df3
 -----END PGP SIGNATURE-----
 
 --------------enig66CF5FB80A79DF7CCD26770D--

From: "Dr. Michael Letzgus" <michael.letzgus@uni-bielefeld.de>
To: "Timur I. Bakeyev" <timur@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/172983: Upgrade from samba36 3.6.7 to 3.6.8 kills AD
 membership, &quot;net ads join&quot; segfaults
Date: Thu, 25 Oct 2012 22:48:06 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig812572239E9FDC80295BB88A
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Hi Timur,
 
 I now can confirm the libmd.so vs. libmd5.so problem.
 
 I set up a fresh new VM with Release 9.0p3 and did the following:
 
 1. Check if libwww is installed (of course not) or
 /usr/local/lib/libmd5.so is present (it isn't)
 
 2. Compile and install the latest net/samba36-3.6.8 port with ADS option
 (after configure, source3/Makefile contains "LIBS=3D... -lmd")
 
 3. Join a domain, play around with wbinfo
 
 4. Compile and install the port www/libwww
 
 5. Check for /usr/local/lib/libmd5.so, it's there now
 
 6. "make clean reinstall" net/samba36-3.6.8 (after configure,
 source3/Makefile contains "LIBS=3D... -lmd5" (!))
 
 7. Try "net ads join -U someuser" [segfault]
 
 8. "/usr/local/etc/rc.d/samba restart" =3D>a lot of horrible segfaults,
 samba internal errors and error messages
 
 9. symlink /lib/libmd.so to /usr/local/lib/libmd5.so
 
 10. Try "net ads join -U someuser" =3D>success
 
 11. "/usr/local/etc/rc.d/samba restart" =3D>success
 
 12. Playing with wbinfo ;-) =3D>success
 
 13. "pkg_deinstall libwww", libmd5 is away now
 
 14. "make clean reinstall" net/samba36-3.6.8 (after configure,
 source3/Makefile contains "LIBS=3D... -lmd")
 
 15. Everything fine again. :)
 
 What to do next? Is this a FreeBSD specific problem or is it something
 for the samba guys (I opened a new issue there)?
 
 I think that the fix for Bug 9037 is responsible for all this trouble.
 
 
 Best regards,
  Michael
 
 Am 25.10.2012 11:32, schrieb Timur I. Bakeyev:
 > Hi, Michael!
 >=20
 > So, even without auth patch it crashes? It could be that some library i=
 s
 > damaged...
 >=20
 > Well, try to rebuild Samba with MAX_DEBUG set and debug it's behavior. =
 If
 > core file is created after the segfault -
 > it can be examined, otherwise it's possible to run "net" under gdb and =
 see,
 > where it crashes.
 >=20
 > Well, don't have much clue, what else can be checked. Anything in the l=
 ogs,
 > maybe?
 >=20
 > With regards,
 > Timur.
 >=20
 > On Thu, Oct 25, 2012 at 11:09 AM, Dr. Michael Letzgus <
 > michael.letzgus@uni-bielefeld.de> wrote:
 >=20
 >> Hi again,
 >>
 >> no clue whats wrong on this machine - I can't build a working version =
 of
 >> samba 3.6.8 there - even
 >> without the auth-patch.
 >>
 >> On another machine everything works fine, I can even copy this working=
 
 >> version of "net" to the other
 >> machine an it works there.
 >>
 >> It's always the same problem: Segfault signal 11 after entering the
 >> password, no difference whether
 >> it's correct or not.
 >>
 >>
 >> Best regards,
 >>  Michael
 >>
 >>
 >> Am 24.10.2012 23:40, schrieb Timur I. Bakeyev:
 >>> Hi, Michael!
 >>>
 >>> That's interesting... libuuid is used for DDNS, IIRC, so check, that =
 on
 >> both machines options are
 >>> the same.
 >>>
 >>> I don't expect that there is a difference in behavior of LDAP and
 >> LDAP+SASL.
 >>>
 >>> Please, try to remove the patch I mentioned - it is connected with
 >> username mapping, so it MAY
 >>> result in that user (null). Otherwise I don't see any other reasons..=
 =2E
 >>>
 >>> With best regards,
 >>> Timur.
 >>>
 >>>
 >>> On Wed, Oct 24, 2012 at 10:23 PM, Dr. Michael Letzgus <
 >> michael.letzgus@uni-bielefeld.de
 >>> <mailto:michael.letzgus@uni-bielefeld.de>> wrote:
 >>>
 >>>     Hm, I'll try this on the failing machine...
 >>>
 >>>     I tried to reproduce this in my testing VM with Samba 3.6.8 - wit=
 hout
 >>>     problems, the machine which has problems is a live system, so tes=
 t
 >> are a
 >>>     bit difficult.
 >>>
 >>>     There is one obvious difference between both builds:
 >>>
 >>>     Failing machine:
 >>>
 >>>     >make run-depends-list
 >>>     /usr/ports/converters/libiconv
 >>>     /usr/ports/databases/tdb
 >>>     /usr/ports/devel/gamin
 >>>     /usr/ports/devel/libexecinfo
 >>>     /usr/ports/devel/popt
 >>>     /usr/ports/devel/talloc
 >>>     /usr/ports/net/openldap24-sasl-client
 >>>     /usr/ports/sysutils/libsunacl
 >>>
 >>>     Working machine:
 >>>     >make run-depends-list
 >>>     /usr/ports/converters/libiconv
 >>>     /usr/ports/databases/tdb
 >>>     /usr/ports/devel/gamin
 >>>     /usr/ports/devel/libexecinfo
 >>>     /usr/ports/devel/popt
 >>>     /usr/ports/devel/talloc
 >>>     /usr/ports/misc/e2fsprogs-libuuid
 >>>     /usr/ports/net/openldap24-client
 >>>     /usr/ports/sysutils/libsunacl
 >>>
 >>>     The failing samba 3.6.8 is linked against the SASL version of the=
 
 >> LDAP
 >>>     library. Hm, and the working version requires e2fsprogs-libuuid..=
  why
 >>>     that? *G*
 >>>
 >>>
 >>>
 >>>
 >>>     Best regards,
 >>>      Michael
 >>>
 >>>     --
 >>>
 >>>     Dr. Michael Letzgus
 >>>
 >>>     Physikalische Chemie I
 >>>     Universit=E4t Bielefeld
 >>>     Universit=E4tsstr. 25
 >>>     D-33615 Bielefeld
 >>>
 >>>     michael.letzgus@uni-bielefeld.de <mailto:
 >> michael.letzgus@uni-bielefeld.de>
 >>>
 >>>     B=FCro: F2-118
 >>>     Tel:  0521-106-2190
 >>>     Fax:  0521-106-152190
 >>>
 >>>
 >>>     Am 24.10.2012 14:11, schrieb Timur I. Bakeyev:
 >>>     > Neat... Well, I can't help much here, port wise there aren't ma=
 ny
 >> changes,
 >>>     > except, maybe:
 >>>     >
 >>>     >
 >> http://svnweb.freebsd.org/ports/head/net/samba36/files/patch-source3__=
 auth__user_util.c?view=3Dlog
 >>>     >
 >>>     > Try to recompile without this one - if it doesn't help - please=
 ,
 >> file a bug
 >>>     > report to:
 >>>     >
 >>>     > https://bugzilla.samba.org/
 >>>     >
 >>>     > With best regards,
 >>>     > Timur Bakeyev.
 >>>     >
 >>>
 >>>
 >>
 >> --
 >>
 >> Dr. Michael Letzgus
 >>
 >> Physikalische Chemie I
 >> Universit=E4t Bielefeld
 >> Universit=E4tsstr. 25
 >> D-33615 Bielefeld
 >>
 >> michael.letzgus@uni-bielefeld.de
 >>
 >> B=FCro: F2-118
 >> Tel:  0521-106-2190
 >> Fax:  0521-106-152190
 >>
 >>
 >=20
 
 
 --------------enig812572239E9FDC80295BB88A
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
 
 iEYEARECAAYFAlCJpYsACgkQNm8Vv8N21ZZ5OACggnRxOVncuZMC4nz5q1xet2Mz
 sdEAn153IurEcuX2zjcsCIHrMO2KzXfb
 =Z7pA
 -----END PGP SIGNATURE-----
 
 --------------enig812572239E9FDC80295BB88A--
>Unformatted:
 >net ads join -U domainadmin
 Password for domainadmin@mydomain:***
 
 Then: Segfault, core dumped
 
 Another strange observation:
 
 With 3.6.7 "net ads join" asked for "root" password, but 3.6.8 asks for password of user "(null)". Something goes horribly wrong inside "net"...
 
 
 smbd had problems, too:
 
 Oct 23 12:19:35 pc1 smbd[38310]: [2012/10/23 12:19:35.877698,  0] rpc_client/cli_pipe_schannel.c:184(cli_rpc_pipe_open_schannel)
 Oct 23 12:19:35 pc1 smbd[38310]:   cli_rpc_pipe_open_schannel: failed to get schannel session key from server DC1.AD.UNI-BIELEFELD.DE for domain AD.
 Oct 23 12:19:35 pc1 smbd[38310]: [2012/10/23 12:19:35.877823,  0] auth/auth_domain.c:193(connect_to_domain_password_server)
 Oct 23 12:19:35 pc1 smbd[38310]:   connect_to_domain_password_server: unable to open the domain client session to machine DC1.AD.UNI-BIELEFELD.DE. Error was : NT_STATUS_ACCESS_DENIED.
 Oct 23 12:19:35 pc1 smbd[38310]: [2012/10/23 12:19:35.886597,  0] rpc_client/cli_pipe_schannel.c:184(cli_rpc_pipe_open_schannel)
 
 [...]
 
 Oct 23 13:35:44 pc1 smbd[46818]:   INTERNAL ERROR: Signal 11 in pid 46818 (3.6.8)
 Oct 23 13:35:44 pc1 smbd[46818]:   Please read the Trouble-Shooting section of the Samba3-HOWTO
 Oct 23 13:35:44 pc1 smbd[46818]: [2012/10/23 13:35:44.673042,  0] lib/fault.c:54(fault_report)
 Oct 23 13:35:44 pc1 smbd[46818]:   
 Oct 23 13:35:44 pc1 smbd[46818]:   From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
 Oct 23 13:35:44 pc1 smbd[46818]: [2012/10/23 13:35:44.673062,  0] lib/fault.c:55(fault_report)
 Oct 23 13:35:44 pc1 smbd[46818]:   ===============================================================
 Oct 23 13:35:44 pc1 smbd[46818]: [2012/10/23 13:35:44.673077,  0] lib/util.c:1117(smb_panic)
 Oct 23 13:35:44 pc1 smbd[46818]:   PANIC (pid 46818): internal error
 
 
 
 
 Since reverting back to 3.6.7 everything is fine.
