- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- use 'login' to authenticate a userid/password?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 08:57 AM
05-08-2008 08:57 AM
From a windows 'front-end' they will enter their unix userid/password, which will be passed to the unix server (actually via a process that has access to the unix server). I'd then like the user's userid/password to be validated to the passwd database.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 09:19 AM
05-08-2008 09:19 AM
Re: use 'login' to authenticate a userid/password?
If they are already logged in then they are already authenticated.
HP-UX uses PAM, pluggable authentication module to handle these tasks, before the user is granted access.
If you want a windows front end, then integrate the system with ADS from windows and let windows provide the GUI
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 09:27 AM
05-08-2008 09:27 AM
Re: use 'login' to authenticate a userid/password?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 10:05 AM
05-08-2008 10:05 AM
SolutionYou can perform password validation with a simple Perl script:
# cat ./checkpw
#!/usr/bin/perl
#@(#)checkpw $ Verify Unix password - JRF $
use strict;
use warnings;
die "Usage: user passwd\n" unless @ARFV == 2;
my ($extnm, $extpw, $intnm, $intpw );
$extnm = shift;
$extpw = shift;
( $intnm, $intpw ) = getpwnam($extnm);
die "$extnm isn't a valid user\n" unless $intnm;
if ( crypt( $extpw, $intpw ) eq $intpw ) {
print "ok\n";
exit(0);
}
print "bad_pw\n";
exit (1);
1;
...run and pass two arguments, the user and his/her password.
# ./checkpw jrf jrfspw
ok
# ./checkpw robert something
bad_pw
Note, too that a succesfully validated password causes the script to return an exit status of zero (0). A failure in validation returns an exit status of one (1).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 10:19 AM
05-08-2008 10:19 AM
Re: use 'login' to authenticate a userid/password?
/sysprog/checkpw rcarback mypasswd
Global symbol "@ARFV" requires explicit package name at /sysprog/checkpw line 5.
Execution of /sysprog/checkpw aborted due to compilation errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 10:48 AM
05-08-2008 10:48 AM
Re: use 'login' to authenticate a userid/password?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 11:02 AM
05-08-2008 11:02 AM
Re: use 'login' to authenticate a userid/password?
Yes, my friend Patrick is correct. '@ARFV' should be '@ARGV' indeed!
Regards!
...JRF...