Date: Mon, 4 Mar 2002 10:36:33 +1100 (EST) From: Andrew <andrew@ugh.net.au> To: freebsd-security@freebsd.org Subject: DES differences between Solaris and FreeBSD Message-ID: <20020304102730.L1953-100000@starbug.ugh.net.au>
next in thread | raw e-mail | index | archive | help
Hi, I am trying to sync passwords between Solaris and FreeBSD 4.5. For most users it works fine but certain users get authentication failures under FreeBSD. The encrypted passwords are the same on both OSs but crypt returns different results. Is this a bug? Is Solaris using something other than straight DES (I'm not a Solaris person so I'm not sure where to look for that)? The code I used to test is appended below. I've tried from C as well just to make sure it wasn't a perl bug (not to mention the users can't check their mail via POP etc). Thanks, Andrew -- #!/usr/bin/perl ($login, $spass, $uid) = getpwnam($ARGV[0]); print('Password: '); $upass = <STDIN>; chomp($upass); print('System: ', $spass, "\n"); print('User: ', crypt($upass, $spass), "\n"); if (crypt($upass, $spass) eq $spass) { print("yes\n"); } else { print("no\n"); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020304102730.L1953-100000>