LDAP SASL GSSAPI

From: Date: Thu, 24 Oct 2019 12:54:30 +0000
Subject: LDAP SASL GSSAPI
Groups: php.general 
Request: Send a blank email to php-general+get-326926@lists.php.net to get a copy of this message
Hi! I want to bind to ldap using a kerberos ticket. Here is my code: putenv( 'KRB5CCNAME=' . $_SERVER['KRB5CCNAME'] ); $ldapConnection = ldap_connect( 'ldap://dc.contoso.com' ); $bind = ldap_sasl_bind( $ldapConnection, NULL, NULL, 'GSSAPI' ); var_dump( error_get_last( ) ); I get a "ldap_sasl_bind(): Unable to bind to server: Not Supported" Error. ldap_search using SASL on the Command Line (ldapsearch -Hldap://dc.constoso.com -bdc=dc,dc=contoso,dc=com samaccountname=user1) works fine. Do you guys have any pointers on how to get that working? Thanks, Mike

« previous php.general (#326926) next »