Local profiles for specific users?

Simo Sorce idra at samba.org
Thu Sep 6 09:17:03 GMT 2001


Hi Volker, in theory we could work on registry of the machine with
rpcclient, but actually the code to play with registry is commented out
and need some fixes to be reenabled (like the shutdown/abort shutdown)
code I've added in head.
Once the function are reenable, rpcclient may be a nice alternative.

Simo.

On Thu, Sep 06, 2001 at 06:06:09PM +0200, Volker Lendecke wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi!
> 
> I'm trying to find a way make it possible to give some users a local
> profile and others a server-based profile.
> 
> This can be done by
> 
> RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\$sid", 0, KEY_WRITE, $key);
> RegSetValueEx( $key, UserPreference, 0, REG_DWORD, "\x00\x00\x00\x00", 4);
> 
> or something equivalent in a logon script. To do this you need to
> install a user2sid on the workstation to find the sid. It would be
> nice to go without any custom tool on the workstation, but you need to
> be able to hand the sid to a 'root preexec' for the netlogon share.
> 
> How could I do it from within the server? Hmm. Probably I should dig
> into samba/source..
> 
> Volker
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: Fingerprint available: phone +49 551 3700000
> 
> iD8DBQE7l57vpZxcpEh+sAwRAnwjAJ4pzEevS8pk+/dqub+grX0pb585pwCfb4Nd
> AqLpqR3H7S/3CaatRqgvhMU=
> =7rIY
> -----END PGP SIGNATURE-----
> 

-- 
Simo Sorce       idra at samba.org
-------------------------------
Samba Team http://www.samba.org




More information about the samba-technical mailing list