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

Re: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.27



* Andreas Schuldei (andreas@schuldei.org) [040704 20:15]:
> 
> i get 
> 
> invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.27
> slapadd: could not parse entry (line=716)
> 
> when slapadd`ing an ldif with debug level -d2. i did not find a
> debuglevel which could tell me which line in that entry it did
> not like.
> 
> how can i find out which line in the entry is faulty?

Quanah, for some reason i did not get your reply, but only see it
in the webarchive.

slapadd -d -1 gives some debugging. the last lines are:


[...]
added: "cn=hilde,ou=Group,dc=skole,dc=skolelinux,dc=no" (0000003c)
=> str2entry
>>> dnPrettyNormal: <uid=tvm,ou=People,dc=skole,dc=skolelinux,dc=no>
<<< dnPrettyNormal: <uid=tvm,ou=People,dc=skole,dc=skolelinux,dc=no>, <uid=tvm,ou=people,dc=skole,dc=skolelinux,dc=no>
>>> dnPretty: <cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no>
<<< dnPretty: <cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no>
str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.27
slapadd: could not parse entry (line=716)
slapadd shutdown: initiated
====> bdb_cache_release_all
slapadd shutdown: freeing system resources.
====> bdb_cache_release_all

the entry which stops in line 716 is long and i can not tell
which of its lines contains the faulty syntax.

i would have hoped for some output telling me which line within
that entry is buggy.

here is the entry in question. the syntax suggests that it
expects tome integer but finds something else: 


dn: uid=tvm,ou=People,dc=skole,dc=skolelinux,dc=no
loginshell: /bin/bash
objectclass: shadowaccount
objectclass: imapuser
objectclass: posixaccount
objectclass: top
objectclass: sambasamaccount
sambalogofftime: 2147483647
sambaacctflags: [UX         ]
creatorsname: cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no
userpassword:: e2NyeXB0ffg8TnE1VG1eRGZMdDY=
cn:: TXlocmUsIFRvcmJqw7hybiBWLg==
sambalogontime:
modifiersname: cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no
mailmessagestore: /var/lib/maildirs/tvm
sambantpassword: 6926B99BA325C703D3F90BA1885022CD
sambasid: S-1-5-21-872698249-1279178062-3287419353-42424
sambapwdcanchange:
gidnumber: 20712
sambapwdmustchange: 2147483647
homedirectory: /skole/tjener/home1/tvm
uid: tvm
sambalmpassword: F34EBD4864ACAEE775DA33E02F3D2D43
sambaprimarygroupsid: S-1-5-21-872698249-1279178062-3287419353-42425
uidnumber: 20712
modifytimestamp: 20031006075030Z
sambapwdlastset: 1065426630
sambakickofftime: 2147483647
createtimestamp: 20030826065934Z
displayname:: TXlocmUsIFRvcmJqw7hybiBWLg==