In my company's ldap we got two attributes, one is called cryptodata
and the other cryptodata;binary
When I do an ldapsearch command and put cryptodata
ending the command in order to filter by this attribute only, it brings me both cryptodata
and cryptodata;binary
attributes.
I want it to return only cryptodata
and not cryptodata;binary
.
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 cryptodata;binary
Also this is a large company ldap, so I don't have management over the ldap field structure.