Am Wed, 21 Dec 2011 09:37:10 -0300
schrieb Pablo<paa.listas@gmail.com>:
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
Use ldapmodify instead of ldapadd, and use replace instead of delete.
dn: cn=uidNext,dc=example,dc=com
changetype: modify
replace:uidNumber
uidNumber: 611
-Dieter