Find the answer to your Linux question:
Results 1 to 3 of 3
I am running SUSE 10.0 and i am attempting to setup a samba/openldap PDC so i can have windows machines running (laptops mainly) on the network also. I have edited ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    5

    openLDAP server startup error - nis.schema


    I am running SUSE 10.0 and i am attempting to setup a samba/openldap PDC so i can have windows machines running (laptops mainly) on the network also.

    I have edited my '/etc/openldap/slapd.conf' thus:

    Code:
    //added includes
    include		/etc/openldap/schema/samba3.schema
    include		/etc/openldap/schema/nis.schema
    my new /etc/openldap/slapd.conf include section now reads

    Code:
    include         /etc/openldap/schema/core.schema
    include		/etc/openldap/schema/cosine.schema
    include		/etc/openldap/schema/inetorgperson.schema
    include		/etc/openldap/schema/rfc2307bis.schema
    include		/etc/openldap/schema/yast.schema
    include		/etc/openldap/schema/samba3.schema
    include		/etc/openldap/schema/nis.schema
    i have also amdended the database settings for my domain and admin account with password.

    i have also added the following search indexes

    Code:
    index	objectClass,uid,uidNumber,gidNumber,member,memberUid eq
    index 	default sub
    I then attempted to start my ldap service with # /etc/init.d/ldap start

    I then got this error message

    linuxbox:~ # /etc/init.d/ldap start
    Starting ldap-server/etc/openldap/schema/nis.schema: line 40: Duplicate attributeType: "1.3.6.1.1.1.1.0"
    startproc: exit status of parent of /usr/lib/openldap/slapd: 1
    failed
    Code:
    // /etc/openldap/schema/nis.schema Attribute Type Definition section (line is highlighted)
    
    attributetype ( 1.3.6.1.1.1.1.0 NAME 'uidNumber'
    	DESC 'An integer uniquely identifying a user in an administrative domain'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.1 NAME 'gidNumber'
    	DESC 'An integer uniquely identifying a group in an administrative domain'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.2 NAME 'gecos'
    	DESC 'The GECOS field; the common name'
    	EQUALITY caseIgnoreIA5Match
    	SUBSTR caseIgnoreIA5SubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.3 NAME 'homeDirectory'
    	DESC 'The absolute path to the home directory'
    	EQUALITY caseExactIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.4 NAME 'loginShell'
    	DESC 'The path to the login shell'
    	EQUALITY caseExactIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.5 NAME 'shadowLastChange'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.6 NAME 'shadowMin'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.7 NAME 'shadowMax'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.8 NAME 'shadowWarning'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.9 NAME 'shadowInactive'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.10 NAME 'shadowExpire'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
    	EQUALITY caseExactIA5Match
    	SUBSTR caseExactIA5SubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
    
    attributetype ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup'
    	EQUALITY caseExactIA5Match
    	SUBSTR caseExactIA5SubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
    
    attributetype ( 1.3.6.1.1.1.1.14 NAME 'nisNetgroupTriple'
    	DESC 'Netgroup triple'
    	SYNTAX 1.3.6.1.1.1.0.0 )
    
    attributetype ( 1.3.6.1.1.1.1.15 NAME 'ipServicePort'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.16 NAME 'ipServiceProtocol'
    	SUP name )
    
    attributetype ( 1.3.6.1.1.1.1.17 NAME 'ipProtocolNumber'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.18 NAME 'oncRpcNumber'
    	EQUALITY integerMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber'
    	DESC 'IP address'
    	EQUALITY caseIgnoreIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
    
    attributetype ( 1.3.6.1.1.1.1.20 NAME 'ipNetworkNumber'
    	DESC 'IP network'
    	EQUALITY caseIgnoreIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.21 NAME 'ipNetmaskNumber'
    	DESC 'IP netmask'
    	EQUALITY caseIgnoreIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.1.1.1.22 NAME 'macAddress'
    	DESC 'MAC address'
    	EQUALITY caseIgnoreIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
    
    attributetype ( 1.3.6.1.1.1.1.23 NAME 'bootParameter'
    	DESC 'rpc.bootparamd parameter'
    	SYNTAX 1.3.6.1.1.1.0.1 )
    
    attributetype ( 1.3.6.1.1.1.1.24 NAME 'bootFile'
    	DESC 'Boot image name'
    	EQUALITY caseExactIA5Match
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
    
    attributetype ( 1.3.6.1.1.1.1.26 NAME 'nisMapName'
    	SUP name )
    
    attributetype ( 1.3.6.1.1.1.1.27 NAME 'nisMapEntry'
    	EQUALITY caseExactIA5Match
    	SUBSTR caseExactIA5SubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} SINGLE-VALUE )
    The nis.schema is as it was installed

    If anyone can help that would be brilliant. I amn assuming that i cant be the only person to have come across this problem

    Thanks in advance

  2. #2
    Just Joined!
    Join Date
    Sep 2006
    Posts
    1
    Hi,

    I had this Probleme some Time ago too. I found the solution in a spanish Forum ^^. U can only use nis.schema or!! rfc2307bis.schema. Both of them conflict with each other
    I hope the hint is not to late.

    MfG iStop

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    1
    I know that this was a pretty old post, but I am getting the same error. However, I am not using the rfc2307bis.schema file. I am very confused. I searched the included schema's I have included for the attribute that is supposedly duplicated, but found nothing. Any ideas?

    here is my include section:

    Code:
    include         /etc/ldap/schema/core.schema
    include         /etc/ldap/schema/cosine.schema
    include         /etc/ldap/schema/nis.schema
    include         /etc/ldap/schema/inetorgperson.schema
    include         /etc/ldap/schema/dhcp.schema
    include         /etc/ldap/schema/dnsdomain2.schema
    include         /etc/ldap/schema/samba.schema
    include         /etc/ldap/schema/samba-old.schema
    include         /etc/ldap/schema/apple.schema
    if you need more information please ask. I am very new to openldap/slapd etc

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •