I'm writing a web frontend to manage our company's OpenLDAP server. I'm using Perl, Apache2 with mod_auth_kerb, OpenLDAP, Cyrus SASL. I'm using Authen::SASL for authentication, and the following works fine when run from command line:
1 #!perl 2 use strict; 3 use warnings; 4 use Net::LDAP; 5 use Authen::SASL; 6 7 my $l = Net::LDAP->new( 'ldap.example.com', onerror=>'die', ); 8 my $sasl = Authen::SASL->new(mechanism=>'GSSAPI'); 9 $l->bind( sasl=>$sasl ); 10 11 print "OK\n";
The problem is, when a Kerberos-authenticated user tries to connect to OpenLDAP server using browser (and my unfortunate CGI script), his credentials are not used, and I'm running out of wits wondering how to fix it. By itself, as long as I do not need to forward users credentials, authentication works fine with Apache, too. Ironically, it all works from outside the realm, because then mod_auth_kerb asks for user name and password, authenticates, caches the tickets, and it all works.
In reply to How to authenticate to OpenLDAP using web interface? by BadBishop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |