In our organization, we have ActiveDirectory set up with Identity Management for Unix (IDMU). When I look in ADUC on the Attribute Editor tab, I can see the posix attributes on my account (eg. gidNumber, uidNumber, etc...). However, if I run an ldapsearch against AD those attributes are not returned.
Here's the form of my command:
ldapsearch \
-H 'ldaps://ad.example.org:3269' \
-b 'dc=example,dc=org' \
-s sub \
-D 'CN=ldapsearch,OU=Service Accounts,OU=IT,DC=example,DC=org' \
-y ~/password.txt \
-o ldif-wrap=no \
'(sAMAccountName=myuser)' cn uidNumber gidNumber
It only returns the dn & cn. The uidNumber & gidNumber attributes are omitted.
Any ideas?