I am doing LDAP authorization along with Kerberos authentication in httpd 2.4. I am retrieving objectSID from ldap and found that to be not in readable format.
Referring this and this, have used a ReWriteMap to use that script to decode objectSid asRewriteRule .* - [E=SID:${SIDConvert:%{AUTHORIZE_objectSid}e}]
. AUTHORIZE_objectSid is what I got from LDAP query. But output I got is S-1-0-0-0-0.
I have tested the script alone with value, it is producing the correct result.
Input : AQUAAAAAAAUVAAAAkuA8d4B49TEjX2Nr4tAJAA==
Output : S-1-5-21-2000478354-838170752-1801674531-643298
Passed hard coded value from ldap query, it is producing the correct result.
- Passing the dynamic value - producing as above. S-1-0-0-0-0.
So my guess is that the value coming from ldap is not in expected format. How to know/debug that? Any ideas/references would be much appreciated..