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

(ITS#5312) ldapmodify(1) man page claims that "changetype:" not necessary



Full_Name: Dave Horsfall
Version: 2.4.7 + ITS #5291 patch
OS: FreeBSD 6.2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.65.182.30)


The man page for ldapmodify(1) says that:

       If no "changetype:" line is present, the default is  "add"  if  the  -a
       flag  is  set  (or  if the program was invoked as ldapadd) and "modify"
       otherwise.

       If changetype is "modify" and no "add:", "replace:", or "delete:" lines
       appear,  the  default is "replace" for ldapmodify(1) and "add" for lda-
       padd(1).

This appears to be incorrect in practice:

LDIF:

dn: cn=uidpool,dc=coreng,dc=com,dc=au
objectClass: ciUID
objectClass: top
cn: uidpool
ciNextUID: 12020
ciLastUID: 12999

Command (abridged):

ldapmodify -x -W -H "ldap://ldap.exanple.com"; -f LDIF

Enter LDAP Password: 
ldapmodify: modify operation type is missing at line 2, entry
"cn=uidpool,dc=example,dc=com"