Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
slapd error when following the gentoo openldap guide
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dfuse
Guru
Guru


Joined: 07 Apr 2003
Posts: 395
Location: Belgium

PostPosted: Sun Nov 23, 2003 3:06 pm    Post subject: slapd error when following the gentoo openldap guide Reply with quote

Hey,
I'm following the guide for openldap and when I reach the point where I've got to start slapd I get the following error:

Code:
 
* Starting ldap-server...
/etc/openldap/schema/inetorgperson.schema: line 143: AttributeType not found: "audi  [ !! ]


Since the error comes from a file I didn't change, I don't know what to do...
Back to top
View user's profile Send private message
ozukir@
Apprentice
Apprentice


Joined: 14 Oct 2002
Posts: 209
Location: USA

PostPosted: Sun Nov 23, 2003 7:24 pm    Post subject: Reply with quote

Perhaps there is some corruption in that particular schema. I would check it for any obvious typos. Otherwise, untar the openldap tarball and replace that schema with one from it (it's in the servers/slapd/schema).

BTW, mine ends at line 142. What version of OpenLDAP are you using?
Back to top
View user's profile Send private message
dfuse
Guru
Guru


Joined: 07 Apr 2003
Posts: 395
Location: Belgium

PostPosted: Sun Nov 23, 2003 10:15 pm    Post subject: Reply with quote

There are no typos I can see,
I use OpenLDAP 2.0.27-r4. My schema contains 144 lines, the last being blank. 143 is thus the last line containing )

With the file from the tarball I get
Code:

/etc/openldap/schema/inetorgperson.schema: line 142: AttributeType not found: "audio"          [ !! ]


Not much difference there :cry: although the new schema is 2 lines shorter
Back to top
View user's profile Send private message
ozukir@
Apprentice
Apprentice


Joined: 14 Oct 2002
Posts: 209
Location: USA

PostPosted: Sun Nov 23, 2003 10:44 pm    Post subject: Reply with quote

This looks like a problem with one of the attributes being used in inetorgperson.schema not being defined. audio is defined in the cosine.schema. Make sure this is included in your slapd.conf. According to the gentoo docs you want to include the following:
Code:
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema

Beyond that, you'll need to post more information about your configuration.
Back to top
View user's profile Send private message
dfuse
Guru
Guru


Joined: 07 Apr 2003
Posts: 395
Location: Belgium

PostPosted: Mon Nov 24, 2003 7:00 pm    Post subject: Reply with quote

Yes you're right, it was a stupid typo, I overlooked cosine.schema, I think I saw core.schema and thought that was cosine.schema, now slapd starts.

Thanks alot for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum