I also did

$ /opt/bin/ldapadd -Z -x -W -D "cn=Manager,dc=myorg,dc=com" -v -f person.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
add objectclass:
        account
        posixAccount
        shadowAccount
        inetLocalMailRecipient
add cn:
        Test User
add uid:
        testuser
add userPassword:
        {crypt}s58TNiuL/tcM.
add loginShell:
        /usr/bin/bash
add uidnumber:
        1001
add gidnumber:
        500
add homeDirectory:
        /home/admin/testuser
add mailLocalAddress:
        testuser@myorg.com
add mailRoutingAddress:
        testuser@mailhost.myorg.com
add host:
        somehost.myorg.com
        someotherhost.myorg.com
        anotherhost.myorg.com
add shadowLastChange:
        12193
add shadowMin:
        0
add shadowMax:
        99999
add shadowWarning:
        7
add shadowInactive:
        1
add shadowExpire:
        12999
add gecos:
        Test User
adding new entry "uid=testuser,ou=People,dc=myorg,dc=com"
modify complete

then,
 
$ /opt/bin/ldapsearch -x -W -D "uid=testuser,ou=People,dc=myorg,dc=com" "(objectclass=*)"
Enter LDAP Password:
ldap_bind: Confidentiality required (13)
        additional info: TLS confidentiality required

any help will be appreciated.
 
On Tue, Mar 18, 2008 at 11:50 AM, Kevin Kim <surelybless@gmail.com> wrote:
Correction: I did ran with
/opt/bin/ldapsearch -x -W -D "uid=testuser,ou=People,dc=myorg,dc=com"
and I am still getting same error.
On Tue, Mar 18, 2008 at 11:44 AM, Kevin Kim <surelybless@gmail.com> wrote:
Can someone help me find the problem with ldapsearch?
 
I can insert the data using ldapadd:
/opt/bin/ldapadd -Z -x -W -D "cn=Manager,dc=myorg,dc=com" -v -f toplevel.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
 ...........
modify complete
but I am not able to run ldapsearch:
/opt/etc/openldap/ldif_files]$ /opt/bin/ldapsearch -x -W -D "uid=testuser,ou=People,dc=scivantage,dc=com" "(objectclass=*)"
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
 
my slapd.conf files:
defaultsearchbase dc=myorg,dc=com
 
access  to attrs=userPassword
        by self         write
        by anonymous    auth
        by *            none
access  to *
        by self         write
        by users        read
        by *            none
 
database        bdb
suffix          "dc=myorg,dc=com"
rootdn          "cn=Manager,dc=myorg,dc=com"
 
Also, if run ldapwhoami:
/opt/bin/ldapwhoami
ldap_sasl_interactive_bind_s: Confidentiality required (13)
 
I will be appreciated,
 
Kevin