Local profiles for specific users?

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Sep 6 09:03:03 GMT 2001


-----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-----




More information about the samba-technical mailing list