Date: Tue, 26 Feb 2019 19:33:54 +0000 (UTC) From: Muhannad Tahboosh <mh_tahboosh@yahoo.com> To: "freebsd-questions@FreeBSD.org" <freebsd-questions@FreeBSD.org> Subject: kerberos Mathematical Function Message-ID: <2085762699.444207.1551209634464@mail.yahoo.com> References: <2085762699.444207.1551209634464.ref@mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
i need to get the mathematical=C2=A0 function for kerberos using the follow= ing encryption type. kerberos v5. Thank you very much Guide us to The Straight Path From owner-freebsd-questions@freebsd.org Wed Feb 27 02:43:23 2019 Return-Path: <owner-freebsd-questions@freebsd.org> Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88C9F150CC86 for <freebsd-questions@mailman.ysv.freebsd.org>; Wed, 27 Feb 2019 02:43:23 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.holgerdanske.com", Issuer "www.holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D1CC887F2C for <freebsd-questions@freebsd.org>; Wed, 27 Feb 2019 02:43:22 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for <freebsd-questions@freebsd.org>; Tue, 26 Feb 2019 18:43:17 -0800 Subject: Re: Moving raw system image to another drive breaks GELI To: freebsd-questions@freebsd.org References: <f85da179-d38d-c322-ebdb-27ce9f9ee311@holgerdanske.com> From: David Christensen <dpchrist@holgerdanske.com> Message-ID: <a040712e-766c-4391-d929-e58acbd2e04e@holgerdanske.com> Date: Tue, 26 Feb 2019 18:43:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <f85da179-d38d-c322-ebdb-27ce9f9ee311@holgerdanske.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 27 Feb 2019 02:43:23 -0000 On 2/26/19 10:00 AM, David Christensen wrote: > I have a computer: > > 2019-02-26 09:50:14 dpchrist@ragnar ~ > $ freebsd-version ; uname -a > 11.2-RELEASE-p9 > FreeBSD ragnar 11.2-RELEASE-p9 FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 > 15:30:36 UTC 2019 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > > I installed to a SanDisk Ultra Fit USB 3.0 16 GB flash drive: > > Partitioning Auto (ZFS) > Pool Type/Disks stripe,da0 > Pool Name zroot > Force 4K Sectors YES > Encrypt Disks YES > Partition Scheme MBR (BIOS) > Swap Size 2g > Mirror Swap NO > Encrypt Swap YES > Install > > > If I do a raw binary copy of the USB flash drive to a Intel 520 Series > SSD 60 GB with dd(1) and boot the SSD, GELI rejects the passphrase and I > end up at a "mountroot>" prompt. > > > I would like to be able to move raw FreeBSD system images from drive to > drive and have them work. McKusick 2015 p. 214 states "GELI's metadata is found in the last sector of the underlying device or partition". Examine the slice/ partition tables for the USB flash drive: root@ragnar:~ # gpart show da0 da0s1 => 63 30031809 da0 MBR (14G) 63 1 - free - (512B) 64 30031808 1 freebsd [active] (14G) => 0 30031808 da0s1 BSD (14G) 0 4194304 1 freebsd-zfs (2.0G) 4194304 4194304 2 freebsd-swap (2.0G) 8388608 21643200 4 freebsd-zfs (10G) Examine the last sector of MBR primary partition 1, which is also the last sector of the drive: root@ragnar:~ # dd if=/dev/da0 skip=30031871 status=none | hexdump | tee usb-sector-30031871.hexdump 00000000 47 45 4f 4d 3a 3a 45 4c 49 00 00 00 00 00 00 00 |GEOM::ELI.......| <snip> Examine the slice/ partition tables for the SSD: root@ragnar:~ # gpart show ada1 ada1s1 => 63 117231345 ada1 MBR (56G) 63 1 - free - (512B) 64 30031808 1 freebsd [active] (14G) 30031872 87199536 - free - (42G) => 0 30031808 ada1s1 BSD (14G) 0 4194304 1 freebsd-zfs (2.0G) 4194304 4194304 2 freebsd-swap (2.0G) 8388608 21643200 4 freebsd-zfs (10G) The last sector of MBR primary partition 1 contains the same binary data as that of the USB flash drive. root@ragnar:~ # dd if=/dev/ada1 skip=30031871 count=1 status=none | hexdump | tee ssd-sector-30031871.hexdump 00000000 47 45 4f 4d 3a 3a 45 4c 49 00 00 00 00 00 00 00 |GEOM::ELI.......| <snip> Fetch a copy of the data: root@ragnar:~ # dd if=/dev/ada1 skip=30031871 count=1 of=last-block.bin 1+0 records in 1+0 records out 512 bytes transferred in 0.001179 secs (434316 bytes/sec) Write it to the last sector of the SSD: root@ragnar:~ # dd if=last-block.bin of=/dev/ada1 seek=117231407 1+0 records in 1+0 records out 512 bytes transferred in 0.012096 secs (42327 bytes/sec) Power down, remove USB flash drive, boot SSD -- GELI still broken. Ideas? David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2085762699.444207.1551209634464>