httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Get UID/GID from a username string
Date Fri, 15 Apr 2016 16:35:46 GMT
Well, it is one option to extend mod_rewrite. What I meant
specifically was that any module can implement a rewritemap internal
function.

On Fri, Apr 15, 2016 at 12:19 PM, Ben RUBSON <ben.rubson@gmail.com> wrote:
>>> I can't think of any solution that would work out of the box, but
>>> you can always write your own apache module in C.
>>
>>
>> Which could provide nothing but a new internal rewritemap type.
>
> Rainer, Eric,
> Thank you very much for your feedback.
>
> Yes a new rewritemap seems to be the solution.
> type name : usr
> functions : uid, gid
> parameter : name or #uid
>
> For example :
> RewriteMap getuid usr:uid
> RewriteMap getgid usr:gid
>
> C functions getpwnam and getpwuid would do the job.
>
> Is a pull request here the right method to proceed ?
> https://github.com/apache/httpd/blob/trunk/modules/mappers/mod_rewrite.c
>
> Thank you very much,
>
> Ben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message