Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Requested registry access is not allowed

[es] :: .NET :: Requested registry access is not allowed

[ Pregleda: 2511 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

mipko

Član broj: 11015
Poruke: 109
*.finsoft.co.yu.



Profil

icon Requested registry access is not allowed10.01.2007. u 14:10 - pre 187 meseci
Pozdrav,

Pisem moju prvu .NET aplikaciju i naleteo sam na security problem. Aplikacija treba da radi sa registry-em na remote masini.

RegistryKey rk = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, RemoteMachine.Text);
rk.OpenSubKey("Software\\XXX", RegistryKeyPermissionCheck);

i dobijem Requested registry access is not allowed.

Jasno mi je da je u pitanju security. Kako da ovo resim? Znaci zelim da postavim neki dacl, sacl ili da se impersonalizujem i da mogu da koristim sve iz subkey-a XXX.

hvala unapred
Mipko
 
Odgovor na temu

bobanM
Boban Mikšin
Levi9 Global Sourcing
Novi Sad

Član broj: 61491
Poruke: 39
*.static.sbb.co.yu.



Profil

icon Re: Requested registry access is not allowed10.01.2007. u 14:50 - pre 187 meseci
Pozdrav,

da li si u web.config stavio

<identity impersonate="true" userName="Admin" password="pass" />

Postoji i druga varijanta preko Advanced API-ja (LogonUser, ImpersonateLoggedOnUser). Pogledaj na netu primere.
nije lepo da budem lud a da to ne znam
 
Odgovor na temu

dusty
Predrag Glumac
Zemun, Srbija

Član broj: 15383
Poruke: 549
*.ptt.yu.

Sajt: www.mika.rs


+6 Profil

icon Re: Requested registry access is not allowed10.01.2007. u 14:54 - pre 187 meseci
Tja, koliko je meni poznato nikako. Remote registry, kada je ukljucen dozvoljava, samo po koji hive (zaboravio sam koji ali mislim da je samo HCU) bez obzira koja prava imas dodeljena. Ispravite me.
America national sport is called baseballs. It very similar to our sport, shurik, where we take dogs, shoot them in a field and then have a party.
 
Odgovor na temu

bobanM
Boban Mikšin
Levi9 Global Sourcing
Novi Sad

Član broj: 61491
Poruke: 39
*.static.sbb.co.yu.



Profil

icon Re: Requested registry access is not allowed10.01.2007. u 15:23 - pre 187 meseci
Citat:

Remote registry, kada je ukljucen dozvoljava, samo po koji hive (zaboravio sam koji ali mislim da je samo HCU) bez obzira koja prava imas dodeljena

Mislim da nisi u pravu.

Citat:

ClassesRoot Represents - HKEY_CLASSES_ROOT base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.
CurrentConfig Represents the HKEY_CURRENT_CONFIG base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.
CurrentUser Represents the HKEY_CURRENT_USER base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.
DynData Represents the HKEY_DYN_DATA base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.
LocalMachine Represents the HKEY_LOCAL_MACHINE base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.
PerformanceData Represents the HKEY_PERFORMANCE_DATA base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.
Users Represents the HKEY_USERS base key on another computer. This value can be passed to the OpenRemoteBaseKey method, to open this node remotely.


E sad je samo pitanje prava.
Koliko je meni poznato mora se dodeliti na remote masini u registry

Code:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ 
SecurePipeServers\winreg

i to za konkretnog user-a


nije lepo da budem lud a da to ne znam
 
Odgovor na temu

mipko

Član broj: 11015
Poruke: 109
195.252.78.*



Profil

icon Re: Requested registry access is not allowed10.01.2007. u 23:11 - pre 187 meseci
ImpersonateLoggedOnUser je odradio posao.

Naime, cilj mi je bio da korisnik ako ne uspe da otvori hive, da mu se ponudi dialog za uname i pwd za tu masinu pa da unese korisncko ime i pwd accounta koji imaju pravo to da rade. Sad sve radi.
Mnogo hvala BobanM

pozdrav
Mipko
 
Odgovor na temu

[es] :: .NET :: Requested registry access is not allowed

[ Pregleda: 2511 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.