[Pkg-samba-maint] Bug#648231: samba-doc: samba-schema-FDS.ldif.gz is invalid, according to "ldapadd/slapd"

Helge Hafting helge.hafting at hist.no
Wed Nov 9 20:00:22 UTC 2011

Package: samba-doc
Version: 2:3.5.11~dfsg-4
Severity: normal
Tags: patch

When setting up a samba+ldap PDC, the ldap databse needs to be told 
about various samba specific fields. (Such as windows passwords.) This 
used to be done by copying the samba.schema.gz file from
samba-doc, and unpack & include it.

Newer versions of LDAP want this information
in a LDIF file instead. I guess this is why
you also distribute samba-schema-FDS.ldif.gz with samba-doc. 
Unfortunately, when I unpack this file and
tries to add it with:

ldapadd -Y EXTERNAL -H ldapi:/// -f samba-schema-FDS.ldif

all I get is an error. Some number in this file is invalid according to 
the schema, and the update is rejected.

Fortunately, there are guides on the net on how to create a ldif file 
from a schema file, so a working ldif file can be created from the 
samba.schema.gz file. See for example this URL:


I have created such a file and it worked for me. It is attached as 
samba.ldif, if you want to use it.

Helge Hafting

-- System Information:
Debian Release: wheezy/sid
   APT prefers testing
   APT policy: (900, 'testing'), (800, 'unstable'), (800, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

samba-doc depends on no packages.

samba-doc recommends no packages.

Versions of packages samba-doc suggests:
pn  samba-doc-pdf  <none>

-- debconf-show failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba.ldif
Type: text/x-ldif
Size: 11970 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20111109/cfa5f6aa/attachment.bin>

More information about the Pkg-samba-maint mailing list