[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: interpreting ldapmodify error messages



>
> Hi, I ran the following command :
>
> $ ldapmodify -D cn=root -w **** -f
> avs.schema.ldif.add
> ldapmodify: invalid format (line 8 of entry: cn=schema
>
> when my avs.schema.ldif.add contains the following:
>
> dn: cn=schema
> changeType: modify
> add: attributeTypes
> attributeTypes: ( 1.3.6.1.4.1.10725.4.11.1.1 NAME 'antiVirusEnabled'
> DESC  'antiVirus scanning
> ' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE
> ) -
> add: attributeTypes
> attributeTypes: ( 1.3.6.1.4.1.10725.4.11.1.2 NAME 'antiSpamEnabled' DESC
>  'antiSpam scanning'
> EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
> -
> add: objectClasses
> objectClasses: ( 1.3.6.1.4.1.10725.4.11.2.1 NAME 'AVSUserProfile' DESC
> 'antivirus and antispa
> m user profile' MUST ( antiVirusEnabled ) MAY (antiSpamEnabled) )
>
> I am really puzzled since the syntax is fine.
>
> Hope that somebody could throw some light

Assuming that the line wrapping is due to the mailer, then the error
is in repeatedly adding the same attribute type; your entry shoud look
like

===============================
dn: cn=schema
changeType: modify
add: attributeTypes
attributeTypes: ( 1.3.6.1.4.1.10725.4.11.1.1 ...
attributeTypes: ( 1.3.6.1.4.1.10725.4.11.1.2 ...
-
add: objectClasses
objectClasses: ( 1.3.6.1.4.1.10725.4.11.2.1 ...
-
===============================

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it