On 5/22/07, Martin Barth <[EMAIL PROTECTED]> wrote:
afer trying a lot of stuff i figured out that following code line works:
my ($login,$pass,$uid,$gid) = (getpwnam($user),rand);
without rand it's still the old user... can anyone explain why perl seems
to cache this? (even without eval)
Wel
Hi,
afer trying a lot of stuff i figured out that following code line works:
my ($login,$pass,$uid,$gid) = (getpwnam($user),rand);
without rand it's still the old user... can anyone explain why perl seems to
cache this? (even without eval)
Tom Phoenix schrieb:
> On 5/18/07, Martin Barth <[EMA
Hello Tom,
> On 5/18/07, Martin Barth <[EMAIL PROTECTED]> wrote:
>
> > print "** " . eval("getpwnam('christian')") ."\n"; sleep 10;
>
> Why are you (mis-)using the evil eval?
>
> > if I do a perl -wle 'print getpwnam("christian")' the correct (new) uid is
> > returned.
>
> So,
On 5/18/07, Martin Barth <[EMAIL PROTECTED]> wrote:
print "** " . eval("getpwnam('christian')") ."\n"; sleep 10;
Why are you (mis-)using the evil eval?
if I do a perl -wle 'print getpwnam("christian")' the correct (new) uid is
returned.
So, if you don't use the evil eval,
I am changing the authetication typ, from local to remote ldap on a pc.
I want to get the new userid of a user, therefore i have following code.
system ("/etc/init.d/nscd stop");
system ("/etc/init.d/winbind restart");
print "**" . getpwnam("christian") ."\n";
## code that changes from l