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

Re: syntax error in my ldif file



You are right, I failed to include the schema
http://ftp.slackware.pl/pub/splack/splack-10.1/boot/initrd/var/adm/setup/tmp/courier-authlib-0.62.2/authldap.schema
which is shipped with the courier-autlib-ldap,

now it is loaded and the problem is resolved, thanks.


On Thu, Mar 5, 2009 at 2:22 AM, Pierangelo Masarati <ando@sys-net.it> wrote:
> Ken Perl wrote:
>>
>> I got the error like below and can not fix it, could anyone help me?
>
> objectClass "CourierMailAccount" might be not known to your system. Since
> it's not a standards track objectClass, I guess you should have a
> courier-specific schema file around.  You need to load that schema file (see
> the "include" directive in slapd.conf(5); if you copy'n'pasted your
> slapd.conf it should already include some schema files) before you can use
> the schema items it defines.
>
> p.
>
>>
>> ldap_add: Invalid syntax (21)
>>        additional info: ObjectClass: value #0 invalid per syntax
>>
>> $cat lv1.ldif
>> dn: mail=lv1@colinux.my, dc=colinux, dc=my
>> ObjectClass: CourierMailAccount
>> cn: ldap_vitural1
>> mail: lv1@colinux.my
>> mail: lv1
>> userPassword: {MD5}$1$RnorJ$uVjJOT1I//zCCoFAYvP8t0
>> homeDirectory: lv1
>> uidNumber: 1000
>> gidNumber: 100
>>
>>
>
>
>
> 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
> Fax:     +39 0382 476497
> Email:   ando@sys-net.it
> -----------------------------------
>
>



-- 
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'