Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ldapsearch builded by emerge can't query the data with ssl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
stereomatchingkiss
n00b
n00b


Joined: 28 Apr 2014
Posts: 5

PostPosted: Mon Apr 28, 2014 1:55 am    Post subject: ldapsearch builded by emerge can't query the data with ssl Reply with quote

environment

os : win7 64bits
ldap server : openldap for windows 2.4.34(http://www.userbooster.de/en/download/openldap-for-windows.aspx)
compiler : vc2008

The ldapsearch download by emerge can't contact with the server with ssl(without ssl everything are fine), but the ldapsearch come with
the ldap server can.

The command of ldapserach:
ldapsearch -H ldaps://CS-NWTHAM-PC -x -b dc=micmiu,dc=com -D cn=Manager,dc=micmiu,dc=com -w secret -d 1

The error messages :

Quote:
ldap_url_parse_ext(ldaps://CS-NWTHAM-PC)
ldap_create
ldap_url_parse_ext(ldaps://CS-NWTHAM-PC:636/??base)
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP CS-NWTHAM-PC:636
ldap_new_socket: 404
ldap_prepare_socket: 404
ldap_connect_to_host: Trying 192.168.82.79:636
ldap_pvt_connect: fd: 404 tm: -1 async: 0
attempting to connect:
connect success
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 47 bytes to sd 404
ldap_result ld 005B2BF8 msgid 1
wait4msg ld 005B2BF8 msgid 1 (infinite timeout)
wait4msg continue ld 005B2BF8 msgid 1 all 1
** ld 005B2BF8 Connections:
* host: CS-NWTHAM-PC port: 636 (default)
refcnt: 2 status: Connected
last used: Mon Apr 28 09:46:25 2014


** ld 005B2BF8 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 005B2BF8 request count 1 (abandoned 0)
** ld 005B2BF8 Response Queue:
Empty
ld 005B2BF8 response count 0
ldap_chkResponseList ld 005B2BF8 msgid 1 all 1
ldap_chkResponseList returns ld 005B2BF8 NULL
ldap_int_select
read1msg: ld 005B2BF8 msgid 1 all 1
ber_get_next
ldap_err2string
ldap_result: Can't contact LDAP server (-1)
ldap_free_request (origid 1, msgid 1)
ldap_free_connection 1 1
ldap_free_connection: actually freed


The emerge command I use :
emerge openldap(I didn't follow the procedures "emerge qt", "emerge kdelibs", "emerge kde-baseapps" before I use the command "emerge openldap")

What is happening?How could I enable the ssl connection with the ldapserach?Thanks[/bug]
Back to top
View user's profile Send private message
ttysteale
n00b
n00b


Joined: 25 Aug 2013
Posts: 7

PostPosted: Mon Apr 28, 2014 2:44 pm    Post subject: Reply with quote

Looking at the openldap ebuild, ssl is not enabled by default you will need to add ssl support to openldap to make ssl connections

echo "net-nds/openldap ssl" >> /etc/portage/package.use/openldap
or
echo "net-nds/openldap ssl" >> /etc/portage/package.use

depending on which format you are using

USE_FLAG : ssl - Add support for Secure Socket Layer connections
Back to top
View user's profile Send private message
stereomatchingkiss
n00b
n00b


Joined: 28 Apr 2014
Posts: 5

PostPosted: Tue Apr 29, 2014 3:06 am    Post subject: Reply with quote

ttysteale wrote:
Looking at the openldap ebuild, ssl is not enabled by default you will need to add ssl support to openldap to make ssl connections

echo "net-nds/openldap ssl" >> /etc/portage/package.use/openldap
or
echo "net-nds/openldap ssl" >> /etc/portage/package.use

depending on which format you are using

USE_FLAG : ssl - Add support for Secure Socket Layer connections


Thanks for your helps, I have some questions want to ask since i am not quite understand the whole procedures yet

I tried following steps with no avail

1 : emerge openldap
2 : echo "net-nds/openldap ssl" >> /etc/portage/package.use/openldap //don't know what is the diff between those two formats
3 : emerge --compile openldap

what are the correct procedures to enable the openssl(including the library--libber, libldap and so on)?

ps : studying portage from here http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1, is this a correct way to go?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum