Apple Xserve Up Mac OS X Server Specifications Page 260

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 259
260 Chapter 15 Configuring and Managing Open Directory
uid: ajohnson
cn: Anne Johnson
Using LDIF Files
Lightweight Directory Interchange Format (LDIF) is a file format used to represent LDAP
entries in text form. LDAP tools such as ldappadd, ldapmodify, and ldapsearch read and
write LDIF files.
Here is an example of an LDIF file containing three entries. Multiple entries in an LDIF
file are separated by blank lines.
dn: cn=Mei Chen,dc=example,dc=com
cn: Mei Chen
cn: M Chen
objectclass: person
description:< file:///tmp/babs
sn: Chen
dn: cn=Anne Johnson,dc=example,dc=com
cn: Anne Johnsone
cn: A Johnson
objectclass: person
sn: Johnson
dn: cn=Tom Clark,dc=example,dc=com
cn: Tom Clark
cn: T Clark
objectclass: person
sn: Clark
To load an LDIF file into the LDAP directory:
Replace the
appleserver.example.com
with the location of the LDAP directory and
myusers.ldif
with the name of your LDIF file:
$ ldapadd -H ldap://
appleserver.example.com
-f
myusers.ldif
Additional Information About LDAP
The LDAP server in Mac OS X Server is based on OpenLDAP. Additional information
about OpenLDAP, including an administrators guide, is available at www.openldap.org.
WARNING: LDAP tools can modify or add entries to the LDAP directory. Changing raw
data in a directory can have unexpected and undesirable consequences. You could
inadvertently incapacitate users or computers, or you could unintentionally authorize
users to access more resources.
WARNING: Apple doesn’t support the OpenLDAP administrators guide, so carefully
test procedures documented in it before using them on an Open Directory server
that’s in service.
Page view 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 328 329

Comments to this Manuals

No comments