From owner-freebsd-current@freebsd.org Thu Jul 16 00:55:42 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 5436399C4D3 for ; Thu, 16 Jul 2015 00:55:42 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC51E119F for ; Thu, 16 Jul 2015 00:55:41 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: by widjy10 with SMTP id jy10so2375840wid.1 for ; Wed, 15 Jul 2015 17:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MhQHhJR1JTt8Vsd565rfw6w65ECeuboNlpW20sG13lk=; b=lv0ZRkdQ2e+De30MFvZM4hdUQOyki0dpGph6NNcr06YwdsM9YaQkXHCtZHRwY1L0uv rRAFDJin48vWQJAKJ6ilKFpzUFlHzwQEVxLDNkXJJvjxOU4AbeQVYcbhGy97Wlnb34Xr 4xHcLxAJ/UjMBOxiv5OoreS3maNjmeWUcU+dEeNNJGi48PS7cnfbW6WzwTXtBnUnZnCj NEklpoUpk036IDp6l4o96p+bu7aVs77pC8wK1KDLyD/HLdk9S7Tma7cNtxiTFSnxd9Db noAv6nQ+7aJaxw/uUBHwiYi7GzPYlsgpP9jQun/NihPFx5Jm4JpRx25UbUR94W0s+qJh YXNw== MIME-Version: 1.0 X-Received: by 10.195.13.113 with SMTP id ex17mr14045565wjd.17.1437008139045; Wed, 15 Jul 2015 17:55:39 -0700 (PDT) Received: by 10.194.137.225 with HTTP; Wed, 15 Jul 2015 17:55:38 -0700 (PDT) In-Reply-To: <20150714155848.7ee77773@freyja.zeit4.iv.bundesimmobilien.de> References: <20150714155848.7ee77773@freyja.zeit4.iv.bundesimmobilien.de> Date: Wed, 15 Jul 2015 20:55:38 -0400 Message-ID: Subject: Re: mount_smbfs: syserr: Authetication error (option -N) From: David Horn To: "O. Hartmann" Cc: "freebsd-current@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 00:55:42 -0000 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