Simple question: how can we retrieve "mobile" attribute from all member of an Active Directory with shell command "ldapsearch" ?
I can already retrieve members using the following command:
ldapsearch -LLL -x -H $LDAP_HOST -D $LDAP_USER -w $LDAP_PASS -b "OU=Security and Distribution Groups,dc=XXXXXX,dc=XX" $FILTER member
This will give the DN for all members. But as some of the DN contains special chars (like ë, ö, è, é...) I will have some encoding issue when I will use those DN to query each members.
Is there a way to get members attributes directly without querying the AD for each member DN ?