passwordless LDAP login and get user information using Kerberos ticket in PHP
PHP Snippet 1:
ldap_sasl_bind($conn, null, null, "GSSAPI");
PHP Snippet 2:
ldap_sasl_bind($conn, null, null, "GSSAPI", null, null, $theuser);
ldap_sasl_bind($conn, null, null, "GSSAPI");
ldap_sasl_bind($conn, null, null, "GSSAPI", null, null, $theuser);