[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Auto increment (uidNext and uidNumber)
- To: openldap-technical@openldap.org
- Subject: Auto increment (uidNext and uidNumber)
- From: Pablo <paa.listas@gmail.com>
- Date: Wed, 21 Dec 2011 09:37:10 -0300
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15
Hello,
Based on this article:
http://www.rexconsulting.net/ldap-protocol-uidNumber.html.
I am trying to increment 'uidNumber'. For doing that, I am using this
LDIF file:
--------------- autoinc.ldif ---------------------------
dn: cn=uidNext,dc=example,dc=com
changetype: modify
delete:uidNumber
uidNumber: 610
-
add: uidNumber
uidNumber: 611
------------------- EOF --------------------------------
And this command; but produce an error:
$ ldapadd -x -D "cn=Admin,dc=example,dc=com" -wsecret -f ./autoinc.ldif
adding new entry "cn=uidNext,dc=example,dc=com"
ldapadd: Undefined attribute type (17)
additional info: add: attribute type undefined
$
This is the definition of the uidNext objectClass:
----------------------------------------------
objectClass ( 1.3.6.1.4.1.4203.666.599
NAME 'uidNext'
SUP top STRUCTURAL
MUST ( cn $ uidNumber ) )
----------------------------------------------
Any idea of what I am doing wrong here?
Thanks in advance.
Pablo.