Posted on 2007-10-03 07:49:47-07 by wardloockx
Problem with custom field in header
Hello, I have written my own Auth - Authz handlers based on LDAP. Now I need my ldap groups in my application so I need to stuff them in my HTTP header so I can call them within my application. But the problem is, I can't see my custom field in my headers :( Here is my code.
if(($found_usergroup eq $ldap_group) || ($ldap_group == -1)) { $r->header_out(usergroup,$found_usergroup); $r->send_http_header(); return Apache2::Const::OK; } else { return Apache2::Const::HTTP_UNAUTHORIZED; }
Thanks
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.