Extracting a value from an LDAP attribute