I’m pretty sure I’ve covered this elsewhere, but just in case:
ldapsearch -x -LLL -h hostname -D "cn=directory manager" -W -b "dc=example,dc=com" -s sub "(uid=targetuserid)" "*" createtimestamp creatorsname modifytimestamp modifiersname
Very important to remember to put those quotes around the asterisk (you can use single or double).
Some directory servers may not honor this syntax. It works with Sun Directory and OpenLDAP, but not Oracle Internet Directory, for example.
The version of ldapsearch that ships with OpenDJ requires a slightly different syntax, as you might have guessed (why would anyone want to do things the same way?):
ldapsearch -h hostname -D "cn=directory manager" -w xxxx -b "dc=example,dc=com" -s sub "(uid=targetuserid)" '*' '+'
Those are single quotes around the symbols, by the way. Double quotes won’t work.