Dealing with Mac OS X and NetInfo Problems? 89
newkid would like some assistance getting to the core of this issue: "Apple likes to refer to its server software as an industrial-strength server based on Apple's modern OS. However, there are serious flaws in the authentication system (netinfo): I am locked out of four of my remote servers (even root has been disabled, and that is unacceptable), and the instability is well documented here, here and here. I have successfully reinstalled one server and replaced another one with FreeBSD, but I have not decided what to do in the long run. What is your experience? Should I completely forget OS X for my servers and switch to something else? Or should I move to Panther (it uses LDAP instead of NetInfo to control user accounts)? I would like to know about your experience with OS X Server and if your have made the switch to something else." What experiences have you had with NetInfo on your Mac OS X boxes, and do you have any other hints and tips on recovering the NetInfo database in the event that it does develops amnesia?
Root access disabled by default is a flaw? (Score:5, Insightful)
Furthermore (Score:1)
Nonsense! (Score:1, Funny)
login: root
password: password
Why this is good:
1) You never have to ask someone what is the root password...
This avoids having to explain what you did to the server in the first place that requires a root account to fix.
2) Hackers will never guess it...
Come on, everyone knows the password as a password as a joke, no one is seriously going to think its going to be an actually root password somewhere.
Re:Root access disabled by default is a flaw? (Score:1)
Re:Root access disabled by default is a flaw? (Score:2)
don't use netinfo (Score:4, Insightful)
Seriously, netinfo is OBSOLETE the only reason apple held on to it so long is because they were working on bigger, more user-visible things.
Go with LDAP. Ditch Netinfo.
and log in as root when you're at the machine, NOT remotely.
Re:don't use netinfo (Score:1)
Re:don't use netinfo (Score:2)
LDAP by design does not serve the same criteria that NetInfo serves.
The error is in Network Design, not NetInfo.
Netinfo has been maturing over 14 years. One of the consistent flaws people labeled on NetInfo was they wanted NetInfo to provide functionality that it did not provide; hence it's an issue with design and one needs to determine what they are attempting to do is best served by Netinfo or by another Networking Service.
Most issues regardless of it being LDAP or Netinfo or ta
Re:don't use netinfo (Score:1)
% sudo cat
##
# slapd.conf file for NetInfo bridge
##
include
include
Q: Should my OS be up to date? (Score:5, Funny)
One of the best features about the Netinfo system (Score:3, Insightful)
Re:One of the best features about the Netinfo syst (Score:2, Informative)
RTFP?
flame on. (Score:5, Informative)
"DirectoryService: NetInfo connection failed for server 127.0.0.1/local."
"The solution was to restore the Netinfo database."
NO. the solution is to turn off "Net Info" in the Directory Access program located within
If you are trying to athunticate to a non-existing netinfo daemon in your domain, your going to get problems.
Turning off that option relieves the problems hinted at in this link. Please sirs, try this instead of blowing away your net info database, When I first got my powerbook 12" I had this same problem. I realized later on that I clicked "Net Info" in the Directory Access program, and it was trying to auth to a non-existant server.
Re:flame on. (Score:2)
by default os x stores it's machine specific information in a netinfo database. this is the way that NeXTSTEP did it.
But you can set the mode your OS X machine uses for it's information stores. Directory Access tells the machine where to look for the information, ie in BSD Flatfiles or other locations.
What's happening here is that his NetInfo database is getting hosed (since your os x machine runs this by default. hence the 127.0.0.1/local address for it)
Re:flame on. (Score:5, Informative)
I use LDAP authentication through OpenLDAP on a Linux box with local Netinfo as a fall back for a local admin account. It's been pretty flakey with previous versions of OSX, mainly authentication failures first thing in the morning on machines that have been left asleep at the login prompt over night. Directory Access used to have a lot of trouble working out what to do with itself when the machine woke up. Authentication failed but the Linux server logs tended to suggest that the LDAP requests weren't being made. Anyway, it all seems to work reliably as of 10.3
Re:flame on. (Score:2)
rock on.
Re:OMG A TROLL POST (Score:1)
Re:Easy fix. (Score:2)
Next time you're trolling, at leas
Re:Easy fix. (Score:1)
2a. Profit!
is this a troll? (Score:4, Insightful)
Several questions:
What are those remote servers? Why does one need to have access to four servers? Are they X serve or just regular Macs that share files? If the former was the case, they should be running OS X Server, which I am not very familiar, but I doubt that four of them got Netinfo database corrupted.
Regardless of X-Serve or regular Mac, it does not seem very likely that one can install FreeBSD on them. Is there a FreeBSD distribution for PowerMacs? The last time I checked, OpenBSD was available, but not FreeBSD.
Also, if the problem was Netinfo, why he didn't just restore the corrupted Netinfo database, as described in the linked documents?
Why is root being disabled a problem? If one has a physical access to the machines, (s)he can always cmd+s to boot into the single user mode. sudo sh should work, too.
Overall, the post does not make much sense, does it? At least I'm a bit confused.
Re:Well, you would be confused. . . (Score:2)
Re:Well, you would be confused. . . (Score:2)
Re:is this a troll? (Score:2, Informative)
Re:is this a troll? (Score:3, Insightful)
Re:is this a troll? (Score:1)
Re:is this a troll? (Score:2)
No, contrary to popular opinion, it's not easy to confuse the two. I'm sure he meant he replaced the machine with a PC running FreeBSD.
Re:is this a troll? (Score:1)
Re:is this a troll? (Score:1)
Re:is this a troll? (Score:2)
As for remote root login, you can't ssh in as root, but it's not a problem, as you can easily ssh in as an admin and then run "sudo -s -H" to authenticate as root. I do that all the time.
Go with Panther and LDAP... (Score:4, Funny)
Boot from CD to change root access (Score:5, Insightful)
You can also re-install with the option of creating a new NetInfo database, or follow the instructions indicated in the linked articles you cite for similar results.
The fact that you have options already cited makes me think this article sounds more like a troll than anything else. If this were Windows and the Registry was gone, you'd be FUBAR as well. If your
Also, there is a manner (I forget what it is now) to get Jaguar (and I assume Panther) to read the
Poor backups is not a reason for you to examine if this is a OS up to par. If there were no way to backup the NetInfo database, then you'd have a great case for this argument. There is, and you should be restoring from that database if you need it for server info.
Re:Boot from CD to change root access (Score:3, Informative)
Re:Boot from CD to change root access (Score:1)
Requires: Access to NetInfo network admin account and a NetInfo server broadcasting on DHCP.
Macs ship with Directory Access set up to automatically look for NetInfo DHCP server and also have their root account disabled with no password. You can log in directly to such computers with the network admin account , enable root and set the password without using a boot disk.
Lesson: Alway set a password for your root account, even if you never plan on using it. Turn off NetInfo in Dire
Re:Boot from CD to change root access (Score:1)
Re:Boot from CD to change root access (Score:2)
Nonsense.. you can boot into single user mode, which doesn't require
You can delete everything except for stuff in
Re:Boot from CD to change root access (Score:1)
Re:Restore CD (Score:1)
Maybe Apple knows? (Score:4, Insightful)
Slashdot probably isn't really the best forum for questions about OS X Server. It's not something people really need to buy for home use. Few businesses I know of run OS X servers. And most importantly, it is quite definitely not GNU/Linux.
Also, are you sure having remote root access is a bug and not a feature? It's a huge huge security risk, esp. for a business setting.
Re:Maybe Apple knows? (Score:3, Informative)
If only you could mod articles -1 Flamebait (Score:4, Interesting)
And now newkid claims he's having the same problem on 4 servers at once (of which I'm somewhat dubious), and writes this flamebait article, implying that Apple's OS is horribly flawed.
He then goes on to ask for the info he could have just read out of those 3 pages he linked to as documentation of his "serious flaws"; these problems are very rare, and fairly easily repaired by someone moderately cluefull.
Re:If only you could mod articles -1 Flamebait (Score:3, Funny)
...and claims to have subsequently installed FreeBSD on one of those Macs!
Re:If only you could mod articles -1 Flamebait (Score:1)
Re:If only you could mod articles -1 Flamebait (Score:2)
Those are just the servers at his freelance gig, where he's busy trying to copy a 17M file....
Dear Cliff, (Score:5, Informative)
Thanks.
Re:Dear Cliff, (Score:1, Flamebait)
Re:Dear Cliff, (Score:4, Funny)
Re:Dear Cliff, (Score:3, Informative)
Re:Dear Cliff, (Score:1)
FUD, its all FUD you hear (Score:1, Funny)
Good resource (Score:5, Informative)
http://www.afp548.com
and specifically to your question:
http://www.afp548.com/Articles/system/
Panther DOES use NetInfo (Score:1)
I have yet to see this challenged, but my version of Panther uses NetInfo for user accounts, as it should.
NetInfo is great! I don't understand all the belly-acheing.
Re:Panther DOES use NetInfo (Score:3, Informative)
Network accessible accounts are handled with LDAP.
Hmmm (Score:1)
Instructions to switch to LDAP (Score:2)
Or here.... (Score:1)
Check your permissions (Score:2)
NetInfo ? (Score:1)
raise your hand ... (Score:2)
*raises hand*.
All articles newkid pointed out mentioned this "issue" as trivial and/or easily fixable, don't seem to be directly related, all appear to have been found by doing a google search for netinfo, and do not make his little issue a "well documented fact". I can also google for just about any type of computing issue and dig out hundreds of articles on any particular subject.
There are, furthermore, many ways one can corrupt a hard driv
Yah yah, we've heard it before (Score:2, Funny)
Mixed experiences w/Netinfo (Score:1)
On the other hand, twice during configuration we managed to corrupt the root Netinfo database on the head node. Once we were able to recover from a backup; the other time we corrupted
Re:Mixed experiences w/Netinfo (Score:3, Informative)
Are you really using NetInfo correctly? (Score:5, Informative)
Any Mac OS X or X Server machine has a local NetInfo database, stored in
Clients can connect via the native NetInfo protocol which is based on the SunRPC portmapper, or via LDAP. In either case the data are taken from the network.nidb data store.
The fact that you were "locked out" of four of your servers is very unusual. To properly diagnose this, more information is required. Which one (if any) of these four servers was a directory service server for the group. Was that one acting as an Open Directory password server? What measures did you undertake to re-gain access once the problem was detected?
By the way, Panther still uses NetInfo as a local directory services store. Passwords are no longer stored as crypt hashes -- they are instead stored as shadowed MD5 hashes in a separate location.
--Paul
Technical Training and Certification
Apple Computer
psuh at apple dot com
Security hole: remote netinfo in OS X 10.2 server (Score:3, Informative)
To demonstrate: on any of your clients, type "niutil -readprop -t server_ip/network /users/username/passwd"
Substitute "username" with any username or read all the usernames. Hell, I'll script it for you:
The hashes are encrypted using the standard Unix crypt(3). You can then massage them into some format that Crack can read and let it go. Remember, any user with access to your network can do this.
I really thought it was quite irresponsible of Apple to release this software and recommend this configuration to users. It took them a good long time to fix it.
Panther (client) finally fixed this. You'll note that passwords are no longer stored in netinfo, but netinfo rather references a "guid" which in turn references a file that stores the password, readable only by root. This means that standalone Macs no longer give all users access to all password hashes. I understand netinfo will finally be fully deprecated in 10.3 server.
You also asked if anyone has had other problems with MacOS X Server: I would strongly recommend against their mail server software. It does finally store messages as discrete files on the filesystem, so some munging can be fixed, but message flags are still stored in some opaque binary format that tends to get corrupted. In fact, whenever 10.2 server goes down ungracefully, all flags on messages are corrupted on our mail server, and thousands of deleted (and purged) messages re-appear in all the inboxes. The particular machine is on a UPS, so this doesn't happen very often, but it happens whenever the machine is purposefully rebooted without first explicitly stopping the mail server.
The good thing about 10.2 server is that it stores the passwords using standard DES crypt(), which makes migrating from it very easy. A shell script like the one above can produce a password file readable by most any *nix flavor. 10.3 uses some bizaare format that I can't readily identify. Since a lot of the most important bits of MacOS are closed-source, you may have a very difficult time migrating away from 10.3 server if it uses something akin to the 10.3 client hashes (options are making all users create new passwords or spending lots of time reverse-engineering the hash and writing an equivalent pam module for another OS (I'm assumming this new hashing stuff is not in Darwin, as most things in MacOS where I needed the code were not in Darwin - but I haven't checked for this)).
Anyway, your best bet is to drop netinfo and start using LDAP. MacOS X (client and server) uses OpenLDAP, which doesn't have these security issues, is easy to migrate onto other OSes, and is open source (with no modifications that I can identify), so you at least have the ability to fix your own problems if you're not scared of some coding. For example, the OpenLDAP version that ships with MacOS X 10.2 has a bug in that TLS_CACERTDIR directive does not work. I was able to identify and work around this since I had access to the code.
NetInfo stability Issues (Score:1)
It's all about the #s (Score:1)
As for LDAP, i think it is probably more used and thus there is more literature on it's setup and use. I think it is probably ahead of Netinfo for the majority of users and will likely stay there in the near future.
I do see some excellent potential in Netinfo, as i am one of those freaks who tweaks netinfo to get it to do things it was never intended for.
For Serious Network Design using OS X (Score:2)
I asked the folks when I had to support Openstep/NeXTStep why we never published for sale a library on these, besides NeXTAnswers which myself and others maintained and well it was more of a resource constraint than lack of demand.
If the demand for a professional publication volume set is there Professional Services will publish the works, but the deman