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

Re: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.27





--On Wednesday, July 07, 2004 2:28 AM +0200 Andreas Schuldei <andreas@schuldei.org> wrote:

* 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:

Hi Andreas,

I've hit this same issue myself. ;) OpenLDAP will simply give you the entry that had the problem, but not the actual line of the entry where the problem occurred, and I don't know a way to get around that.

However, you can narrow it down some by looking at the attributes in the entry and their syntax definitions.

Whatever attribute is having the problem uses 1.3.6.1.4.1.1466.115.121.1.27 for its syntax.

This indicates:

<http://www.alvestrand.no/objectid/1.3.6.1.4.1.1466.115.121.1.27.html>

it is an integer syntax. So I would assume that for uid=tvm, there is an integer attribute that has an non-integer value.

I find the following attributes using that syntax (there are more), but what immediately jumps out is there is no value's for:

sambalogontime or sambapwdcanchange, both of which are required to be integers



attributetype ( 1.3.6.1.1.1.1.0 NAME 'uidNumber'
DESC 'An integer uniquely identifying a user in an administrative domain'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )


attributetype ( 1.3.6.1.1.1.1.1 NAME 'gidNumber'
DESC 'An integer uniquely identifying a group in an administrative domain'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )


attributetype ( 1.3.6.1.4.1.7165.2.1.27 NAME 'sambaPwdLastSet'
	DESC 'Timestamp of the last password update'
	EQUALITY integerMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )

attributetype ( 1.3.6.1.4.1.7165.2.1.28 NAME 'sambaPwdCanChange'
	DESC 'Timestamp of when the user is allowed to update the password'
	EQUALITY integerMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )

attributetype ( 1.3.6.1.4.1.7165.2.1.30 NAME 'sambaLogonTime'
	DESC 'Timestamp of last logon'
	EQUALITY integerMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )

--Quanah

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==



-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html