summaryrefslogtreecommitdiffstats
path: root/pki/base/native-tools/src/setpin/setpin.c
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-06-24 23:53:23 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-06-24 23:53:23 +0000
commitaf85398eb2bdd8fe2e732969c7a8a4acf42fabbb (patch)
tree223b559c92214e296a10c3a210716168b99e2627 /pki/base/native-tools/src/setpin/setpin.c
parent3674360c6f4c11ac06dbc42cbbbfe903f67ed9ef (diff)
downloadpki-af85398eb2bdd8fe2e732969c7a8a4acf42fabbb.tar.gz
pki-af85398eb2bdd8fe2e732969c7a8a4acf42fabbb.tar.xz
pki-af85398eb2bdd8fe2e732969c7a8a4acf42fabbb.zip
Bugzilla Bug #507746 - Configure TPS/RA to listen on Ipv4 and Ipv6.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@653 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/native-tools/src/setpin/setpin.c')
-rw-r--r--pki/base/native-tools/src/setpin/setpin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pki/base/native-tools/src/setpin/setpin.c b/pki/base/native-tools/src/setpin/setpin.c
index 06306beb4..a0179c63e 100644
--- a/pki/base/native-tools/src/setpin/setpin.c
+++ b/pki/base/native-tools/src/setpin/setpin.c
@@ -47,6 +47,7 @@
#include <ldap.h>
#include <ldap_ssl.h>
+#include <ldappr.h>
#define USE_NSS_RANDOM
@@ -610,7 +611,7 @@ void doLDAPBind() {
/* ld = ldapssl_init(o_host,port,LDAPSSL_AUTH_CNCHECK); */
}
else {
- ld = ldap_init(o_host,port);
+ ld = prldap_init(o_host,port,1);
}
if (ld == NULL) {
errcode=4;
@@ -618,7 +619,7 @@ void doLDAPBind() {
}
if (o_debug) {
- fprintf(stderr,"# ldap_init completed\n");
+ fprintf(stderr,"# prldap_init completed\n");
}
r = ldap_simple_bind_s(ld,o_binddn,o_bindpw);