In my company's ldap we got two attributes, one is called
cryptodata and the other
When I do an ldapsearch command and put
cryptodata ending the command in order to filter by this attribute only, it brings me both
I want it to return only
cryptodata and not
How can I do this ? Both of these attributes are many lines long, so grep would be cumbersome to use.
Example of the command I use that returns both fields:
ldapsearch -h 0.0.0.0 -p 389 -D "cn=sysname,ou=whatever,o=ca,c=country" -b "CN=SOMEONE,OU=AUTHORITHY,OU=COMPANY,OU=TYPE,O=CA,C=COUNTRY" -w "password" dn cryptodata
please note that both fields are not the same. So I can't just filter by
Also this is a large company ldap, so I don't have management over the ldap field structure.