[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapadd question



Hi Marvin,

slapadd is to add files that had been created by slapcat (which already
include entryUUID etc.).

To add new content via self written ldif files, you should use ldapadd
instead, where the server will add entryUUID etc. without sending warnings.

For doing cn=config data you could also use the old slapd.conf and then
transform its content to cn=config style via
slaptest -f <slapd.conf-file> -F <cn=config-Directory>


Cheers,

Peter
 

Am 27.01.2014 18:09, schrieb Mundry, Marvin:
> hi,
>
> when I use slapadd to setup cn=config
> I get
>> slapadd: warning, missing attrs entryUUID,entryCSN from entry dn="olcDatabase=bdb,cn=config"
> warnings (one for each database and overlay that is configured) as soon as I add an olcSyncrepl attribute to "dn:
> olcDatabase=config,cn=config"
>
> should I be worried about these warnings?
>
>
> what I am doing:
> slapadd -S 1 -bcn=config -l slapd.ldif -F slapd.d/
>
> with slapd.ldif having the following content:
>
>
> dn: cn=config
> objectClass: olcGlobal
> cn: config
> olcArgsFile: /usr/local/openldap/var/run/slapd.args
> olcPidFile: /usr/local/openldap/var/run/slapd.pid
>
> dn: cn=module,cn=config
> objectClass: olcModuleList
> cn: module
> olcModulepath:  /usr/local/openldap/libexec/openldap
> olcModuleload:  back_bdb.la
>
> dn: cn=schema,cn=config
> objectClass: olcSchemaConfig
> cn: schema
>
> include: file:///usr/local/openldap/etc/openldap/schema/core.ldif
>
> dn: olcDatabase=frontend,cn=config
> objectClass: olcDatabaseConfig
> olcDatabase: frontend
>
> dn: olcDatabase=config,cn=config
> objectClass: olcDatabaseConfig
> olcDatabase: config
> olcRootDN: cn=admin,cn=config
> olcRootPW:: e1NTSEF9L1Q1US9ibUl0V3pYRnpOUG9iajdsbk5IVVJmS2E5Ykk=
> olcSyncrepl: rid=001 provider=ldap://someldapserver/ binddn="cn=acme" credentials=secret bindmethod=simple searchbase="cn=config"
> type=refreshAndPersist
>
> dn: olcDatabase=bdb,cn=config
> objectClass: olcDatabaseConfig
> objectClass: olcBdbConfig
> olcDatabase: bdb
> olcSuffix: dc=my-domain,dc=com
> olcRootDN: cn=Manager,dc=my-domain,dc=com
> olcRootPW: secret
> olcDbDirectory: /usr/local/openldap/var/openldap-data
>
>
>
>
>
> Best regards,
>
> Marvin


-- 

Peter Gietz, CEO

DAASI International GmbH        
Europaplatz 3                   
D-72072 Tübingen                
Germany                    

phone: +49 7071 407109-0
fax:   +49 7071 407109-9  
email: peter.gietz@daasi.de
web:   www.daasi.de

Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz