NetInfo
Encyclopedia
NetInfo is the system configuration database
Database
A database is an organized collection of data for one or more purposes, usually in digital form. The data are typically organized to model relevant aspects of reality , in a way that supports processes requiring this information...

 in NeXTSTEP
NEXTSTEP
NeXTSTEP was the object-oriented, multitasking operating system developed by NeXT Computer to run on its range of proprietary workstation computers, such as the NeXTcube...

 and Mac OS X
Mac OS X
Mac OS X is a series of Unix-based operating systems and graphical user interfaces developed, marketed, and sold by Apple Inc. Since 2002, has been included with all new Macintosh computer systems...

 versions up through Mac OS X v10.4
Mac OS X v10.4
Mac OS X v10.4 Tiger is the fifth major release of Mac OS X, Apple's desktop and server operating system for Macintosh computers. Tiger was released to the public on 29 April 2005 for US$129.95 as the successor to Mac OS X Panther , which had been released 18 months earlier...

 "Tiger". NetInfo replaces most of the Unix
Unix
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna...

 system configuration files, though they are still present for running the machine in single user mode
Single user mode
Single user mode is a mode in which a multiuser computer operating system boots into a single superuser. It is mainly used for maintenance of multi-user environments such as network servers. Some tasks may require exclusive access to shared resources, for example running fsck on a network share...

; most Unix APIs
Application programming interface
An application programming interface is a source code based specification intended to be used as an interface by software components to communicate with each other...

 wrap around NetInfo instead. NetInfo stores system wide network-type configuration information, such as users and groups, in binary databases; while Mac OS X machine and application specific settings are stored as plist files.

History

NetInfo was introduced in NeXTSTEP version 0.9, and replaced both the Unix
Unix
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna...

 system configuration files and Sun Microsystems
Sun Microsystems
Sun Microsystems, Inc. was a company that sold :computers, computer components, :computer software, and :information technology services. Sun was founded on February 24, 1982...

' Network Information Service
Network Information Service
The Network Information Service, or NIS is a client–server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network...

 (Yellow Pages) on NeXT computers. It immediately caused controversy, much unfavorable. Not only was NetInfo unique to NeXT
NeXT
Next, Inc. was an American computer company headquartered in Redwood City, California, that developed and manufactured a series of computer workstations intended for the higher education and business markets...

 computers (although NeXT later licensed NetInfo to Xedoc, an Australian software company who produced NetInfo for other UNIX systems), DNS
Domain name system
The Domain Name System is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities...

 queries went through NetInfo. This led to a situation where basic tasks such as translating a UNIX UID to a user name string would not complete because NetInfo was stalled on a DNS lookup. At first, it was possible to disable NetInfo and use the Unix system files, but as of NeXTSTEP version 2 disabling NetInfo also disabled DNS
Domain name system
The Domain Name System is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities...

 support. Thus, NeXT computers became notorious for locking a user out of everyday tasks because a DNS server had stopped responding.

The Mac OS X version of NetInfo remedied this (and many other problems), but due to the early problems, NetInfo never took over the world of Unix system configuration.

Apple has moved away from using NetInfo towards LDAP
Lightweight Directory Access Protocol
The Lightweight Directory Access Protocol is an application protocol for accessing and maintaining distributed directory information services over an Internet Protocol network...

, particularly in Mac OS X Server
Mac OS X Server
Mac OS X Server is a Unix server operating system from Apple Inc. The server edition of Mac OS X is architecturally identical to its desktop counterpart, except that it includes work group management and administration software tools...

. http://www.apple.com/pr/library/2003/oct/08pantherserver.html. Mac OS X v10.4 is the last version to support Netinfo. Beginning with Mac OS X v10.5
Mac OS X v10.5
Mac OS X Leopard is the sixth major release of Mac OS X, Apple's desktop and server operating system for Macintosh computers. Leopard was released on 26 October 2007 as the successor of Tiger , and is available in two variants: a desktop version suitable for personal computers, and a...

, Netinfo has been completely phased out and replaced by a new local search node named dslocal, which files are located in /var/db/dslocal/ and are standard property list (XML-based) files.

Where is it?

The NetInfo Database is stored in /private/var/db/netinfo/local.nidb/, and can only be accessed by root
Superuser
On many computer operating systems, the superuser is a special user account used for system administration. Depending on the operating system, the actual name of this account might be: root, administrator or supervisor....

. It can be viewed and modified through its application programming interface
Application programming interface
An application programming interface is a source code based specification intended to be used as an interface by software components to communicate with each other...

, the NetInfo Manager
NetInfo Manager
NetInfo Manager is a Mac OS X application to manage the built-in Mac OS X UNIX directory system.It is found in /Applications/Utilities/NetInfo Manager.app in Mac OS X versions 10.0 through 10.4.11 but it has been removed in Mac OS X 10.5 "Leopard"...

utility, or command line tools such as niutil.

As Netinfo has been completely removed from Mac OS X 10.5, the Netinfo-based command line tools have also been phased out and replaced by other tools. Also, Netinfo Manager has been removed.

Data

Netinfo stores the following data:
  • afpuser_aliases
  • aliases
  • exports (nfs shares)
  • groups
  • machines
  • mounts
  • networks
  • printers
  • protocols
  • rpcs
  • services
  • users

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK