Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Ldapsearch not working

807757Sep 7 2009 — edited Sep 15 2009
Hi all

i got a Sun Directory Server, listening on SSL Port, everything is working fine.

I can use Ldapsearch with the DS Version : /opt/SUNWdsee/dsee6/bin/ldapsearch
it works fine with SSL.

But, i cannot use any other ldapsearch (for example the one given natively by Solaris), same thing for an Ldapsearch located on Linux systems (CentOS 5.2 mostly, but anyways it doesn't work on other distros too)

what must i do to make other ones working ? do i have to replace them with a more recent version ?
and how can i install this tool without having to install full openldap packages ?

here are the errors i'm getting with this

the working version :
[510][root@sps-ldap-001][ssl]> /opt/SUNWdsee/dsrk6/bin/ldapsearch -Z -P /var/ldap -v -h localhost -p 636 -D "cn=Directory Manager" -b "dc=***,dc=***,dc=****,dc=com" -w"********" cn=nick_name
bin_ldapsearch: started Mon Sep  7 13:49:00 2009

ldap_init( localhost, 636 )
ldaptool_getcertpath -- /var/ldap
ldaptool_getkeypath -- /var/ldap
filter pattern: cn=nick_name
returning: ALL
filter is: (cn=nick_name)
version: 1
dn: uid=Nick_Name,dc=***,dc=***,dc=****,dc=com
cn: Nick_Name
displayName: Nick Name
givenName: Name
uid: Nick_Name
sn: Nick
dspswuserlink:: 25mqkrx5UUGJz4/pWkgJw==
objectClass: dspswuser
objectClass: inetOrgPerson
objectClass: top
objectClass: organizationalPerson
objectClass: person
userPassword: {PSWSYNC}*ON-DEMAND*SYNCHRONIZATION*REQUIRED*
mail: nick.name@domain.com
1 matches
[511][root@sps-ldap-001][ssl]>
and the non-working solaris version :
[511][root@sps-ldap-001][ssl]> /usr/bin/ldapsearch -Z -P /var/ldap -v -h localhost -p 636 -D "cn=Directory Manager" -b "dc=***,dc=***,dc=****,dc=com" -w"********" cn=nick_name
ldapsearch: started Mon Sep  7 13:49:07 2009

ldap_init( localhost, 636 )
ldap_simple_bind: Can't contact LDAP server
[512][root@sps-ldap-001][ssl]>
and the non-working linux version :
[root@spl-notwm-101 ~]# ldapsearch -Z -P /var/ldap -v -h sps-ldap-001 -p 636 -D "cn=Directory Manager" -b "dc=***,dc=***,dc=****,dc=com" -w"********" -x cn=nick_name
ldapsearch: unabel to parse protocol version "/var/ldap"
[root@spl-notwm-101 ~]#
naturlly i tried to add the Certificats in the /var/ldap Database, with certutil :
[root@spl-notwm-101 ~]# certutil -L -d /var/ldap -p *****-

Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI

defaultCert                                                  T,c,c
[root@spl-notwm-101 ~]#

but it doesn't work, i tried all kind of flags, and it doesn't change anything (i also cannot assign user flags "u")

please help on this

retards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2009
Added on Sep 7 2009
3 comments
2,073 views