On 13/08/2019 13:54, Marcio Demetrio Bacci wrote:> Hi > > Two objects are missing from my new DC. > This way I am creating the missing objects at the base of my new DC, > but the command below is not working: > > ldbadd -H /var/lib/samba/private/sam.ldb computer006.ldif > > ERR: Unwilling to perform : "replmd_add: it's not allowed to add an > object with objectGUID!" > > Is there another way to create objects in the sam.ldb base? >It looks like you took another computer object and based your ldif around that, but the objectGUID is unique and is added automatically, there are others, so it may help if you can show us the ldif you are trying to add. Rowland
Marcio Demetrio Bacci
2019-Aug-13 13:12 UTC
[Samba] Problems joining Samba 4 in the domain
Hi, Follows the record: # editing 1 records # record 1 dn: DC=computer006,DC=empresa.com.br ,CN=MicrosoftDNS,DC=DomainDnsZones,DC=empresa,DC=com,DC=br objectClass: top objectClass: dnsNode instanceType: 4 whenCreated: 20190813123348.0Z uSNCreated: 32001 showInAdvancedViewOnly: TRUE name: computer006 objectGUID: 3c108bbc-a233-449f-89e9-de33f0ca3e28 objectCategory: CN=Dns-Node,CN=Schema,CN=Configuration,DC=empresa,DC=com, DC=br dc: computer006 whenChanged: 20190813124348.0Z dnsRecord:: BAABAAXwAABuAAAAAAAEsAAAAAAAAAAArBQCFA=dNSTombstoned: FALSE uSNChanged: 32021 distinguishedName: DC=computer006,DC=empresa.com.br ,CN=MicrosoftDNS,DC=DomainDn sZones,DC=empresa,DC=com,DC=br Regards, M?rcio Bacci Em ter, 13 de ago de 2019 ?s 10:05, Rowland penny via samba < samba at lists.samba.org> escreveu:> On 13/08/2019 13:54, Marcio Demetrio Bacci wrote: > > Hi > > > > Two objects are missing from my new DC. > > This way I am creating the missing objects at the base of my new DC, > > but the command below is not working: > > > > ldbadd -H /var/lib/samba/private/sam.ldb computer006.ldif > > > > ERR: Unwilling to perform : "replmd_add: it's not allowed to add an > > object with objectGUID!" > > > > Is there another way to create objects in the sam.ldb base? > > > It looks like you took another computer object and based your ldif > around that, but the objectGUID is unique and is added automatically, > there are others, so it may help if you can show us the ldif you are > trying to add. > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 13/08/2019 14:12, Marcio Demetrio Bacci wrote:> Hi, > > Follows the record: > > # editing 1 records > # record 1 > dn: DC=computer006,DC=empresa.com.br > <http://empresa.com.br>,CN=MicrosoftDNS,DC=DomainDnsZones,DC=empresa,DC=com,DC=br > objectClass: top > objectClass: dnsNode > instanceType: 4 > whenCreated: 20190813123348.0Z > uSNCreated: 32001 > showInAdvancedViewOnly: TRUE > name: computer006 > objectGUID: 3c108bbc-a233-449f-89e9-de33f0ca3e28 > objectCategory: CN=Dns-Node,CN=Schema,CN=Configuration,DC=empresa,DC=com, > ?DC=br > dc: computer006 > whenChanged: 20190813124348.0Z > dnsRecord:: BAABAAXwAABuAAAAAAAEsAAAAAAAAAAArBQCFA=> dNSTombstoned: FALSE > uSNChanged: 32021 > distinguishedName: DC=computer006,DC=empresa.com.br > <http://empresa.com.br>,CN=MicrosoftDNS,DC=DomainDn > ?sZones,DC=empresa,DC=com,DC=br >Ah, I thought you were trying to add a computer record, you are trying to add a computers dns record, so wrong command ;-) Try this: samba-tool dns add 127.0.0.1 empresa.com.br computer006 A ipv4_address_string Run it on a DC. Rowland