[Samba] Naming violation: objectClass: myObjectClass not a valid child class for <>

RhineDevil tanyadegurechaff at disroot.org
Sun Oct 11 16:04:35 UTC 2020


Sun, 11 Oct 2020 16:07:31 +0100 Rowland penny via samba <samba at lists.samba.org>:
> On 11/10/2020 11:06, RhineDevil wrote:
> > Mon, 27 Jul 2020 09:09:04 +0100 Rowland penny via samba <samba at lists.samba.org>:
> >> On 27/07/2020 01:12, RhineDevil wrote:
> >>> Sun, 26 Jul 2020 19:03:04 +0100 Rowland penny via samba <samba at lists.samba.org>:
> >>>> On 26/07/2020 18:45, RhineDevil wrote:
> >>>>> Done, I still get the same errors when adding mod.ldif
> >>>>>
> >>>>> (I used ldbadd instead of ldbmodify, is that a problem?)
> >>>> No, that isn't the problem, the problem is that I forgot to remove a
> >>>> comment :-(
> >>>>
> >>>> Create another ldif:
> >>>>
> >>>> /tmp/classmod.ldif
> >>>>
> >>>> dn: CN=nisMailAlias,CN=Schema,CN=Configuration,DC=mydomain,DC=ldom
> >>>> changetype: modify
> >>>> add: possSuperiors
> >>>> possSuperiors: top
> >>>>
> >>>> Then stop Samba again and modify the class with:
> >>>>
> >>>> service samba-ad-dc stop
> >>>>
> >>>> ldbmodify -H /var/lib/samba/private/sam.ldb /tmp/classmod.ldif
> >>>> --option="dsdb:schema update allowed"=true
> >>>>
> >>>> service samba-ad-dc start
> >>>>
> >>>> Then try to add your OU ldif again.
> >>>>
> >>>> Rowland
> >>>>
> >>> Got nice results, later I moved to other migrations and that's the only error I don't know how to solve:
> >>> Error: Unable to parse dn 'CN=echo+ipServiceProtocol=ddp,CN=services,CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=ldom'
> >>>
> >>> dn: CN=echo+ipServiceProtocol=ddp,CN=services,CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=ldom
> >>> cn: echo
> >>> objectClass: ipService
> >>> objectClass: top
> >>> ipServicePort: 4
> >>> ipServiceProtocol: ddp
> >>>
> >> No, sorry, I cannot parse it either, your 'CN' must match the 'cn:'
> >>
> >> Just what are you trying to add ?
> >>
> >> Rowland
> > I'm trying to add /etc/services to samba schema
> 
> Not going to work I am afraid, you appear to be trying to use a twenty 
> year old script to create an ldif and this is failing.
> 
> Your example should be:
> 
> cn=echo,CN=services,CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=ldom
> 
> But because 'echo' uses 'tcp' and 'udp', you would end up with two 
> objects with the same DN and this is not allowed.
> 
> I still do not understand why you are trying to do this, NIS is as good 
> as dead.
> 
> Rowland
> 
Because well, GNU Name Service Switch still relies on these functions and I wanted to back this with LDAP as well
So how would you suggest fixing this?
Could having multiple ipServiceProtocol fields be just enough?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Firma digitale OpenPGP
URL: <http://lists.samba.org/pipermail/samba/attachments/20201011/6d23a569/attachment.sig>


More information about the samba mailing list