Bug 300 - Cannot include samba.schema to LDAP
Summary: Cannot include samba.schema to LDAP
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.0preX
Hardware: All FreeBSD
: P3 normal
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-15 00:35 UTC by Pavel V.Zheltobryukhov
Modified: 2005-11-14 09:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel V.Zheltobryukhov 2003-08-15 00:35:23 UTC
I set up OpenLDAP 2.0.27 for authorization via pam_ldap and it works well. But when I add samba.schema in slapd.conf for my futher work - LDAP server doesn't start and exit with error message 

/usr/local/etc/openldap/schema/samba.schema: line 318: AttributeType not found: "gidnumber"

Part of my slapd.conf 

include/usr/local/etc/openldap/schema/core.schema
include/usr/local/etc/openldap/schema/cosine.schema
include/usr/local/etc/openldap/schema/inetorgperson.schema
include/usr/local/etc/openldap/schema/samba.schema
include/usr/local/etc/openldap/schema/nis.schema

As experiment, I replace  samba.schema with a samba.schema from Samba-2.2.8a tarball. And LDAP server start without any error messages. Where is a bug?
Comment 1 Gerald (Jerry) Carter (dead mail address) 2003-08-15 07:39:18 UTC
reorder the includes for samba.schema and nis.schema in slapd.conf
Comment 2 Pavel V.Zheltobryukhov 2003-08-15 22:41:51 UTC
After reordering all is OK. 
Quote from Samba-HOWTO Collection.html#passdb

"Next, include the samba.schema file in slapd.conf. The sambaSamAccount
 object contains two attributes which depend upon other schema files.
The 'uid' attribute is defined in cosine.schema and the 'displayName' 
attribute is defined in the inetorgperson.schema file. Both of these must be
 included before the samba.schema file. 


## /etc/openldap/slapd.conf

## schema files (core.schema is required by default)
include           /etc/openldap/schema/core.schema

## needed for sambaSamAccount
include            /etc/openldap/schema/cosine.schema
include            /etc/openldap/schema/inetorgperson.schema
include            /etc/openldap/schema/samba.schema
include            /etc/openldap/schema/nis.schema
...."

I think that documentation must be corrected for right order (samba after nis)
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-02-07 08:41:34 UTC
originally reported against 3.0.0beta3.  CLeaning out 
non-production release versions.
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:24:49 UTC
database cleanup