Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm having nothing but a headache getting vmware's auth daemon to recognize NIS accounts. I've tried several things, but am coming up empty.
In the VMWare documentation, it states:
Quote:
The default installation of VMware Server uses standard Linux /etc/passwd authentication, but can be configured to use LDAP, NIS, Kerberos or another distributed authentication mechanism.
However it does not say how to do this.
My understanding of PAM is just enough to break it =)
The /etc/pam.d/vmware-authd file that installed with VMWare is:
When I try to access VM's as an NIS user, I still get the "Operation not permitted" message on the GUI, and the following in the vmware-serverd.log:
Code:
Jan 20 10:29:38: app| SP: Retrieved username: mjeasly
Jan 20 10:29:38: app| Failed to get password entry for : mjeasly. Reason: Success
Jan 20 10:29:38: app| impersonate Impersonate_Undo called when refCount == 0
Jan 20 10:29:38: app| SP: Retrieved username: mjeasly
Jan 20 10:29:38: app| Failed to get password entry for : mjeasly. Reason: Success
Jan 20 10:29:38: app| impersonate Impersonate_Undo called when refCount == 0
Jan 20 10:29:39: app| SP: Rejecting command base on path: : 2
On the stock pam config for vmware_authd, I get the same in vmware-serverd.log.
"Failed to get password entry ... Reason: Success" is particularly conbfusing...
pam_unix2 is ancient. Could you please first focus on making sure all main components of what NIS needs are installed on both server and client before moving on to checking configuration on both ends?
NIS / NFS are fully installed, configured and functional. Console login, GDM login, ssh, FTP, etc all work properly with NIS accounts. To my (somewhat limited) knowledge, everything is settled except VMWare's authentication daemon.
The only reason I mentioned pam_unix2 is because that is used both in the PAM HOWTO and the default /etc/pam.d/vmware_authd. pam_unix2 is not being used in any other pam.d files.
Both systems are fully patched Fedora 8 systems from the official repositories, so I assume PAM and YP/NIS are relatively up to date.
If there is anything specific you'd like me to verify, please let me know where to look. As far as I can tell NIS seems to be working flawlessly with the exclusion of VMWare.
It's weird since you say everyhting else works.
Does /etc/pam.d/vmware-authd pam_unix support the "audit" tag? Should be more informative compared to "debug".
You've shown vmserver log, what do system logs say wrt PAM? By any chance anything wrt SELinux in any logs?
I will look at all updated logs and post relevant lines from another test login. To be sure, which /etc/pam.d/vmware_authd file should I try? The original? My hacked up two liner with pam_unix (substituting audit for debug, of course)? Something else?
Thanks again for all your help! I've gotten nary a response on the VMWare community boards...
Causes the following logs:
/var/log/vmware/vmware-serverd.log
Code:
Jan 22 10:55:03: app| New connection on socket server-vmdb from host hostname.hmon.net (ip address: 127.0.0.1) , user: foouser
Jan 22 10:55:03: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:03: app| SP: New user session for user: foouser, pos: 2
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| SP: Failed to impersonate as : foouser
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| SP: Failed to impersonate as : foouser
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| SP: Failed to impersonate as : foouser
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| SP: Failed to impersonate as : foouser
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:04: app| SP: Failed to impersonate as : foouser
Jan 22 10:55:04: app| The vm-list file has changed! Reloading the list of registered vms
Jan 22 10:55:11: app| SP: Retrieved username: foouser
Jan 22 10:55:11: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:11: app| impersonate Impersonate_Undo called when refCount == 0
Jan 22 10:55:13: app| SP: Retrieved username: foouser
Jan 22 10:55:13: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:13: app| impersonate Impersonate_Undo called when refCount == 0
Jan 22 10:55:14: app| SP: Retrieved username: foouser
Jan 22 10:55:14: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:14: app| impersonate Impersonate_Undo called when refCount == 0
Jan 22 10:55:15: app| SP: Retrieved username: foouser
Jan 22 10:55:15: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:15: app| impersonate Impersonate_Undo called when refCount == 0
Jan 22 10:55:17: app| SP: Retrieved username: foouser
Jan 22 10:55:17: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:17: app| impersonate Impersonate_Undo called when refCount == 0
Jan 22 10:55:18: app| SP: Retrieved username: foouser
Jan 22 10:55:18: app| Failed to get password entry for : foouser. Reason: Success
Jan 22 10:55:18: app| impersonate Impersonate_Undo called when refCount == 0
Jan 22 10:55:19: app| SP: Rejecting command base on path: : 2
/var/log/messages:
Code:
Jan 22 10:55:01 hostname xinetd[7835]: START: vmware-authd pid=13271 from=127.0.0.1
Jan 22 10:55:03 hostname xinetd[7835]: EXIT: vmware-authd status=0 pid=13271 duration=3(sec)
I will look at all updated logs and post relevant lines from another test login.
Reference material is always nice.
Quote:
Originally Posted by whysyn
To be sure, which /etc/pam.d/vmware_authd file should I try? The original? My hacked up two liner with pam_unix (substituting audit for debug, of course)?
I'd use your hacked up one, after all you only need one of auth and account to test with.
Quote:
Originally Posted by whysyn
Thanks again for all your help! I've gotten nary a response on the VMWare community boards...
Yeah, I saw that. And *they're* the ones that should know about everything VMware.
One other thing I'm thinking of is maybe run tcpdump or Wireshark as well during trials. See if anything does send or receive NIS packets when you try the PAM vmware_authd service.
I'm subscribed to this thread so I should see it, NP. Let's try something completely different. Could you please change your PAM stack to auth against a working local unprivileged user account instead and see if you can get auth'ed?
Sorry for the delay... I had the baby, my wife, then myself sick.
When authenticating against a local account, using the default /etc/pam.d/vmware_authd, everything works fine.
At this point we're in production on three servers and are manually keeping the user accounts matched. I'll have to get my hands on a spare box to try more troubleshooting with NIS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.