Hi Rowland, thank you for your fast answer. More see below. On 10.09.2018 19:18, Rowland Penny via samba wrote:> [..] ERR: Object class violation : "objectclass_attrs: attribute >> 'macAddress' on entry 'CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan' >> does not exist in the specified objectclasses!" on DN >> CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan at block before line 13 >> Add failed after processing 0 records >> > The possible answer is in the error message. The attribute is actually > 'macAddress' and its objectclass is 'ieee802Device', so if you add the > objectclass and fix the syntax it may work.Hmm. Looking with google tells me, that ieee803Device ist part of nis.schema, which is already implemented on my ad with --rfc2307 via provisioning. But changing macaddress to ieee803Device: aa:bb:cc:dd:ee:ff results in:>>> ldbadd -H /var/lib/samba/private/sam.ldb < win.ldifERR: No such attribute : "objectclass_attrs: attribute 'ieee803Device' on entry 'CN=DEMO-03,CN=Computers,DC=dmiserver,DC=lan' was not found in the schema!" on DN CN=DEMO-03,CN=Computers,DC=dmiserver,DC=lan at block before line 13 Add failed after processing 0 records ieee803Device: aa:bb:cc:dd:ee:ff Any hints? Is there a compact list of supported attributes? Tfh! Oliver
Oliver Rath
2018-Sep-10 17:38 UTC
[Samba] corrected to 802 [was Re: schema enhancement recommandation?]
Hi Roland, found some typo (803 instead of 802), but ive got also the same error: ldbadd -H /var/lib/samba/private/sam.ldb < win.ldif ERR: No such attribute : "objectclass_attrs: attribute 'ieee802Device' on entry 'CN=DEMO-03,CN=Computers,DC=dmiserver,DC=lan' was not found in the schema!" on DN CN=DEMO-03,CN=Computers,DC=dmiserver,DC=lan at block before line 13 Add failed after processing 0 records Regards, Oliver
On Mon, 10 Sep 2018 19:35:23 +0200 Oliver Rath via samba <samba at lists.samba.org> wrote:> Hi Rowland, > > thank you for your fast answer. More see below. > > On 10.09.2018 19:18, Rowland Penny via samba wrote: > > [..] ERR: Object class violation : "objectclass_attrs: attribute > >> 'macAddress' on entry 'CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan' > >> does not exist in the specified objectclasses!" on DN > >> CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan at block before line 13 > >> Add failed after processing 0 records > >> > > The possible answer is in the error message. The attribute is > > actually 'macAddress' and its objectclass is 'ieee802Device', so if > > you add the objectclass and fix the syntax it may work. > > Hmm. Looking with google tells me, that ieee803Device ist part of > nis.schema, which is already implemented on my ad with --rfc2307 via > provisioning. > > But changing macaddress to > > ieee803Device: aa:bb:cc:dd:ee:ff > > results in: > > >>> ldbadd -H /var/lib/samba/private/sam.ldb < win.ldif > ERR: No such attribute : "objectclass_attrs: attribute 'ieee803Device' > on entry 'CN=DEMO-03,CN=Computers,DC=dmiserver,DC=lan' was not found > in the schema!" on DN CN=DEMO-03,CN=Computers,DC=dmiserver,DC=lan at > block before line 13 > Add failed after processing 0 records > > ieee803Device: aa:bb:cc:dd:ee:ff > > Any hints? Is there a compact list of supported attributes? > > Tfh! > Oliver >Yes, it will be somewhere on your system, but I think you misunderstood what I was trying to tell you. Before you can add an attribute to an object, the object must contain the 'objectclass' that 'owns' the attribute, so the ldif needs to be: dn: CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user objectClass: computer objectClass: ieee802Device CN: DEMO-02 name: DEMO-02 userAccountControl: 4096 sAMAccountName: DEMO-02$ operatingSystem: Windows 8.1 Professional Volume operatingSystemVersion: 6.3 (9600) macAddress: aa:bb:cc:dd:ee:ff Rowland
Hi Rowland,> objectClass: computer > objectClass: ieee802Device >This was the missing point. Works now! Thank you very, very much! Kindly regards, Oliver
On Mon, 2018-09-10 at 19:35 +0200, Oliver Rath via samba wrote:> Hi Rowland, > > thank you for your fast answer. More see below. > > On 10.09.2018 19:18, Rowland Penny via samba wrote: > > > > [..] ERR: Object class violation : "objectclass_attrs: attribute > > > > > > 'macAddress' on entry 'CN=DEMO- > > > 02,CN=Computers,DC=dmiserver,DC=lan' > > > does not exist in the specified objectclasses!" on DN > > > CN=DEMO-02,CN=Computers,DC=dmiserver,DC=lan at block before line > > > 13 > > > Add failed after processing 0 records > > > > > The possible answer is in the error message. The attribute is > > actually > > 'macAddress' and its objectclass is 'ieee802Device', so if you add > > the > > objectclass and fix the syntax it may work. > Hmm. Looking with google tells me, that ieee803Device ist part of > nis.schema, which is already implemented on my ad with --rfc2307 via > provisioning.That (thankfully) doesn't change the schema, but regardless.> But changing macaddress to > > ieee803Device: aa:bb:cc:dd:ee:ffNo, what Rowland was saying is to modify objectclass to additionally include ieee802device, then use macAddress. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba