Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Network authentication using NIS fails

In our office we have a Linux server which we have been authenticating against using NIS for some years (certainly using 10.5 and 10.6). Since installing 10.7, we can no longer authenticate so logins fail.


When I use Directory Utility, it seems to be able to contact the NIS server and can list out the various maps that it can see there (eg, hosts, mounts, passwd). Using dscl, I can navigate to /NIS/object-craft.com.au/Users/bgg and my user details are all listed there correctly. This makes me believe that the NIS connection between my machine and the server is working correctly. Further to this, the automounts served from the server work perfectly.


The problem only seems to occur when I try logging in. There's a yellow alert next to the username on the login panel saying that only some network accounts are accessible.


When I try to login, in /var/log/opendirectoryd.log sees lines like:


2011-07-22 19:56:23.449 EST - failed to get YP map list


This appears to come from the file /System/Library/OpenDirectory/Modules/nis.bundle/Contents/MacOS/nis. That leads me to think that OpenDirectory isn't being updated correctly with the NIS server's address. I don't know what the mechanism is that makes that work. I've tried using odutil but that hasn't proved very useful.


Does anyone know how to get this working? I'm really stumped.


Thanks,


Ben.

Posted on Jul 23, 2011 4:06 AM

Reply
66 replies

Jul 25, 2011 7:06 PM in response to Ben Golding

Do you have a work-around?


Some more background on our setup:


* NIS servers are actually FreeBSD 7.1 machines. Our Linux machines are all Ubuntu (currently 11.04). After considerable struggling getting our Macs (10.5 and 10.6) to properly authenticate against Ubuntu-based NIS servers (the issue boiled down to the particulars of the passwd hash encryption), we opted to run the NISes on FreeBSD VMs which worked fine with all our clients.


Ben, what Linux distro(s) are you using?

Aug 1, 2011 8:29 PM in response to Ben Golding

I've just installed Lion and have exactly the same issue. My NIS server is running Solaris and has been working just fine for almost a year with Snow Leopard.


Once Lion had completed its installation, there was a message at the login window to the effect of Network Logins were unavailable. So I tail -f'ed /var/log/opendirectoryd.log while su'ing to my network user and it has numerous "failed to get YP map list".


Like Ben, I can successfully dump the contents of NIS tables using ypcat and ypmatch, so the bits of wet string are basically OK. What actually isn't OK is the authentication bit!


To be blunt, and I'm keeping this at PG13, this is absolutely fscking useless, and a show-stopper for me. How the h e l l this bug got past QA is beyond me. I was going to hold off from the 10.7.0 "upgrade" until 10.7.1 was released, but iCal and Address Book constantly (and I mean, constantly!) crashing forced my hand.


Thoroughly disgusted, I'm going back to Snow Leopard until Apple fixes this huge bug.

Aug 1, 2011 8:38 PM in response to RichTeer

Yes -- it is shocking and I have no idea how something this basic can fail QA. Perhaps the NIS server should run off the Lion box? But of course, there is no documentation to that effect, and for extra chuckles any configuration that used to work with Snow Leopard is not guaranteed to be applicable/work with Lion. Apple, I salute you!


I don't even know where exactly it has failed either (does Apple want me to set things up with a specific authentication/encryption algorithm?), which is the nature of the beast and the opaqueness of Apple upgrades. I haven't seen any mention of NIS changes in any Apple Release Notes. Obviously, someone, somewhere in Jobsworld changed it.


I can also confirm that I now have two personal tales of the same experience in two different research labs/groups. In my own case with authenticating to NIS servers on FreeBSD machines, and a separate case with NIS running off CentOS boxes. In all cases it worked perfectly with Snow Leopard.


In our case, it means no Lion upgrades for any other machines in our group.

Aug 15, 2011 9:14 AM in response to Ben Golding

I too have a service call open with Apple on this bug, which has been escalated to engineering. They had me run some info-gather script and email in the results, which I did. I've not heard back from them in a while; I think I'll ping them soon for an update. (The engineer I was talking with is aware of this thread.)


In the meantime, my iMac is back on Snow Leopard (re-installed from scratch, another wasted day, sigh) and happily authenticating my NIS users.

Aug 18, 2011 7:19 AM in response to mariafrom_san_jose

Umm, what does FTP have to do with NFS? (Answer: nothing).


Apple haven't dropped support for NFS in Lion, in fact the Lion white paper specifically mentions that NFS v4 is now supported. Also, NIS and NFS are two completely different beasts.


Back on track, no joy with 10.7.1 here either. I think I'll ping my support contact in the next day or so for an update.


I have to say, speaking as a UNIX programmer, I'm not very impressed with the Lion QA team's regression testing (let alone the design team's numerous violations of the principle of least surprise and removal of ZFS). Correct operation needs to come before bling, guys!

Aug 18, 2011 9:02 AM in response to Ben Golding

Hi guys!


I have the same problem after upgrading to Lion.


Ypwhich returns the name of one of my NIS servers (Linux boxes) and I can see the content of the maps using ypcat. I can't successfully log in on this computer when i su or when i ssh from another computer using a network account. The only difference with you guys is that I don't get any error messages in /var/log/opendirectory.log even after running "odutil set log default". With "odutil set log warning", I get this message:


Node: /NIS/imi, Module: nis - ODQueryCreateWithNode failed with error 'Connection failed' (2100)


I got rid of the yellow button alert in the login window after checking option "Allow network users to log in at login windows" in Users & Groups options and checking "Use NIS domain for authentication" in the NIS Configuration of the Directory Utility.


Updating to Lion 10.7.1 didn't help at all.

Aug 18, 2011 11:11 AM in response to ra014620

ra014620,


After upgrading to Lion, did you do any modifications to have NIS authentication to work? When you search on the Internet, you find that everyone that upgrade from Snow Leopard to Lion has lost NIS authentication functionality. So i'm really surprised that it works on your system.


If you have a workaround, this is the best place to post it!

Network authentication using NIS fails

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.