LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2008, 02:27 AM   #1
cezaronne
LQ Newbie
 
Registered: Jan 2008
Distribution: slackware
Posts: 6

Rep: Reputation: 0
how to generate DES key for using with tacacs+ in Fedora 8


Hi,



I am trying to configure Tacacs+ in Fedora 8.The question is how do I generate the DES key for the user's password:

user = test {

default service = permit

login = des xxxxxxxx

expires = "Sep 1 2009 "

Any ideeas?

Thanks
 
Old 09-26-2008, 04:46 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
There should be an option in tacas+ to do that.

If not, you could use a program to build one yourself
Quote:
#!/bin/perl

use Crypt:ES;

my $key = pack("H16", "0123456789ABCDEF");
my $cipher = new Crypt:ES $key;
my $ciphertext = $cipher->encrypt("plaintex"); # NB - 8 bytes
print unpack("H16", $ciphertext), "\n";
Have a look here.

 
Old 09-26-2008, 07:30 AM   #3
tikit
Member
 
Registered: Feb 2008
Posts: 85

Rep: Reputation: 16
Hi,

try using htpasswd utilily. It comes with apache2-utils package.
 
Old 09-29-2008, 05:44 AM   #4
cezaronne
LQ Newbie
 
Registered: Jan 2008
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks a lot.Acctually I manage to generate the des key with the generate_passwd utility after a long search .... 'generate_passwd is a program to des encrypt a password like Unix. It prompts for the password to encrypt. You can optionally supply a salt to verify a password.'
 
Old 10-25-2012, 09:06 AM   #5
cachinho
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
Solution: use tac_pwd

Provided by: tacacs+_4.0.4.19-9_i386

NAME
tac_pwd - generate DES encryption of a password

SYNOPSIS
tac_pwd [-eh] [salt]

DESCRIPTION
tac_pwd prompts for a clear-text password and produces a DES encryption
of that password on stdout which may be used in lieu of the clear-text
representation in the tac_plus.conf(5).

The DES salt may be provide as a command-line argument.

COMMAND-LINE OPTIONS
-e Do not echo the plain-text password to the terminal.

-h Display help message.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable generate server.key using openssl /dev/urandom on Redhat 4 AS nordinyasin Linux - Newbie 4 09-10-2008 03:19 AM
tacacs sever sajigeorge Linux User Groups (LUG) 1 02-11-2006 07:57 AM
How do I get Right-Alt key to be just Alt and not generate special characters? (KDE) KWTm Linux - General 2 06-25-2005 09:26 PM
Tacacs + authentication juanb Linux - Security 0 10-13-2004 05:00 AM
Tacacs and etc/shadow daskiew Linux - Networking 1 03-28-2003 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration