* NIS won't authenticate users @ 2002-04-11 15:58 Paul Furness 2002-04-12 3:51 ` Donald Thompson 0 siblings, 1 reply; 3+ messages in thread From: Paul Furness @ 2002-04-11 15:58 UTC (permalink / raw) To: linux-net Hello, world. Is there by any chance a NIS guru around who can make some suggestions about a problem I have? I have just built a linux workstation, and I want to join it to an existing NIS domain for user authentication. Although it appears to bind correctly to the domain, and things like ypwhich and getent produce exactly the results I want, it will not accept a user's (correct) password. If I am on the box as root, and I su - username, it works fine - so it obviously recognises the users. But if I try and log in on the console as that user, I get an "Incorrect Password" error. Interestingly, if I telnet to the box from anywhere and try logging in as a NIS user, it says "User account has expired" and closes the connection. I can log in fine a local user (this also works over telnet) I thought it might be the version of ypbind, so I tried updating that to 3.3, with no effect. I know the existing domain is fine as all the other machines on the LAN (about 50 or so) have no problems at all. I tried copying all the config files that I think are important, but that didn't help either. One possible caveat: I'm trying out the beta of RedHat 7.3, but I don't think that's the problem - all the rest of the networking seems stable enough. I always thought I knew how to set up NIS, but this one is just not working right! Anyone got any ideas? BUNgle. "If it ain't broke, hit it 'till it is, then you can fix it..." ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NIS won't authenticate users 2002-04-11 15:58 NIS won't authenticate users Paul Furness @ 2002-04-12 3:51 ` Donald Thompson 2002-04-16 12:33 ` Paul Furness 0 siblings, 1 reply; 3+ messages in thread From: Donald Thompson @ 2002-04-12 3:51 UTC (permalink / raw) To: linux-net Well, I'm not an NIS guru, but this is what I'd try... You do have the line: +::0:0::: or something similar in /etc/passwd right? The line needs to have 1 less colons than are fields in your /etc/passwd file, which should be 7 fields. This line can look different depending upon what NIS users you want to allow onto the system. If its there, I'd still double and triple check by looking through Red Hat's docs that you've got it right. Are you using md5 passwords? I've heard, but don't have first hand experience that enabling md5 passwords can cause problems with NIS. Check /etc/nsswitch.conf, passwd and group should probably be set to 'compat'. If that all fails, I'd check that its not a problem with the /bin/login thats on your system. Off hand the only thing that I know that doesn't use /bin/login is ssh (atleast not by default). So if you can get authenticated properly with ssh I'd say try replacing /bin/login. Just be careful if you do, since if you replace it with a version that for whatever reason doesn't work at all, it might become pretty difficult to get in. -Don On 11 Apr 2002, Paul Furness wrote: > Hello, world. > > Is there by any chance a NIS guru around who can make some suggestions > about a problem I have? > > I have just built a linux workstation, and I want to join it to an > existing NIS domain for user authentication. > > Although it appears to bind correctly to the domain, and things like > ypwhich and getent produce exactly the results I want, it will not > accept a user's (correct) password. If I am on the box as root, and I su > - username, it works fine - so it obviously recognises the users. But if > I try and log in on the console as that user, I get an "Incorrect > Password" error. > > Interestingly, if I telnet to the box from anywhere and try logging in > as a NIS user, it says "User account has expired" and closes the > connection. > > I can log in fine a local user (this also works over telnet) > > I thought it might be the version of ypbind, so I tried updating that to > 3.3, with no effect. > > I know the existing domain is fine as all the other machines on the LAN > (about 50 or so) have no problems at all. I tried copying all the config > files that I think are important, but that didn't help either. > > One possible caveat: I'm trying out the beta of RedHat 7.3, but I don't > think that's the problem - all the rest of the networking seems stable > enough. > > I always thought I knew how to set up NIS, but this one is just not > working right! > > Anyone got any ideas? > > BUNgle. > > "If it ain't broke, hit it 'till it is, then you can fix it..." > > - > To unsubscribe from this list: send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NIS won't authenticate users 2002-04-12 3:51 ` Donald Thompson @ 2002-04-16 12:33 ` Paul Furness 0 siblings, 0 replies; 3+ messages in thread From: Paul Furness @ 2002-04-16 12:33 UTC (permalink / raw) To: dlt; +Cc: linux-net Thanks. I did indeed check all these things, but it didn't help. In the end I gave up and rebuilt the machine with RH 7.2 (ie not a beta) and it worked more or less perfectly - the only trouble is that the servers running the NIS are still running RH6.2, so only support 8 char passwords, whereas the new setup supports longer passwords and doesn't automatically truncate when you log in. All this means that I get authenticated ok, but only if I type in the first 8 chars of my password and no more. <sigh> I'll just have to upgrade all the servers... :) I should know by now that with beta releases, anything that looks like it's probably alright probably isn't. Paul ps Sorry, I should have said thanks sooner! On Fri, 2002-04-12 at 04:51, Donald Thompson wrote: > Well, I'm not an NIS guru, but this is what I'd try... > > You do have the line: > +::0:0::: > or something similar in /etc/passwd right? The line needs to have 1 less > colons than are fields in your /etc/passwd file, which should be 7 fields. > This line can look different depending upon what NIS users you want to > allow onto the system. If its there, I'd still double and triple check > by looking through Red Hat's docs that you've got it right. > > Are you using md5 passwords? I've heard, but don't have first hand > experience that enabling md5 passwords can cause problems with NIS. > > Check /etc/nsswitch.conf, passwd and group should probably be set to > 'compat'. > > If that all fails, I'd check that its not a problem with the /bin/login > thats on your system. Off hand the only thing that I know that doesn't use > /bin/login is ssh (atleast not by default). So if you can get > authenticated properly with ssh I'd say try replacing /bin/login. Just be > careful if you do, since if you replace it with a version that for > whatever reason doesn't work at all, it might become pretty difficult to > get in. > > -Don > > On 11 Apr 2002, Paul Furness wrote: > > > Hello, world. > > > > Is there by any chance a NIS guru around who can make some suggestions > > about a problem I have? > > > > I have just built a linux workstation, and I want to join it to an > > existing NIS domain for user authentication. > > > > Although it appears to bind correctly to the domain, and things like > > ypwhich and getent produce exactly the results I want, it will not > > accept a user's (correct) password. If I am on the box as root, and I su > > - username, it works fine - so it obviously recognises the users. But if > > I try and log in on the console as that user, I get an "Incorrect > > Password" error. > > > > Interestingly, if I telnet to the box from anywhere and try logging in > > as a NIS user, it says "User account has expired" and closes the > > connection. > > > > I can log in fine a local user (this also works over telnet) > > > > I thought it might be the version of ypbind, so I tried updating that to > > 3.3, with no effect. > > > > I know the existing domain is fine as all the other machines on the LAN > > (about 50 or so) have no problems at all. I tried copying all the config > > files that I think are important, but that didn't help either. > > > > One possible caveat: I'm trying out the beta of RedHat 7.3, but I don't > > think that's the problem - all the rest of the networking seems stable > > enough. > > > > I always thought I knew how to set up NIS, but this one is just not > > working right! > > > > Anyone got any ideas? > > > > BUNgle. > > > > "If it ain't broke, hit it 'till it is, then you can fix it..." > > > > - > > To unsubscribe from this list: send the line "unsubscribe linux-net" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > > - > To unsubscribe from this list: send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-16 12:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-04-11 15:58 NIS won't authenticate users Paul Furness 2002-04-12 3:51 ` Donald Thompson 2002-04-16 12:33 ` Paul Furness
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).