[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapsearch command help

At 06:25 AM 3/16/2005, Talwar, Puneet (NIH/NIAID) wrote:
>Root # ldapsearch -x -LLL -D "admin@xxx.xxx.xxx" -h <ip address>
>'dc=XXX,dc=XXX' -W '(&(objectClass=user))' sAMAccountName 

This seems off.

1) "admin@xxx.xxx.xxx" is not a DN string as expected by -D
2) seems a -b flag is missing before the dc=XXX,dc=XXX.
   Without the -b, 'dc=XXX,dc=XXX' will be regarded as the filter
   and the remaining arguments as requested attribute descriptions.