Пример Базы Данных LDAP

В данной статье приведен пример базы данных LDAP.

version: 1
# entry-id: 1
dn: dc=lystor,dc=org,dc=ua
dc: lystor
objectClass: top
objectClass: domain

# entry-id: 2
dn: ou=People,dc=lystor, dc=org, dc=ua
ou: People
objectClass: top
objectClass: organizationalunit
aci: (targetattr = "mailAlternateAddress || mail || objectClass || mailMessage
 Store") (target = "ldap:///ou=People,dc=lystor, dc=org, dc=ua") (version 3.0
 ;acl "postfix RCS";allow (read,compare,search)(userdn = "ldap:///uid=postfix
 ,ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua");)
aci: (targetattr = "*") (target = "ldap:///ou=People,dc=lystor, dc=org, dc=ua"
 ) (version 3.0;acl "nss_ldap_root RCS";allow (read,compare,search)(userdn =
 "ldap:///uid=nss_ldap_root, ou=nss_ldap,ou=Service,dc=lystor, dc=org, dc=ua"
 );)
aci: (targetattr != "userPassword") (target = "ldap:///ou=People,dc=lystor, dc
 =org, dc=ua") (version 3.0;acl "nss_ldap_nonroot RCS";allow (read,compare,se
 arch)(userdn = "ldap:///uid=nss_ldap_nonroot, ou=nss_ldap,ou=Service,dc=lyst
 or, dc=org, dc=ua");)
aci: (targetattr = "*") (target = "ldap:///ou=People,dc=lystor, dc=org, dc=ua"
 ) (version 3.0;acl "dovecot RCS";allow (read,compare,search)(userdn = "ldap:
 ///uid=dovecot,ou=dovecot,ou=Service,dc=lystor, dc=org, dc=ua");)

# entry-id: 3
dn: ou=Group,dc=lystor, dc=org, dc=ua
ou: Group
objectClass: top
objectClass: organizationalunit
aci: (targetattr = "*") (target = "ldap:///ou=Group,dc=lystor, dc=org, dc=ua")
  (version 3.0;acl "nss_ldap_root RCS";allow (read,compare,search)(userdn = "
 ldap:///uid=nss_ldap_root, ou=nss_ldap,ou=Service,dc=lystor, dc=org, dc=ua")

aci: (targetattr != "userPassword") (target = "ldap:///ou=Group,dc=lystor, dc=
 org, dc=ua") (version 3.0;acl "nss_ldap_nonroot RCS";allow (read,compare,sea
 rch)(userdn = "ldap:///uid=nss_ldap_nonroot, ou=nss_ldap,ou=Service,dc=lysto
 r, dc=org, dc=ua");)

# entry-id: 4
dn: uid=user1,ou=People,dc=lystor, dc=org, dc=ua
givenName: user1 firstname
sn: user1 lastname
loginShell: /bin/bash
gidNumber: 1000
uidNumber: 1000
mail: user1@lystor.org.ua
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
objectClass: mailrecipient
uid: user1
cn: user1 commonname
homeDirectory: /home/user1
userPassword: {SSHA}E6xKt7sdc0q6wEMTPw4awceg8szl1n0R8qbBxx==
passwordGraceUserTime: 0
mailMessageStore: lystor.org.ua/user1/Maildir/

# entry-id: 6
dn: cn=group1,ou=Group,dc=lystor, dc=org, dc=ua
objectClass: top
objectClass: groupofuniquenames
objectClass: posixgroup
cn: group1
gidNumber: 2000
memberUid: lystor
memberUid: user1

# entry-id: 7
dn: cn=user1,ou=Group,dc=lystor, dc=org, dc=ua
gidNumber: 1000
objectClass: top
objectClass: groupofuniquenames
objectClass: posixgroup
cn: user1

# entry-id: 11
dn: ou=Service,dc=lystor, dc=org, dc=ua
ou: Service
objectClass: top
objectClass: organizationalunit

# entry-id: 12
dn: ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua
ou: postfix
objectClass: top
objectClass: organizationalunit
aci: (targetattr = "*") (target = "ldap:///ou=postfix,ou=Service,dc=lystor, dc
 =org, dc=ua") (version 3.0;acl "postfix RCS";allow (read,compare,search)(use
 rdn = "ldap:///uid=postfix,ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua");
 )

# entry-id: 13
dn: ou=virtual_alias_maps,ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua
ou: virtual_alias_maps
objectClass: top
objectClass: organizationalunit

# entry-id: 14
dn: ou=virtual_mailbox_domains,ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua
ou: virtual_mailbox_domains
objectClass: top
objectClass: organizationalunit

# entry-id: 16
dn: ou=transport_maps,ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua
ou: transport_maps
objectClass: top
objectClass: organizationalunit

# entry-id: 17
dn: mailalternateaddress=u1@lystor.org.ua,ou=virtual_alias_maps,ou=postfix,ou=
 Service,dc=lystor,dc=org,dc=ua
mail: lystor@lystor.org.ua
mailAlternateAddress: u1@lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 18
dn: mailalternateaddress=u2@lystor.org.ua,ou=virtual_alias_maps,ou=postfix,ou=
 Service,dc=lystor,dc=org,dc=ua
mail: lystor@lystor.org.ua
mailAlternateAddress: u2@lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 19
dn: mailalternateaddress=mailer-daemon@server1.lystor.org.ua,ou=virtual_alias_
 maps,ou=postfix,ou=Service,dc=lystor,dc=org,dc=ua
mail: root@server1.lystor.org.ua
mailAlternateAddress: mailer-daemon@server1.lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 20
dn: mailalternateaddress=postmaster@server1.lystor.org.ua,ou=virtual_alias_map
 s,ou=postfix,ou=Service,dc=lystor,dc=org,dc=ua
mail: root@server1.lystor.org.ua
mailAlternateAddress: postmaster@server1.lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 21
dn: mailalternateaddress=root@server1.lystor.org.ua,ou=virtual_alias_maps,ou=p
 ostfix,ou=Service,dc=lystor,dc=org,dc=ua
mail: lystor@lystor.org.ua
mailAlternateAddress: root@server1.lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 22
dn: cn=lystor,ou=Group,dc=lystor, dc=org, dc=ua
gidNumber: 520
objectClass: top
objectClass: groupofuniquenames
objectClass: posixgroup
cn: lystor

# entry-id: 23
dn: uid=lystor,ou=People,dc=lystor, dc=org, dc=ua
givenName: Nikolay
sn: Ulyanitsky
loginShell: /bin/bash
gidNumber: 520
uidNumber: 520
mail: lystor@lystor.org.ua
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
objectClass: mailrecipient
uid: lystor
cn: Nikolay Ulyanitsky
homeDirectory: /home/lystor
userPassword: {SSHA}asMZycyk2nhj8jjetdMsqsCO0rYoQj0gFLNA6g==
mailMessageStore: lystor.org.ua/lystor/Maildir/
passwordGraceUserTime: 0

# entry-id: 25
dn: mailhost=lystor.org.ua,ou=virtual_mailbox_domains,ou=postfix,ou=Service,dc
 =lystor,dc=org,dc=ua
mailHost: lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 26
dn: mail=builder.home.lystor.org.ua,ou=transport_maps,ou=postfix,ou=Service,dc
 =lystor,dc=org,dc=ua
mail: builder.home.lystor.org.ua
mailForwardingAddress: smtp:lystor.home.lystor.org.ua
objectClass: top
objectClass: mailrecipient

# entry-id: 27
dn: ou=nss_ldap,ou=Service,dc=lystor, dc=org, dc=ua
ou: nss_ldap
objectClass: top
objectClass: organizationalunit

# entry-id: 28
dn: uid=nss_ldap_nonroot, ou=nss_ldap,ou=Service,dc=lystor, dc=org, dc=ua
uid: nss_ldap_nonroot
givenName: nss_ldap_nonroot
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: nss_ldap_nonroot
cn: nss_ldap_nonroot
userPassword: {SSHA}OurmRt9WDsjxbKjAMXp4rBcYwt5/WxNmZNahSw==
passwordGraceUserTime: 0

# entry-id: 29
dn: uid=nss_ldap_root, ou=nss_ldap,ou=Service,dc=lystor, dc=org, dc=ua
uid: nss_ldap_root
givenName: nss_ldap_root
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: nss_ldap_root
cn: nss_ldap_root
userPassword: {SSHA}ZopJMvWbMznU6bZ2C+bN0TIyO9U15cdV4MuotQ==
passwordGraceUserTime: 0

# entry-id: 30
dn: uid=postfix,ou=postfix,ou=Service,dc=lystor, dc=org, dc=ua
uid: postfix
givenName: postfix
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: postfix
cn: postfix
userPassword: {SSHA}daQqHt3P7p4NVo7QYeuX9KdEET2zrm4MbV+1KQ==

# entry-id: 31
dn: ou=dovecot,ou=Service,dc=lystor, dc=org, dc=ua
ou: dovecot
objectClass: top
objectClass: organizationalunit

# entry-id: 32
dn: uid=dovecot,ou=dovecot,ou=Service,dc=lystor, dc=org, dc=ua
uid: dovecot
givenName: dovecot
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: dovecot
cn: dovecot
userPassword: {SSHA}FDYJRM6B6gqklykSRuitpDk5nyEgCZAzlqinzg==

Статьи по Теме

Ссылки

Категории
Поиск