From owner-freebsd-current@freebsd.org Thu Jul 16 04:16:03 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFC559A3294 for ; Thu, 16 Jul 2015 04:16:03 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B3A813E0 for ; Thu, 16 Jul 2015 04:16:03 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtp (envelope-from ) id <1ZFaaQ-0011mY-FA>; Thu, 16 Jul 2015 06:15:54 +0200 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (envelope-from ) id <1ZFaaQ-000fkw-9q>; Thu, 16 Jul 2015 06:15:54 +0200 Date: Thu, 16 Jul 2015 06:15:48 +0200 From: "O. Hartmann" To: David Horn Cc: "freebsd-current@freebsd.org" Subject: Re: mount_smbfs: syserr: Authetication error (option -N) Message-ID: <20150716061548.7cc71511@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: References: <20150714155848.7ee77773@freyja.zeit4.iv.bundesimmobilien.de> Organization: FU Berlin X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 04:16:03 -0000 On Wed, 15 Jul 2015 20:55:38 -0400 David Horn wrote: > On Tue, Jul 14, 2015 at 9:58 AM, O. Hartmann > wrote: > > Running CURRENT and trying to mount a "share" provided by a M$ Windows > > 2012R2 server via autofs fails with an authetication error. > > > > I tested successfully to mount the share via mount_smbfs manually, but > > whenever I provide the option "-N" I receive this sticky authentication > > error. > > > > The manpage for mount_smbfs refers to /etc/nsmb.conf and therein the > > password should be provided in cleartext or simple encrypted. Further, the > > FreeBSD onboard tool "smbutil crypt SOMEPASSWORD" is suggested, creating a > > weak obscured password hash for exactly the purpose I described above. > > > > If your password is longer than 18 characters, then the smbutil crypt > function will fail. > > I put in a bug report on this a few years ago. > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=132302 > > Short answer, if you are running into this problem, either patch your > smbutil function, or use a shorter password. There is a workaround > patch included in the bug report. > > If you are having a different problem, good luck, but submit a report > if it is not the same issue. > > Dave Horn Hello. Thank you very much for yor answer. My problem was much more trivial than a overlong password: I did not realise that in nsmb.conf, the tags for the [SHARE:USER] description has to be all uppercase. The documentation is regarding to this not very convenient to read. Oliver Hartmann