dn : olcdatabase={1}mdb, cn=c o n f i g explanation of entries: – cn=config: global settings – cn=module{0},cn=config: a dynamically loaded module – cn=schema,cn=config: contains hard-coded system-level schema – cn={0}core,cn=schema,cn=config: the hard-coded core schema – cn={1}cosine,cn=schema,cn=config: the cosine schema – cn={2}nis,cn=schema,cn=config: the nis schema – cn={3}inetorgperson,cn=schema,cn=config: the inetorgperson schema – olcdatabase={-1}frontend,cn=config: frontend database, default settings for other databases – olcdatabase={0}config,cn=config: slapd configuration database (cn=config) – olcdatabase={1}mdb,cn=config: your database instance (dc=example,dc=com) • this is what the dc=example,dc=com dit looks like: $ ldapsearch−x−lll−h ldap :///−b dc=example , dc=com dn dn : dc=example , dc=com dn : cn=admin , dc=example , dc=com explanation of entries: – dc=example,dc=com: base of the dit – cn=admin,dc=example,dc=com: administrator (rootdn) for this dit (set up during package install) notice how we used two different authentication mechanisms: • -x: this is called a simple bind, and is essentially a plain text authentication. since no binddn was provided (via -d), this became an anonymous bind. without -x, the default is to use a sasl bind. • -y external: this is using a sasl bind (no -x was provided), and further specifying the exter- nal type. together with -h ldapi:///, this uses a local unix socket connection in both cases we only got the results that the server acls allowed us to see, based on who we are. a very handy tool to verify the authentication is ldapwhoami: anonymous $ ldapwhoami−x $ ldapwhoami−x−d cn=admin , dc=example , dc=com−w enter ldap password : dn : cn=admin , dc=example , dc=com when you use simple bind (-x) and specify a binddn with -d as your authentication dn, the server will look for a userpassword attribute in that entry, and use that to verify the credentials. in this particular case above, we used the database rootdn entry, i.e., the actual administrator, and that is a special case whose password is set in the configuration when the package is installed. note 189