Posted by David Tue 27th Feb 2007 23:41 - Syntax is Bash - 33 views
Download | New Post | Modify | Hide line numbers
  1. # Defining schemas and schema file locations
  2. ################################################################
  3. include         /usr/local/etc/openldap/schema/core.schema
  4. include         /usr/local/etc/openldap/schema/cosine.schema
  5. include         /usr/local/etc/openldap/schema/inetorgperson.schema
  6. include         /usr/local/etc/openldap/schema/nis.schema
  7. include         /usr/local/etc/openldap/schema/samba.schema
  8.  
  9. pidfile         /var/run/slapd.pid
  10. argsfile        /var/run/slapd.args
  11.  
  12. # Defining our database and admin user + password
  13. ################################################################
  14. database        bdb
  15. suffix          "dc=cs,dc=dit,dc=ie"
  16. rootdn          "cn=Manager,dc=cs,dc=dit,dc=ie"
  17. rootpw         
  18. directory       /var/lib/cs
  19.  
  20. # Indexing for faster queries ( bad indexes can slow things up )
  21. #################################################################
  22. index   objectClass     eq
  23. index cn                      pres,sub,eq
  24. index sn                      pres,sub,eq
  25. index uid                     pres,sub,eq
  26. index displayName             pres,sub,eq
  27. index uidNumber               eq
  28. index gidNumber               eq
  29. index memberUid               eq
  30. index   sambaSID              eq
  31. index   sambaPrimaryGroupSID  eq
  32. index   sambaDomainName       eq
  33. index   default               sub
  34.  
  35. # Defining Access Control Lists for access to various parts of our
  36. # database. We can live without ACL's aswell, but some security should
  37. # be in place.
  38. #
  39. #
  40. ######################################################################
  41. access to attrs=userpassword,sambaLMPassword,sambaNTPassword
  42.    by anonymous auth
  43.    by self write
  44.    by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
  45.    by * none
  46.  
  47. access to attrs=shadowLastChange
  48.     by anonymous read
  49.     by self write
  50.  
  51. access to *
  52.     by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
  53.     by users read
  54.     by dn="uid=root,ou=Users,dc=cs,dc=dit,dc=ie" write
  55.     by * read
  56.     by self write
  57. -bash-3.00# cat slapd.conf
  58. # Defining schemas and schema file locations
  59. ################################################################
  60. include         /usr/local/etc/openldap/schema/core.schema
  61. include         /usr/local/etc/openldap/schema/cosine.schema
  62. include         /usr/local/etc/openldap/schema/inetorgperson.schema
  63. include         /usr/local/etc/openldap/schema/nis.schema
  64. include         /usr/local/etc/openldap/schema/samba.schema
  65.  
  66. pidfile         /var/run/slapd.pid
  67. argsfile        /var/run/slapd.args
  68.  
  69. # Defining our database and admin user + password
  70. ################################################################
  71. database        bdb
  72. suffix          "dc=cs,dc=dit,dc=ie"
  73. rootdn          "cn=Manager,dc=cs,dc=dit,dc=ie"
  74. rootpw          athlon64
  75. directory       /var/lib/cs
  76.  
  77. # Indexing for faster queries ( bad indexes can slow things up )
  78. #################################################################
  79. index   objectClass     eq
  80. index cn                      pres,sub,eq
  81. index sn                      pres,sub,eq
  82. index uid                     pres,sub,eq
  83. index displayName             pres,sub,eq
  84. index uidNumber               eq
  85. index gidNumber               eq
  86. index memberUid               eq
  87. index   sambaSID              eq
  88. index   sambaPrimaryGroupSID  eq
  89. index   sambaDomainName       eq
  90. index   default               sub
  91.  
  92. # Defining Access Control Lists for access to various parts of our
  93. # database. We can live without ACL's aswell, but some security should
  94. # be in place.
  95. #
  96. #
  97. ######################################################################
  98. access to attrs=userpassword,sambaLMPassword,sambaNTPassword
  99.    by anonymous auth
  100.    by self write
  101.    by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
  102.    by * none
  103.  
  104. access to attrs=shadowLastChange
  105.     by anonymous read
  106.     by self write
  107.  
  108. access to *
  109.     by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
  110.     by users read
  111.     by dn="uid=root,ou=Users,dc=cs,dc=dit,dc=ie" write
  112.     by * read
  113.     by self write
  114.  

PermaLink to this entry https://pastebin.co.uk/11096
Posted by David Tue 27th Feb 2007 23:41 - Syntax is Bash - 33 views
Download | New Post | Modify | Hide line numbers

 

Comments: 0