Bug 787788 - Syntax error in samba.ldif
Summary: Syntax error in samba.ldif
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-06 18:10 UTC by Norberto Bensa
Modified: 2012-10-26 16:04 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-26 16:04:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fixed samba.ldif (14.10 KB, text/x-ldif)
2012-02-06 18:10 UTC, Norberto Bensa
no flags Details

Description Norberto Bensa 2012-02-06 18:10:45 UTC
Created attachment 559710 [details]
Fixed samba.ldif

Description of problem:

while trying to setup Samba+ldap in Fedora 16 I got the following problem:

[sysadmin@localhost LDAP]$ sudo ldapadd -Y external -H ldapi:/// -f samba.ldif 
[sudo] password for sysadmin: 
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=samba,cn=schema,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
	additional info: olcAttributeTypes: Unexpected token before  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )


Version-Release number of selected component (if applicable):

samba-3.6.1-77.fc16.x86_64


How reproducible:

Always


Steps to Reproduce:
1. sudo yum install openldap-servers openldap-clients samba
2. cd /usr/share/doc/samba-3.6.1/LDAP
3. sudo ldapadd -Y external -H ldapi/// -f samba.ldif

  
Actual results:

Not able to add samba schema to ldap

Expected results:

Being able to add the schema :)

Additional info:

There's a syntax error in:

olcAttributeTypes: {50}( 1.3.6.1.4.1.7165.2.1.73 NAME 'sambaTrustPartner' DESC
  'Fully qualified name of the domain with which a trust exists' EQUALITY case
  IgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )

The directive should be caseIgnoreMatch, not case IgnoreMatch (note the extra space on the IgnoreMatch line)

Correcting it will fix the problem:

olcAttributeTypes: {50}( 1.3.6.1.4.1.7165.2.1.73 NAME 'sambaTrustPartner' DESC
 'Fully qualified name of the domain with which a trust exists' EQUALITY case
 IgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )


[sysadmin@localhost LDAP]$ sudo ldapadd -Y external -H ldapi:/// -f samba.ldif 
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=samba,cn=schema,cn=config"



(Note that I just removed one space; I don't know if bugzilla shows this, so I'm attaching a fixed schema.ldif)

Comment 1 Andreas Schneider 2012-10-26 16:04:44 UTC
See bso #8789


Note You need to log in before you can comment on or make changes to this bug.