| 30 |  | {{{ | 
          
            | 31 |  | slappasswd | 
          
            | 32 |  | }}} | 
          
            | 33 |  | the hash value goes in the slapd.conf file for your password. | 
          
            | 34 |  | Configure the ldap service by editing /etc/ldap/slapd.conf | 
          
            |  | 30 | Modify the /etc/default/slapd file and edit the  SLAPD_CONF value to | 
          
            |  | 31 | {{{ | 
          
            |  | 32 | SLAPD_CONF="/etc/ldap/slapd.conf" | 
          
            |  | 33 | }}} | 
          
            |  | 34 | This is our slapd.conf file, please change it according to your organization | 
          
            |  | 35 | {{{ | 
          
            |  | 36 | allow bind_v2 | 
          
            |  | 37 | include /etc/ldap/schema/core.schema | 
          
            |  | 38 | include /etc/ldap/schema/cosine.schema | 
          
            |  | 39 | include /etc/ldap/schema/nis.schema | 
          
            |  | 40 | include /etc/ldap/schema/inetorgperson.schema | 
          
            |  | 41 | include /etc/ldap/schema/ldapns.schema | 
          
            |  | 42 | loglevel 256 | 
          
            |  | 43 | modulepath      /usr/lib/ldap | 
          
            |  | 44 | moduleload      back_bdb | 
          
            |  | 45 |  | 
          
            |  | 46 | backend bdb | 
          
            |  | 47 | database bdb | 
          
            |  | 48 | index objectclass,entryCSN,entryUUID eq | 
          
            |  | 49 | suffix "dc=orbit,dc=lab,dc=org" | 
          
            |  | 50 | rootdn "dc=orbit,dc=lab,dc=org" | 
          
            |  | 51 | directory "/var/lib/ldap" | 
          
            |  | 52 | access to dn.base="" by * read | 
          
            |  | 53 | access to * by dn.regex="cn=admin,dc=orbit,dc=lab,dc=org" write by * read | 
          
            |  | 54 |  | 
          
            |  | 55 | }}} |