This is my newely created schema file in my ldap server for adding the attributes. But when i try to restart the ldap service i got the below error,
[root@master schema]# service ldap restart Stopping slapd: [FAILED] Checking configuration files for slapd: /etc/openldap/schema/sample.schema: lin e 3: Missing closing parenthesis before AttributeTypeDescription = "(" whsp numericoid whsp ; AttributeType identifier [ "NAME" qdescrs ] ; name used in AttributeType [ "DESC" qdstring ] ; description [ "OBSOLETE" whsp ] [ "SUP" woid ] ; derived from this other ; AttributeType [ "EQUALITY" woid ] ; Matching Rule name [ "ORDERING" woid ] ; Matching Rule name [ "SUBSTR" woid ] ; Matching Rule name [ "SYNTAX" whsp noidlen whsp ] ; see section 4.3 [ "SINGLE-VALUE" whsp ] ; default multi-valued [ "COLLECTIVE" whsp ] ; default not collective [ "NO-USER-MODIFICATION" whsp ]; default user modifiable [ "USAGE" whsp AttributeUsage ]; default userApplications ; userApplications ; directoryOperation ; distributedOperation ; dSAOperation whsp ")" slaptest: bad configuration file! [FAILED]
# New attribute definitions:
attributetype ( 1.3.6.1.4.1.4203.666.1.90 NAME 'E-mail address' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 1.3.6.1.4.1.4203.666.1.91 NAME 'Firstname' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 1.3.6.1.4.1.4203.666.1.92 NAME 'Last name' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 1.3.6.1.4.1.4203.666.1.93 NAME 'Nickname' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 1.3.6.1.4.1.4203.666.1.94 NAME 'Additional info' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
objectClass ( 1.3.6.1.4.1.4203.666.1.100 NAME 'YoLinuxPerson' DESC 'X-Person' SUP inetOrgPerson STRUCTURAL MAY ( E-mail address $ First name $ Last name $ Nickname $ Additional info ) )
On Wednesday 18 June 2008 10:33:47 Aravind Arjunan wrote:
This is my newely created schema file in my ldap server for adding the attributes.
Why are you making your life difficult? Just add entries like this:
dn: cn=Saju Kuttan,ou=solution,dc=test,dc=com objectClass: inetOrgPerson cn: Saju Kuttan sn: Kuttan givenName: Saju description: Saju Kuttan in the Oracle team telephoneNumber: 9891950975 mail: csaju@hcl.in
There doesn't seem to be an attribute for the Nick Name field in Outlook, see: http://www.openldap.org/faq/data/cache/294.html
Regards, Buchan
Aravind Arjunan wrote:
Checking configuration files for slapd: /etc/openldap/schema/sample.schema: lin e 3: Missing closing parenthesis before [..] objectClass ( 1.3.6.1.4.1.4203.666.1.100 NAME 'YoLinuxPerson' DESC 'X-Person' SUP inetOrgPerson STRUCTURAL MAY ( E-mail address $ First name $ Last name $ Nickname $ Additional info ) )
Well, it means exactly what it says. There's a parenthesis missing at the end of your objectClass declaration. Maybe you should not place the last ) in an extra line. Rather let the line about end like this:
Nickname $ Additional info ) )
Hmm, I've never seen attribute type NAMEs with spaces. I thought this is not allowed either.
Ciao, Michael.
Aravind Arjunan wrote:
objectClass ( 1.3.6.1.4.1.4203.666.1.100 NAME 'YoLinuxPerson' DESC 'X-Person' SUP inetOrgPerson STRUCTURAL MAY ( E-mail address $ First name $ Last name $ Nickname $ Additional info ) )
"Additional info" is no a valid attribute name. Either you meant "Additional $ info", i.e. two separate attributes, or "Additionalinfo".
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: ando@sys-net.it -----------------------------------
openldap-technical@openldap.org