[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121. 1.44?
>uncgemail: AAROE@UNCG.EDU
if you look in point 6.29 and 4.1 of http://sunsite.dk/RFC/rfc/rfc2252.html,
you'll find out that '@' isn't a legal character for this attribute's
sintax. If openldap follows that (and some tests seem to indicate that in
fact it does) then this might just be the error's source. Hope this may
help.
Nuno
-----Original Message-----
From: W. L. Estes [mailto:wlestes@uncg.edu]
Sent: Friday, June 22, 2001 3:32 PM
To: openldap-software@OpenLDAP.org
Subject: str2entry: invalid value for syntax
1.3.6.1.4.1.1466.115.121.1.44?
I want to put data into my newly installed openldap server.
To that end, I have the following schema in the file
/usr/local/etc/openldap/schema/uncg.schema:
===File /usr/local/etc/openldap/schema/uncg.schema==========
# Schema for UNCG ldap
attributetype ( 152.13.12.1
NAME 'uncgfullname'
DESC 'Full Name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
attributetype ( 152.13.12.2
NAME 'uncgdep'
DESC 'Department Name'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
attributetype (152.13.12.3
NAME 'uncgoffice'
DESC 'Office'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
attributetype (152.13.12.4
NAME 'uncgpermanentaddress'
DESC 'Permanent Address'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
attributetype (152.13.12.5
NAME 'uncgofficephone'
DESC 'Office Phone'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
attributetype (152.13.12.6
NAME 'uncgpermanentphone'
DESC 'Permanent Phone'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
attributetype ( 152.13.12.7
NAME 'uncgemail'
DESC 'Email Address'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
)
objectclass ( 152.13.13.1
NAME 'uncgemp'
DESC 'UNCG Employee'
MAY ( uncgfullname $ uncgdep $ uncgoffice $ uncgpermanentaddress
$
uncgofficephone $ uncgpermanentphone $ uncgemail )
)
============================================================
I have some test data which looks like this (from an hopefully ldif
file)
===File ~/ldap/emp.ldif=====================================
dn: uncgfullname=Aaroe,Christian D. (Mr.), dc=michael, dc=uncg, dc=edu
objectclass: uncgemp
uncgfullname: Aaroe,Christian D. (Mr.)
uncgdep: Building & Trades
uncgoffice: Sink Building
uncgpermanentaddress: 312 Jackson Street Greensboro NC 27403
uncgofficephone: (336) 334-3365
uncgpermanentphone: (336) 272-3101
uncgemail: AAROE@UNCG.EDU
============================================================
When I run:
/usr/local/sbin/slapadd -v -l emp.ldif
I get (among other things):
str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.44
slapadd: could not parse entry (line=10)
What am I doing wrong and how do I fix it?
Thanks,
--Will