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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
13 - 7 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat Apr 20 02:01:29 2024 UTC