Dear list,  

I am trying to add an OpenIndiana 151a7 machine as an LDAP client
of an Ubuntu 12.04.1 server with slapd version as shipped with it:

# slapd -V
@(#) $OpenLDAP: slapd  (Oct 17 2012 19:48:41) $
        buildd@komainu:/build/buildd/openldap-2.4.28/debian/build/servers/slapd

On the OI client I get

# ldapclient init machine.openanalytics.eu
Can not find the nisDomainObject for domain  

Google found out for me that the OpenIndiana LDAP client assumes
the rfc2307bis.schema to be used instead of the nis.schema that
is used by default and grep confirms the nisDomainObject can
be found there:

# grep -nr nisDomain* /etc/ldap/schema.
./rfc2307bis.schema:158:attributetype ( 1.3.6.1.1.1.1.30 NAME 'nisDomain'
./rfc2307bis.schema:269:objectclass ( 1.3.6.1.1.1.2.15 NAME 'nisDomainObject' 
SUP top AUXILIARY
./rfc2307bis.schema:271:  MUST nisDomain )

To make it a little bit simpler for the newbie I am, I made sure static 
configuration
is used (by removing /etc/ldap/slapd.d)

The relevant part of the slapd.conf now reads

# Schema and objectClass definitions                                            
                                           
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/rfc2307bis.schema
include         /etc/ldap/schema/ldapns.schema
include         /etc/ldap/schema/inetorgperson.schema

When running slaptest, I get

# slaptest
51655577 /etc/ldap/schema/rfc2307bis.schema: line 5 attributetype: Duplicate 
attributeType: "1.3.6.1.1.1.1.0"
slaptest: bad configuration file!

However, when grepping on "1.3.6.1.1.1.1.0", I only get the rfc2307bis.schema 
file:

# grep -rn 1.3.6.1.1.1.1.0 /etc/ldap/schema
/etc/ldap/schema/rfc2307bis.schema:1:attributetype ( 1.3.6.1.1.1.1.0 NAME 
'uidNumber'

Where else can this attributeType live? Can I provide more information?

I am a bit puzzled, so many thanks in advance for any pointer!

Best,
Tobias

Reply via email to