I've exported the LDAPCONF=/etc/opt/novell/xad/openldap/ldap.conf
When I run :

ldapsearch -Y EXTERNAL -LLL -b
cn=Administrator,cn=users,dc=mydomain,dc=com sAMAccountName

I get : ldapsearch : Invalid Options

If I run the command without the -Y, it runs fine and returns the
sAMAAccount Name


My LDAP.conf in /etc/opt/novell/xad/openldap looks like this :
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writeable

BASE DC=mydomain,DC=COM
URI ldapi://%2fvar%2fopt%2fnovell%2fxad%2frun%2fldapi

#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
TLS_REQCERT allow
SASL_MECH GSS-SPNEGO