summaryrefslogtreecommitdiff
path: root/security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c')
-rw-r--r--security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c b/security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c
new file mode 100644
index 000000000000..817a475a7218
--- /dev/null
+++ b/security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c
@@ -0,0 +1,11 @@
+--- lib/hdb/hdb-ldap.c.orig Mon Apr 18 09:03:54 2005
++++ lib/hdb/hdb-ldap.c Sat Oct 7 01:08:23 2006
+@@ -1421,7 +1421,7 @@
+ if (HDB2LDAP(db) != NULL) /* server is UP */
+ return 0;
+
+- rc = ldap_initialize(&((struct hdbldapdb *)db->hdb_db)->h_lp, "ldapi:///");
++ rc = ldap_initialize(&((struct hdbldapdb *)db->hdb_db)->h_lp, "ldapi://%%LDAP_SOCKET%%/");
+ if (rc != LDAP_SUCCESS) {
+ krb5_set_error_string(context, "ldap_initialize: %s",
+ ldap_err2string(rc));