Rowland Penny
2022-Oct-12 10:17 UTC
[Samba] Samba does not replicate attributes added via ldbmodify
On 12/10/2022 11:03, Ralf Spenneberg via samba wrote:> Hi Rowland, > > thanks a lot for the response. > Of course, the attribute was proxyAddresses. Sorry for the confusion.Not confusion, just confirming that you had used the correct attribute.> Does Samba ldb actually use these attributes case-sensitive? LDAP > ignores the case. Anyway, I did use the correct case.To set an attribute using ldbmodify, you have to use an ldif and that must use the correct attribute including the correct case. If you use ldbsearch to find an AD object, then that is a bit looser, you can use an all lowercase attribute.> > How long may the replication take? More than 36 hours?No, I was thinking in minutes, I have seen replication take approx 15 minutes. Have you run dbcheck on each database ? It may help if we could see a sanitised version of the ldif you added. Also, have you tried explicitly asking for the attribute, some attributes are only shown if you ask for them in this way. Rowland
Ralf Spenneberg
2022-Oct-12 10:24 UTC
[Samba] Samba does not replicate attributes added via ldbmodify
Hi Rowland, Am 12.10.22 um 12:17 schrieb Rowland Penny via samba:> > > > Have you run dbcheck on each database ?I just ran it. I had several (4) Fixed old DN string on attribute lastKnownParent on both.> > It may help if we could see a sanitised version of the ldif you added.Here is an exerpt: dn: CN=user1,CN=Users,DC=ad,DC=domain,DC=de changetype: modify replace: proxyAddresses proxyAddresses: smtp:user1 at domain.de proxyAddresses: smtp:alias at domain.de> > Also, have you tried explicitly asking for the attribute, some > attributes are only shown if you ask for them in this way.Well on the first dc it works fine using ldbsearch -H /var/lib/samba/private/sam.ldb '(proxyaddresses=*)' dn proxyaddresses On the second the set attributes are not shown. Thanks a lot for your help. Ralf