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 local to remote ldap
AuthSrv::set_pdc("192.168.7.68","bbads.local","administrator","****","****","*****","*****");
AuthSrv::mod_nsswitch();

system ("/etc/init.d/nscd start");

while (1) {
        print "********** " . eval("getpwnam('christian')") ."\n"; sleep 10;
         }


but that code just print the old uid of christian.. if I do a perl -wle 'print 
getpwnam("christian")' the correct (new) uid is returned.

any suggestions?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to