Re: [users@httpd] Get UID/GID from a username string

2016-04-16 Thread Ben RUBSON
>>> Ben: have a look at how mod_rewrite accesses its own >>> ap_register_rewrite_mapfunc via >> >> So Rainer, I just quickly wrote my module, it works, many thanks for your >> help. >> >> Below is my code, I just have 2 questions regarding it : >> 1 - do I need to "free(pw)" ? > > (...) > So y

Re: [users@httpd] Get UID/GID from a username string

2016-04-16 Thread Rainer Jung
Am 16.04.2016 um 12:09 schrieb Ben RUBSON: Ben: have a look at how mod_rewrite accesses its own ap_register_rewrite_mapfunc via So Rainer, I just quickly wrote my module, it works, many thanks for your help. Below is my code, I just have 2 questions regarding it : 1 - do I need to "free(pw)"

Re: [users@httpd] Get UID/GID from a username string

2016-04-16 Thread Ben RUBSON
> Ben: have a look at how mod_rewrite accesses its own > ap_register_rewrite_mapfunc via So Rainer, I just quickly wrote my module, it works, many thanks for your help. Below is my code, I just have 2 questions regarding it : 1 - do I need to "free(pw)" ? 2 - is "key = apr_palloc(r->pool, 7)" th

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Ben RUBSON
>> Well, it is one option to extend mod_rewrite. What I meant >> specifically was that any module can implement a rewritemap internal >> function. > > Yes, the feature seems to be a bit too specific for general implementation in > mod_rewrite. I was thinking about mod_rewrite because these funct

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Rainer Jung
Am 15.04.2016 um 18:59 schrieb Rainer Jung: Am 15.04.2016 um 18:35 schrieb Eric Covener: Well, it is one option to extend mod_rewrite. What I meant specifically was that any module can implement a rewritemap internal function. Yes, the feature seems to be a bit too specific for general impleme

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Rainer Jung
Am 15.04.2016 um 18:35 schrieb Eric Covener: Well, it is one option to extend mod_rewrite. What I meant specifically was that any module can implement a rewritemap internal function. Yes, the feature seems to be a bit too specific for general implementation in mod_rewrite. Ben: have a look a

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Eric Covener
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 wrote: >>> I can't think of any solution that would work out of the box, but >>> you can always write your own apa

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Ben RUBSON
>> 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. typ

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Eric Covener
On Fri, Apr 15, 2016 at 9:38 AM, Rainer Canavan 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. -- Eric Covener cove...@gmail.com

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Rainer Canavan
On Fri, Apr 15, 2016 at 9:14 AM, Ben RUBSON wrote: > Hello, > > I already do it with a RewriteMap Perl script, but perhaps a faster (in terms > of performance) solution exists. > Let's assume an incoming request contains a username, is there a way to get > the system UID of this username string

Re: [users@httpd] Get UID/GID from a username string [wd-vc]

2016-04-15 Thread Ben RUBSON
.com] > Gesendet: Freitag, 15. April 2016 09:14 > An: users@httpd.apache.org > Betreff: [users@httpd] Get UID/GID from a username string [wd-vc] > > Hello, > > I already do it with a RewriteMap Perl script, but perhaps a faster (in terms > of performance) solution exists

AW: [users@httpd] Get UID/GID from a username string [wd-vc]

2016-04-15 Thread Bremser, Kurt (AMOS Austria GmbH)
] Gesendet: Freitag, 15. April 2016 09:14 An: users@httpd.apache.org Betreff: [users@httpd] Get UID/GID from a username string [wd-vc] Hello, I already do it with a RewriteMap Perl script, but perhaps a faster (in terms of performance) solution exists. Let's assume an incoming request conta

[users@httpd] Get UID/GID from a username string

2016-04-15 Thread Ben RUBSON
Hello, I already do it with a RewriteMap Perl script, but perhaps a faster (in terms of performance) solution exists. Let's assume an incoming request contains a username, is there a way to get the system UID of this username string (Linux/FreeBSD) ? And from a UID string, to get the correspondi