You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Demonstrates using ldapcompare to compare an attribute value of an entry.
#This script includes comments explaining the purpose of the script and demonstrates how to use the ldapcompare command to compare an attribute value of an entry in the directory. The provided example showcases comparing the "cn" attribute value of an entry using the specified bind DN, entry DN, attribute, and value.
# Connection Details
HOST="ldap.forumsys.com"
PORT=389
BIND_DN="cn=admin,dc=example,dc=com"
# Entry DN and Attribute to be compared
ENTRY_DN="uid=john,ou=Users,dc=example,dc=com"
ATTRIBUTE="cn"
VALUE="John"
# Running the ldapcompare command to compare attribute value