diff options
author | Shaun Amott <shaun@FreeBSD.org> | 2006-10-07 00:42:57 +0000 |
---|---|---|
committer | Shaun Amott <shaun@FreeBSD.org> | 2006-10-07 00:42:57 +0000 |
commit | 5a231e11706ce7a9f0f8789f64d18698451cf109 (patch) | |
tree | 58f5e5d7e583f8659759383884ac4b0a9e029bb7 /security/heimdal/files | |
parent | Mark broken on 4.x. (diff) |
When using LDAP as a KDC back-end, allow users to override the
hard-coded LDAP socket path. By default, we will use the path where
OpenLDAP usually puts its socket.
PR: ports/72149
Submitted by: Pawel Wieleba <wielebap@iem.pw.edu.pl>
Notes
Notes:
svn path=/head/; revision=174694
Diffstat (limited to 'security/heimdal/files')
-rw-r--r-- | security/heimdal/files/extrapatch-lib_hdb_hdb-ldap.c | 11 |
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)); |