wyatt Posted May 1, 2007 Share Posted May 1, 2007 greets, i've been diving through the ldap extension for PHP looking for a way to get the SASL_EXTERNAL method and certificate authentication supported. has anyone else tried this before and i've just missed it or do i need to roll up the sleeves and patch the ldap.c file to support it? thanks, wyatt Link to comment https://forums.phpfreaks.com/topic/49533-php-sasl-binding-using-certificates/ Share on other sites More sharing options...
wyatt Posted May 2, 2007 Author Share Posted May 2, 2007 after considering this some more; i've come to the realization that it cannot be done securely. the primary premise of having certificate based authentication is that you present your public certificate to the server and it returns data that you can decrypt using your private key; however, asking a user to provide their private key to you so that you can create a secure connection to an LDAP server completely violates the basic principle that no one else has your private key; however, there is a way to do this using machine based certificates found here:http://www.washington.edu/computing/eds/php-ldap-sasl.html basically, they are forcing environmental variable to exist for apache and then by specifying the use of EXTERNAL, the ldap API knows to request the information from the environment. I've also attached their example file in case the site goes away (however, extremely doubtful) [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/49533-php-sasl-binding-using-certificates/#findComment-243700 Share on other sites More sharing options...
wyatt Posted May 4, 2007 Author Share Posted May 4, 2007 By the way. This code causes glibc corrupted double-linked list errors in PHP 5.2.2 with OpenLDAP 2.3 due to an invalid reference being retrieved; however, PHP.net doesn't seem to feel this is there bug to deal with. Link to comment https://forums.phpfreaks.com/topic/49533-php-sasl-binding-using-certificates/#findComment-245707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.