Issue 8498 - slapadd complains about missing attrs
Summary: slapadd complains about missing attrs
Status: RESOLVED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- enhancement
Target Milestone: 2.7.0
Assignee: Howard Chu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-09 21:13 UTC by Quanah Gibson-Mount
Modified: 2024-01-11 22:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2016-09-09 21:13:06 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.44+ITS8432
OS: Linux 3.13
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.52.177)


When slapadding a database rooted at "" on a replica, it outputs the following
warning:

zimbra@zre-ldap014:~$ time ./libexec/zmslapadd
/home/build/ldap.bak.20160909144406
57d32561 slapadd: warning, missing attrs entryUUID,entryCSN from entry dn=""
-########              42.58% eta 01m39s elapsed          01m13s spd 292.8 k/s


Interestingly enough, when slapadded to a master with cn=accesslog in play, it
doesn't output anything:

zimbra@zre-ldap008:~$ ./libexec/zmslapadd /home/build/ldap.bak.20160909144406
*#################### 100.00% eta   none elapsed          02m45s spd   3.1 M/s
Closing DB...

I'd generally expect the warning to be consistently shown (or not).  I don't
think it's valid in the case of "".
Comment 1 Howard Chu 2016-09-09 21:32:58 UTC
quanah@openldap.org wrote:
> Full_Name: Quanah Gibson-Mount
> Version: 2.4.44+ITS8432
> OS: Linux 3.13
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (75.111.52.177)
>
>
> When slapadding a database rooted at "" on a replica, it outputs the following
> warning:
>
> zimbra@zre-ldap014:~$ time ./libexec/zmslapadd
> /home/build/ldap.bak.20160909144406
> 57d32561 slapadd: warning, missing attrs entryUUID,entryCSN from entry dn=""
> -########              42.58% eta 01m39s elapsed          01m13s spd 292.8 k/s
>
>
> Interestingly enough, when slapadded to a master with cn=accesslog in play, it
> doesn't output anything:
>
> zimbra@zre-ldap008:~$ ./libexec/zmslapadd /home/build/ldap.bak.20160909144406
> *#################### 100.00% eta   none elapsed          02m45s spd   3.1 M/s
> Closing DB...
>
> I'd generally expect the warning to be consistently shown (or not).  I don't
> think it's valid in the case of "".

The warning is only printed in single-master replication configs.

Closing this ITS.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 2 Quanah Gibson-Mount 2016-09-09 21:36:23 UTC
--On Friday, September 09, 2016 11:32 PM +0100 Howard Chu <hyc@symas.com> 
wrote:

>> I'd generally expect the warning to be consistently shown (or not).  I
>> don't think it's valid in the case of "".
>
> The warning is only printed in single-master replication configs.

My point is the warning is invalid, and it was printed on the replica, 
nothing to do with a master...

--Quanah



--

Quanah Gibson-Mount

Comment 3 Quanah Gibson-Mount 2017-03-17 20:34:35 UTC
moved from Incoming to Software Bugs
Comment 4 Quanah Gibson-Mount 2023-11-02 16:48:40 UTC
Specific to using the null base, where these attributes won't exist.
Comment 5 Howard Chu 2023-11-02 17:20:35 UTC
Fixed in master  2939df1a1dead2a11d1878ccd246660cda2b41a6
Comment 6 Quanah Gibson-Mount 2024-01-11 22:04:41 UTC
head:

  • 2939df1a 
by Howard Chu at 2023-11-02T16:53:26+00:00 
ITS#8498 slapadd: silence warning for NULL entry