ASCII Smiley Face Daniel Dickinson Mini Headshot
The C Shore
Daniel Dickinson's Website - Experimental

Debian LDAP Migration Tools Examples

Explanations of the entries are found in the combination of LDAPMigrationTools and LDAPFormats and are based on a setup that will use Samba and separate subtrees for the different types of services provided by the server.

Example base.ldif (base entries)

Internal vertices for a functional subtree configuration have been added to the ldif produced by migrate_base.pl

 dn: ou=net,dc=example,dc=com
 ou: net
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=auth,dc=example,dc=com
 ou: auth
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=mail,dc=example,dc=com
 ou: mail
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=syscfg,dc=example,dc=com
 ou: syscfg
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Hosts,ou=net,dc=example,dc=com
 ou: Hosts
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Rpc,ou=net,dc=example,dc=com
 ou: Rpc
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Services,ou=net,dc=example,dc=com
 ou: Services
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: nisMapName=netgroup.byuser,ou=auth,dc=example,dc=com
 nismapname: netgroup.byuser
 objectClass: top
 objectClass: nisMap
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Mounts,ou=syscfg,dc=example,dc=com
 ou: Mounts
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Networks,ou=net,dc=example,dc=com
 ou: Networks
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Users,ou=auth,dc=example,dc=com
 ou: Users
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Groups,ou=auth,dc=example,dc=com
 ou: Groups
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Netgroup,ou=auth,dc=example,dc=com
 ou: Netgroup
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Protocols,ou=net,dc=example,dc=com
 ou: Protocols
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: ou=Aliases,ou=mail,dc=example,dc=com
 ou: Aliases
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 associatedDomain: example.com
 
 dn: nisMapName=netgroup.byhost,ou=auth,dc=example,dc=com
 nismapname: netgroup.byhost
 objectClass: top
 objectClass: nisMap
 objectClass: domainRelatedObject
 associatedDomain: example.com

Example aliases.ldif

 dn: cn=mailer-daemon,ou=Aliases,ou=mail,dc=example,dc=com
 cn: mailer-daemon
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: postmaster
 
 dn: cn=postmaster,ou=Aliases,ou=mail,dc=example,dc=com
 cn: postmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=nobody,ou=Aliases,ou=mail,dc=example,dc=com
 cn: nobody
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=hostmaster,ou=Aliases,ou=mail,dc=example,dc=com
 cn: hostmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=usenet,ou=Aliases,ou=mail,dc=example,dc=com
 cn: usenet
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=news,ou=Aliases,ou=mail,dc=example,dc=com
 cn: news
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=webmaster,ou=Aliases,ou=mail,dc=example,dc=com
 cn: webmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=www,ou=Aliases,ou=mail,dc=example,dc=com
 cn: www
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=ftp,ou=Aliases,ou=mail,dc=example,dc=com
 cn: ftp
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=abuse,ou=Aliases,ou=mail,dc=example,dc=com
 cn: abuse
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=noc,ou=Aliases,ou=mail,dc=example,dc=com
 cn: noc
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=security,ou=Aliases,ou=mail,dc=example,dc=com
 cn: security
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root
 
 dn: cn=root,ou=Aliases,ou=mail,dc=example,dc=com
 cn: root
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: user1

Example fstab.ldif


Previous: LDAPMigrationTools Top: LDAP Next: NSSLDAPSetup