CentOS Linux安装OpenLDAP服务器(2)

  #用户组
  dn: cn=a1,ou=group,dc=ldap,dc=ciwong,dc=com
  objectClass: posixGroup
  objectClass: top
  cn: a1
  userPassword: {crypt}x
  gidNumber: 501

  dn: cn=a2,ou=group,dc=ldap,dc=ciwong,dc=com
  objectClass: posixGroup
  objectClass: top
  cn: a2
  userPassword: {crypt}x
  gidNumber: 502

  #用户:
  # a1, people, stone.com
  dn: uid=a1,ou=people,dc=ldap,dc=ciwong,dc=com
  uid: a1
  cn: a1
  objectClass: account
  objectClass: posixAccount
  objectClass: top
  objectClass: shadowAccount
  userPassword:: e2NyeXB0fSQ2JDNpTEw4cFpvJGdwN1RidlBOQjRkSU1ZL0d4eWZ2THNESGtBN2R
   CWkcvbWZEelRYZzhQU2FlWWNucFV6S3hSR2VBcXZnL1VRTE1Qbkt6aTR3cExDa2NJMk54M3hOZkIu
  shadowLastChange: 15922
  shadowMax: 99999
  shadowWarning: 7
  loginShell: /bin/bash
  uidNumber: 501
  gidNumber: 501
  homeDirectory: /home/a1

  # a2, people, stone.com
  dn: uid=a2,ou=people,dc=ldap,dc=ciwong,dc=com
  uid: a2
  cn: a2
  objectClass: account
  objectClass: posixAccount
  objectClass: top
  objectClass: shadowAccount
  userPassword:: e2NyeXB0fSQ2JFRYbXNvU3RiJE9BS1JpYTZVZ0NyMHFFS28wUHJ0NUVPMnpUVmV
   lTGVKZ0lZN2I2a3BWUmNIUWVFa3pOajJoQUR2dmE1US54amkua0lSY3hIWUJLdjhDUTZtejdrMGMv
  shadowLastChange: 15922
  shadowMax: 99999
  shadowWarning: 7
  loginShell: /bin/bash
  uidNumber: 502
  gidNumber: 502
  homeDirectory: /home/a2

  #具有sudo权限的用户
  # role.sudoers.ldap. stone.com
  dn: cn=role,ou=sudoers,dc=ldap,dc=stone,dc=com
  objectClass: sudoRole
  objectClass: top
  cn: role
  sudoUser: %a1
  sudoHost: ALL
  sudoRunASUSEr: root
  sudoCommand: !/bin/sh
  sudoCommand: ALL

  **********************************************************

OpenLDAP 的详细介绍请点这里
OpenLDAP 的下载地址请点这里

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/cd7047c7bc46c4b66e6af21bd64d54f4.html