php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76757 php-ldap resolve LDAP server with SRV record
Submitted: 2018-08-17 04:12 UTC Modified: 2021-03-22 14:23 UTC
From: audrey dot the dot zebra at gmail dot com Assigned:
Status: Open Package: LDAP related
PHP Version: Next Major Version OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: audrey dot the dot zebra at gmail dot com
New email:
PHP Version: OS:

 

 [2018-08-17 04:12 UTC] audrey dot the dot zebra at gmail dot com
Description:
------------
It might be nice if php-ldap's bind http://php.net/manual/en/function.ldap-bind.php could use SRV records to resolve an active LDAP server.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-17 09:39 UTC] cmb@php.net
-Package: *General Issues +Package: LDAP related
 [2018-11-01 07:49 UTC] heiglandreas@php.net
-Status: Open +Status: Feedback
 [2018-11-01 07:49 UTC] heiglandreas@php.net
Feel free to submit a patch ;-)
 [2018-11-18 22:42 UTC] cmb@php.net
-Status: Feedback +Status: Open
 [2021-03-22 13:40 UTC] mcmic@php.net
Note that this can be implemented in userland using https://www.php.net/manual/en/function.dns-get-record.php

I’m not sure it would make sense to implement this in php-ldap, some kind of generic function to get information out of SRV records following RFC 2782 would make more sense.
 [2021-03-22 14:23 UTC] audrey dot the dot zebra at gmail dot com
I totally agree SRV support should be generally available. It becomes an easy failover mechanism for many protocols besides LDAP. 

At the time I opened the bug, I was very focused on relying on SRV records for LDAP server failover.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC