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

Re: How to use postread?



Emmanuel Dreyfus wrote:
Pierangelo Masarati <ando@sys-net.it> wrote:

It is supposed to be used on modify operations, RFC4527:

Sure, but that's not better:

ldapmodify -e!postread=sambaPwdLastSet < EOT
dn: uid=foo,dc=example,dc=net
changetype: modify
increment: sambaPwdLastSet
sambaPwdLastSet: 1
EOT
modifying entry "uid=foo,dc=example,dc=net"

Where is the value?

Probably, the version of ldaptools you're using does not print response control values.


current 2.3:

ldapmodify -e\!postread=description -x -H ldap://:9011 \
	-D cn=manager,dc=example,dc=com -w secret
dn: dc=example,dc=com
changetype: modify
add: description
description: foobar

modifying entry "dc=example,dc=com"
control: 1.3.6.1.1.13.2 false MEwEEWRjPWV4YW1wbGUsZGM9Y29tMDcwNQQLZGVzY3JpcHRp
b24xJgQcVGhlIEV4YW1wbGUsIEluYy4gYXQgQW55dG93bgQGZm9vYmFy


current HEAD:

ldapmodify -e\!postread=description -x -H ldap://:9011 \
	-D cn=manager,dc=example,dc=com -w secret
dn: dc=example,dc=com
changetype: modify
add: description
description: foobar2

modifying entry "dc=example,dc=com"
control: 1.3.6.1.1.13.2 false MFUEEWRjPWV4YW1wbGUsZGM9Y29tMEAwPgQLZGVzY3JpcHRp
b24xLwQcVGhlIEV4YW1wbGUsIEluYy4gYXQgQW55dG93bgQGZm9vYmFyBAdmb29iYXIy
# ==> postread
dn: dc=example,dc=com
description: The Example, Inc. at Anytown
description: foobar
description: foobar2
# <== postread


p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---------------------------------------
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it
---------------------------------------