[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Why "ldapadd -x -D cn=admin, cn=config -W -f ~/sudoWork/cn\=sudo.ldif" does not work?
> You have no olcRootDN listed for your configuration database, which, as I
> understand it, means you have no capability to modify your config using
> ldapadd. For a solution, see:
>
> http://www.openldap.org/lists/openldap-technical/201211/msg00195.html
The above instructions seem to be dangerous as it involves direct
editing of /etc/ldap/slapd.d. Is it the best way.
Also, what is "<edit the ldif>". Does something like the following work?
https://help.ubuntu.com/13.10/serverguide/openldap-server.html
# Accesslog database definitions
dn: olcDatabase={2}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {2}hdb
olcDbDirectory: /var/lib/ldap/accesslog
olcSuffix: cn=accesslog
olcRootDN: cn=admin,dc=example,dc=com
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart
--
Regards,
Peng