Using ldapsearch to return entries from OID for specific attributes. However, if an attribute is null the field value is not returned.
Is there anyway to force ldap to return field names in all cases?
LDAP:
ldapsearch -T -v -h aaaaa -p 111 -D "cn=orcladmin" -w "xxxx" -L -b "cn=Users,dc=apps,dc=domain,dc=com," -s subsub "(uid=X123456)" "objectclass=*" givenname sn mail uid orclguid
OUTPUT:
dn: cn=x123456,cn=users,dc=apps,dc=domain,dc=com
givenname: Ender
sn: Wiggin
uid: X123456
orclguid: 1234BC233232GH23232
Notice the missing mail. However, what I want is:
dn: cn=x123456,cn=users,dc=apps,dc=domain,dc=com
givenname: Ender
sn: Wiggins
mail:
uid: X123456
orclguid: 1234BC233232GH23232