Advertisement
rgiapratama

slapd.conf (centOS 6)

Sep 29th, 2012
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.80 KB | None | 0 0
  1. include /etc/openldap/schema/core.schema
  2. include /etc/openldap/schema/cosine.schema
  3. include /etc/openldap/schema/inetorgperson.schema
  4. include /etc/openldap/schema/collective.schema
  5. include /etc/openldap/schema/corba.schema
  6. include /etc/openldap/schema/duaconf.schema
  7. include /etc/openldap/schema/openldap.schema
  8. include /etc/openldap/schema/dyngroup.schema
  9. include /etc/openldap/schema/java.schema
  10. include /etc/openldap/schema/misc.schema
  11. include /etc/openldap/schema/nis.schema
  12. include /etc/openldap/schema/ppolicy.schema
  13. include /usr/share/doc/sudo-1.7.2p2/schema.OpenLDAP
  14.  
  15. database bdb
  16. directory /var/lib/ldap
  17. suffix "dc=rgiapratama,dc=net"
  18. rootdn cn=root,dc=rgiapratama,dc=net
  19. rootpw {SSHA}LKuJ/b5ybvCnXvAK2FFqIeYS1/lOndfp
  20. pidfile /var/run/openldap/slapd.pid
  21. argsfile /var/run/openldap/slapd.args
  22.  
  23. # All access directives until the next ^database keyword will end up in the
  24. # /etc/openldap/slapd.d/cn\=config/olcDatabase\=\{1\}bdb.ldif file.
  25. # Give access to the bdb backend to SASL EXTERNAL users with UID 0 and GID 0.
  26. access to *  by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
  27.  
  28. # Give access to the userPassword attribute for authentication.
  29. access to attrs=userPassword by self write by * auth
  30.  
  31. # Let everyone search this suffix but don't let them read it
  32. # This sounds strange, but it's required by OpenLDAP 2.4.
  33. access to dn.base=dc=company,dc=com by * search
  34.  by * none
  35.  
  36. # Configure the monitor backend.
  37. # All the lines below this point will end up in the
  38. # /etc/openldap/slapd.d/cn\=config/olcDatabase\=\{2\}monitor.ldif file.
  39. database monitor
  40.  
  41. # Provide access to this backend for SASL EXTERNAL users with UID 0 and GID 0
  42. # and to the rootdn, but not to any other users.
  43. access to *  by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement