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

-W not working anymore

I haven't touched my ldap project for a while but finally got back to it today.
In the past I used -W to be prompted for a password but it's not working
anymore. Am I crazy or am I just doing something wrong. I was using 1.2.3 but
upgraded to 1.2.6 to make sure that wasn't the problem. The man page says -W
prompts for the password.

bash-2.01$ ldapsearch -W -D 'cn=root, o=Tivoli Systems' 'cn=Jason Bodnar'
ldapsearch: illegal option -- W
usage: ldapsearch [options] filter [attributes...]
    filter      RFC-1558 compliant LDAP search filter
    attributes  whitespace-separated list of attributes to retrieve
                (if no attribute list is given, all are retrieved)
    -n          show what would be done but don't actually search
    -v          run in verbose mode (diagnostics to standard output)
    -t          write values to files in /tmp
    -u          include User Friendly entry names in the output
    -A          retrieve attribute names only (no values)
    -B          do not suppress printing of non-ASCII values
    -L          print entries in LDIF format (-B is implied)
    -R          do not automatically follow referrals
    -d level    set LDAP debugging level to `level'
    -F sep      print `sep' instead of `=' between attribute names and values
    -S attr     sort the results by attribute `attr'
    -f file     perform sequence of searches listed in `file'
    -b basedn   base dn for search
    -s scope    one of base, one, or sub (search scope)
    -a deref    one of never, always, search, or find (alias dereferencing)
    -l time lim time limit (in seconds) for search
    -z size lim size limit (in entries) for search
    -D binddn   bind dn
    -w passwd   bind passwd (for simple authentication)
    -h host     ldap server
    -p port     port on ldap server