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)
See bso #8789