HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: access to password on trusted system
Operating System - HP-UX
1830939
Members
2777
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
08-03-2005 04:25 AM
08-03-2005 04:25 AM
access to password on trusted system
Hi,
I work on HPUX 11.00 System and the trusted system mode is enabled.
I would like to check a login/password entered with the password in the database.
here is my code:
struct passwd *pwd;
struct pr_passwd *pr_pwd;
char *c_passwd;
if ((pwd=getpwnam(user))==NULL)
return(FALSE);
else{
c_passwd=crypt((const char*)u_passwd.c_str(),pwd->pw_passwd);
if(!strcmp(c_passwd,pwd->pw_passwd))
return(TRUE);
else{
if ((pr_pwd=getprpwnam((char*)user))==NULL)
return(FALSE);
else{
c_passwd=crypt((const char*)u_passwd.c_str(),pr_pwd->ufld.fd_encrypt);
if(!strcmp(c_passwd,pr_pwd->ufld.fd_encrypt))
return(TRUE);
else
return(FALSE);
}
}
}
it returns false at first test :(pr_pwd=getprpwnam((char*)user))==NULL
even if the account exists.
Can you help me please.
Thanks a lot !
I work on HPUX 11.00 System and the trusted system mode is enabled.
I would like to check a login/password entered with the password in the database.
here is my code:
struct passwd *pwd;
struct pr_passwd *pr_pwd;
char *c_passwd;
if ((pwd=getpwnam(user))==NULL)
return(FALSE);
else{
c_passwd=crypt((const char*)u_passwd.c_str(),pwd->pw_passwd);
if(!strcmp(c_passwd,pwd->pw_passwd))
return(TRUE);
else{
if ((pr_pwd=getprpwnam((char*)user))==NULL)
return(FALSE);
else{
c_passwd=crypt((const char*)u_passwd.c_str(),pr_pwd->ufld.fd_encrypt);
if(!strcmp(c_passwd,pr_pwd->ufld.fd_encrypt))
return(TRUE);
else
return(FALSE);
}
}
}
it returns false at first test :(pr_pwd=getprpwnam((char*)user))==NULL
even if the account exists.
Can you help me please.
Thanks a lot !
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 12:46 AM
08-04-2005 12:46 AM
Re: access to password on trusted system
You dont appear to have initialized the variable "user" to any value.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 12:49 AM
08-04-2005 12:49 AM
Re: access to password on trusted system
sorry,
user is initialized as parameter.
I forgot to write it.
the code works fine if trusted system is disabled...
Thanks
user is initialized as parameter.
I forgot to write it.
the code works fine if trusted system is disabled...
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 02:08 AM
08-04-2005 02:08 AM
Re: access to password on trusted system
the problem is that it was not root which has launched the program but another user.
The other user has no access to the secured database.
The other user has no access to the secured database.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP